Responses

Ollama examples on the OpenAI-compatible /v1/responses endpoint: basic runs, structured output, and tool use.

These examples require local Ollama server v0.13.3 or later. Its Responses endpoint is stateless: it does not chain requests with previous_response_id. Agno can still resend history from an attached database when add_history_to_context=True.

ExampleDescription
BasicUse Ollama's OpenAI-compatible /v1/responses endpoint with an Agent.
Structured OutputRequest JSON and validate a MovieScript with Pydantic through Ollama's local Responses API.
Tool UseCall DuckDuckGoTools through the local Ollama Responses endpoint.