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

# 基础

> 将您的 Agno Agent 作为兼容 AG-UI 的应用公开

## 代码

```python cookbook/apps/agui/basic.py theme={null}
from agno.agent.agent import Agent
from agno.app.agui.app import AGUIApp
from agno.models.openai import OpenAIChat

chat_agent = Agent(
    name="Assistant",
    model=OpenAIChat(id="gpt-4o"),
    instructions="You are a helpful AI assistant.",
    add_datetime_to_instructions=True,
    markdown=True,
)

agui_app = AGUIApp(
    agent=chat_agent,
    name="Basic AG-UI Agent",
    app_id="basic_agui_agent",
    description="A basic agent that demonstrates AG-UI protocol integration.",
)

app = agui_app.get_app()

if __name__ == "__main__":
    agui_app.serve(app="basic:app", port=8000, reload=True)
```

您可以在 [AG-UI 应用](/applications/ag-ui/introduction) 页面找到有关如何设置兼容 AG-UI 的前端以使用此功能的说明。

您还可以查看 [CopilotKit 文档](https://docs.copilotkit.ai/agno)，了解有关使用 Agno 的信息，以便更多地学习如何构建 UI 端。
