Skip to main content
ExampleDescription
Expected OutputGuide agent responses using the expected_output parameter.
Input FormatsHandle different input formats for agent requests.
Input SchemaPass a dict that matches the input schema.
Output ModelUse a separate output model to refine the main model’s response.
Output SchemaThis example shows how to use the output_model parameter to specify the model that will be used to generate the final response.
Parser ModelGet the response in a variable.
Response As VariableCapture agent responses as variables for downstream use.
Save To FileSave agent responses to a file automatically.
StreamingDemonstrates streaming agent responses token by token.