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

# Xai

> Xai model example.

| Example                                                                       | Description                                                                       |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [Xai Basic](/examples/models/xai/basic)                                       | Cookbook example for `xai/basic.py`.                                              |
| [️ Finance Agent](/examples/models/xai/finance-agent)                         | This example shows how to create a sophisticated financial analyst that provides. |
| [Xai Image Agent](/examples/models/xai/image-agent)                           | Cookbook example for `xai/image_agent.py`.                                        |
| [Xai Image Agent Bytes](/examples/models/xai/image-agent-bytes)               | Cookbook example for `xai/image_agent_bytes.py`.                                  |
| [Xai Image Agent With Memory](/examples/models/xai/image-agent-with-memory)   | Cookbook example for `xai/image_agent_with_memory.py`.                            |
| [Xai Live Search Agent](/examples/models/xai/live-search-agent)               | Cookbook example for `xai/live_search_agent.py`.                                  |
| [Xai Live Search Agent Stream](/examples/models/xai/live-search-agent-stream) | Cookbook example for `xai/live_search_agent_stream.py`.                           |
| [Xai Reasoning Agent](/examples/models/xai/reasoning-agent)                   | Cookbook example for `xai/reasoning_agent.py`.                                    |
| [Retry](/examples/models/xai/retry)                                           | Example demonstrating how to set up retries with xAI.                             |
| [Xai Structured Output](/examples/models/xai/structured-output)               | Cookbook example for `xai/structured_output.py`.                                  |
| [Build a Web Search Agent using xAI](/examples/models/xai/tool-use)           | Build a web search agent using xAI Grok.                                          |
