Content
# 极客时间专栏学习之旅
[👉 点击进入专栏介绍页](https://time.geekbang.org/column/intro/101053801)
---
本专栏自上线两周以来,已有近3000位同学加入学习之旅。欢迎你一同开启知识探索之门!

# Sample Code
This code is used to demonstrate A2A capabilities as the spec progresses.\ Samples are divided into 3 sub directories:
* [**Common**](/samples/python/common)
Common code that all sample agents and apps use to speak A2A over HTTP.
* [**Agents**](/samples/python/agents/README.md)
Sample agents written in multiple frameworks that perform example tasks with tools. These all use the common A2AServer.
* [**Hosts**](/samples/python/hosts/README.md)
Host applications that use the A2AClient. Includes a CLI which shows simple task completion with a single agent, a mesop web application that can speak to multiple agents, and an orchestrator agent that delegates tasks to one of multiple remote A2A agents.
## Prerequisites
- Python 3.13 or higher
- [UV](https://docs.astral.sh/uv/)
## Running the Samples
Run one (or more) [agent](/samples/python/agents/README.md) A2A server and one of the [host applications](/samples/python/hosts/README.md).
The following example will run the langgraph agent with the python CLI host:
1. Navigate to the agent directory:
```bash
cd samples/python/agents/langgraph
```
2. Run an agent:
```bash
uv run .
```
3. In another terminal, navigate to the CLI directory:
```bash
cd samples/python/hosts/cli
```
4. Run the example client
```
uv run .
```
---
**NOTE:**
This is sample code and not production-quality libraries.
---
You Might Also Like
Ollama
Ollama enables easy access to large language models on various platforms.

n8n
n8n is a secure workflow automation platform for technical teams with 400+...
OpenWebUI
Open WebUI is an extensible web interface for customizable applications.

Dify
Dify is a platform for AI workflows, enabling file uploads and self-hosting.

Zed
Zed is a high-performance multiplayer code editor from the creators of Atom.
MarkItDown MCP
markitdown-mcp is a lightweight MCP server for converting various URIs to Markdown.