This page contains reference documentation for Agents. See the docs for conceptual guides, tutorials, and examples on using Agents.
State schema for the agent.
Model request information for the agent.
Use a tool calling strategy for model responses.
Use the model provider's native structured output method.
Automatically select the best strategy for structured output.
Creates an agent graph that calls tools in a loop until a stopping condition is met.
Decorator used to dynamically create a middleware with the before_model hook.
Decorator used to dynamically create a middleware with the after_model hook.
Create middleware with wrap_model_call hook from a function.
Create middleware with wrap_tool_call hook from a function.