Expand description
Conversion of execution results into the output the model receives.
Enums§
- Error
Mode - How an output should be reported.
Functions§
- create_
tool_ model_ output - Builds the model-facing output for a tool result.
- error_
message - Extracts a message from an error value: strings as-is, objects through
their
messagefield,nullasunknown error, anything else as JSON. - tool_
error_ output - Renders a
ToolErroras a model-facing output.