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

# Responses

> OpenAI Responses API examples for structured output, tool use, multimodal input, deep research, reasoning, and storage controls.

| Example | Description |
| - | - |
| [OpenAI Agent Flex Tier](https://agno-v2.mintlify.site/examples/models/openai/responses/agent-flex-tier.md) | Run o4-mini on the flex service tier with the OpenAIResponses model. |
| [OpenAI Basic](https://agno-v2.mintlify.site/examples/models/openai/responses/basic.md) | Run a gpt-5.6-luna agent through the Responses API in sync, async, and streaming modes. |
| [DB](https://agno-v2.mintlify.site/examples/models/openai/responses/db.md) | Persist Responses API sessions in Postgres and answer a history-dependent follow-up. |
| [OpenAI Deep Research Agent](https://agno-v2.mintlify.site/examples/models/openai/responses/deep-research-agent.md) | Run OpenAI's o4-mini-deep-research model to produce a cited research report. |
| [OpenAI Image Agent](https://agno-v2.mintlify.site/examples/models/openai/responses/image-agent.md) | Describe an image from a URL and fetch related news via web search with OpenAIResponses. |
| [OpenAI Image Agent Bytes](https://agno-v2.mintlify.site/examples/models/openai/responses/image-agent-bytes.md) | Pass image bytes to a Responses API agent that pairs vision with web search. |
| [OpenAI Image Agent With Memory](https://agno-v2.mintlify.site/examples/models/openai/responses/image-agent-with-memory.md) | Reference an earlier image in follow-up questions by adding history to context. |
| [Image Generation Agent](https://agno-v2.mintlify.site/examples/models/openai/responses/image-generation-agent.md) | Generate and save an image with OpenAITools and GPT Image 2. |
| [Knowledge](https://agno-v2.mintlify.site/examples/models/openai/responses/knowledge.md) | Answer questions from a PDF stored in PgVector knowledge with OpenAIResponses. |
| [Memory](https://agno-v2.mintlify.site/examples/models/openai/responses/memory.md) | Store user memories and session summaries in Postgres while chatting with gpt-4o over the Responses API. |
| [OpenAI PDF Input Local](https://agno-v2.mintlify.site/examples/models/openai/responses/pdf-input-local.md) | Query a local PDF with gpt-5.2 using the built-in file\_search tool across two turns. |
| [OpenAI PDF Input URL](https://agno-v2.mintlify.site/examples/models/openai/responses/pdf-input-url.md) | Summarize a PDF by URL with file\_search and web search, then read citations from the stored session. |
| [OpenAI Reasoning O3 Mini](https://agno-v2.mintlify.site/examples/models/openai/responses/reasoning-o3-mini.md) | Stream a stock report from o3-mini with YFinance tools via the Responses API. |
| [OpenAI Structured Output](https://agno-v2.mintlify.site/examples/models/openai/responses/structured-output.md) | Generate a MovieScript Pydantic model via JSON mode, strict, and guided structured output. |
| [OpenAI Structured Output With Tools](https://agno-v2.mintlify.site/examples/models/openai/responses/structured-output-with-tools.md) | Combine web search tools with a Pydantic output schema on gpt-5-mini. |
| [Tool Use](https://agno-v2.mintlify.site/examples/models/openai/responses/tool-use.md) | Answer a news question with GPT-4o on the Responses API using WebSearchTools. |
| [OpenAI Tool Use GPT 5](https://agno-v2.mintlify.site/examples/models/openai/responses/tool-use-gpt-5.md) | Fetch a live stock price with gpt-5 and cached YFinance tool results. |
| [OpenAI Tool Use O3](https://agno-v2.mintlify.site/examples/models/openai/responses/tool-use-o3.md) | Call YFinance tools from o3 through the OpenAI Responses API to fetch a live stock price. |
| [OpenAI WebSearch Builtin Tool](https://agno-v2.mintlify.site/examples/models/openai/responses/websearch-builtin-tool.md) | Combine the built-in web\_search\_preview tool with FileTools to search and save results to disk. |
| [ZDR Reasoning Agent](https://agno-v2.mintlify.site/examples/models/openai/responses/zdr-reasoning-agent.md) | Disable Responses application-state storage with store=False while retaining multi-turn context in InMemoryDb. |
| [Background Mode](https://agno-v2.mintlify.site/examples/models/openai/responses/background.md) | Run GPT-5.4 in background mode with automatic polling and a 600-second default maximum wait. |
| [OpenAI File Input Direct](https://agno-v2.mintlify.site/examples/models/openai/responses/file-input-direct.md) | Attach files by URL, local path, or raw bytes to a Responses API agent. |
| [Responses Image Agent File](https://agno-v2.mintlify.site/examples/models/openai/responses/image-agent-file.md) | Attach a local image by filepath to a Responses API agent, overriding the MIME type if needed. |
| [OpenAI Reasoning Effort](https://agno-v2.mintlify.site/examples/models/openai/responses/reasoning-effort.md) | Set xhigh reasoning effort and request an automatic reasoning summary from OpenAI Responses. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.