Skip to content

Latest commit

 

History

History
 
 

README.md

Get Started with Agent Framework for Python

This folder contains a progressive set of samples that introduce the core concepts of Agent Framework one step at a time.

Prerequisites

pip install agent-framework --pre

Set the required environment variables:

export OPENAI_API_KEY="sk-..."
export OPENAI_RESPONSES_MODEL_ID="gpt-4o"   # optional, defaults to gpt-4o

Samples

# File What you'll learn
1 01_hello_agent.py Create your first agent and run it (streaming and non-streaming).
2 02_add_tools.py Define a function tool with @tool and attach it to an agent.
3 03_multi_turn.py Keep conversation history across turns with AgentThread.
4 04_memory.py Add dynamic context with a custom ContextProvider.
5 05_first_workflow.py Chain executors into a workflow with edges.
6 06_host_your_agent.py Prepare your agent for A2A hosting.

Run any sample with:

python 01_hello_agent.py