Skip to main content

Code

cookbook/05_agent_os/interfaces/agui/basic.py

Usage

1

Set up your virtual environment

2

Set Environment Variables

3

Install dependencies

4

Run Example

Key Features

  • AG-UI endpoint: Connect the agent to an AG-UI-compatible frontend
  • Streaming events: Stream agent responses to the frontend
  • Markdown support: Return Markdown-formatted responses
  • Datetime context: Include the current date and time in the agent context
  • Open protocol: Use AG-UI events and message formats

Setup Frontend

Create an AG-UI application: