> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-docs-scavio-google-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat

> Cookbook examples for `cookbook/90_models/ollama/chat`.

| Example                                                                    | Description                                                                                      |
| -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [Ollama Basic](/examples/models/ollama/chat/basic)                         | Run a local Llama 3.1 agent on Ollama in sync, async, and streaming modes.                       |
| [DB](/examples/models/ollama/chat/db)                                      | Ollama model example.                                                                            |
| [Ollama Demo DeepSeek R1](/examples/models/ollama/chat/demo-deepseek-r1)   | Ask a local DeepSeek-R1 model to write Python for quadratic equations and explain its reasoning. |
| [Ollama Demo Gemma](/examples/models/ollama/chat/demo-gemma)               | Stream a short story about a local image from Gemma 3 12B running on Ollama.                     |
| [Ollama Demo Phi4](/examples/models/ollama/chat/demo-phi4)                 | Run Microsoft Phi-4 locally through Ollama with a one-shot story prompt.                         |
| [Ollama Demo Qwen](/examples/models/ollama/chat/demo-qwen)                 | Build an NVDA stock report with Qwen3 on Ollama using YFinanceTools.                             |
| [Ollama Image Agent](/examples/models/ollama/chat/image-agent)             | Describe a local image file with Llama 3.2 Vision running on Ollama.                             |
| [Knowledge](/examples/models/ollama/chat/knowledge)                        | Search a PgVector knowledge base embedded with OllamaEmbedder from a local Llama agent.          |
| [Memory](/examples/models/ollama/chat/memory)                              | Persist user memories and session summaries in Postgres with a local qwen2.5 Ollama agent.       |
| [Ollama Cloud](/examples/models/ollama/chat/ollama-cloud)                  | Chat Ollama Cloud.                                                                               |
| [Ollama Reasoning Agent](/examples/models/ollama/chat/reasoning-agent)     | Enable reasoning on a local gpt-oss 120B agent and display the thinking steps.                   |
| [Retry](/examples/models/ollama/chat/retry)                                | Review retry settings and why invalid model IDs cannot reliably exercise the retry path.         |
| [Set Client](/examples/models/ollama/chat/set-client)                      | Print the response in the terminal.                                                              |
| [Ollama Set Temperature](/examples/models/ollama/chat/set-temperature)     | Set sampling temperature on an Ollama model through the options dict.                            |
| [Ollama Structured Output](/examples/models/ollama/chat/structured-output) | Return a MovieScript Pydantic object from a local Llama 3.2 model on Ollama.                     |
| [Tool Use](/examples/models/ollama/chat/tool-use)                          | Ollama model example.                                                                            |
