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.
| Example | Description |
|---|---|
| Basic | Use Ollama's OpenAI-compatible /v1/responses endpoint with an Agent. |
| Structured Output | Request JSON and validate a MovieScript with Pydantic through Ollama's local Responses API. |
| Tool Use | Call DuckDuckGoTools through the local Ollama Responses endpoint. |