This sample uses CrewAI to build a simple image generation agent and host it as an A2A server.
- Python 3.12 or higher
- UV
- Access to an LLM and API Key
-
Navigate to the samples directory:
cd samples/agents/crewai -
Create a file named .env under agents/crewai.
touch .env
-
Add GOOGLE_API_KEY to .env (sample uses Google Gemini by default)
-
Run the agent:
uv python pin 3.12 uv venv source .venv/bin/activate uv run .
-
Run the client
uv run hosts/cli