Optional ReadonlycauseOptional ReadonlycodeOptional ReadonlymetadataConverts the error to a formatted string representation.
Optionalmultiline: boolean
Determine if output value must be multiline or not.
A formatted error string.
StaticcreateCreate a RuntimeError.
Optionaloptions: ErrorOptions
The options to create a RuntimeError.
A new RuntimeError instance.
Raised for a setup mistake, so a misconfigured server never looks like a failing tool.
The distinction matters here more than usual: an agent retries what looks retryable, and a server that answered "tool failed" to "there is no router" would be retried forever.