Prerequisites
- Python 3.10+
- Xquik API key (
xq_...) - An LLM API key (OpenAI, Azure OpenAI, or any supported provider)
Install
agent-framework meta-package installs all core and provider sub-packages. The mcp package enables MCPStreamableHTTPTool support.
Full Example
explore + xquik) and can call any of the 122 API endpoints.
Streaming Responses
Userun_stream for real-time token streaming:
Multi-Agent Orchestration
UseGroupChatBuilder to coordinate specialized agents sharing the same MCP tools:
Per-Run Headers
Pass API keys dynamically viatool_resources for multi-tenant apps where each user has their own Xquik API key:
tool_resources are available only for the current run and are not persisted.
Azure OpenAI
SwapOpenAIChatClient for AzureOpenAIChatClient to use Azure-hosted models:
Environment Variables
Store your API keys in a.env file instead of hardcoding them:
.env
Package Versions
| Package | Version |
|---|---|
agent-framework | 1.0.0+ |
agent-framework-core | 1.0.0+ |
mcp | 1.9.2+ |