mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
016daf3b98
* First samples 1st batch * Fix sample paths * Fix workflow samples * Fix workflow dependency * Correct env vars * Increase idle timeout * Fix workflows HIL sample * Fix more workflow samples
016daf3b98
ยท
2026-03-31 15:20:35 +00:00
History
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
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 AgentSession. |
| 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 | Host a single agent with Azure Functions. |
Run any sample with:
python 01_hello_agent.py
These samples use Azure Foundry models with the Responses API. To switch providers, just replace the client, see all providers