Skip to main content

Module model_output

Module model_output 

Source
Expand description

Conversion of execution results into the output the model receives.

Enums§

ErrorMode
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 message field, null as unknown error, anything else as JSON.
tool_error_output
Renders a ToolError as a model-facing output.