Files
agent-framework/python/samples/getting_started/agents
T
Eduard van Valkenburg 3e97425245 Python: [BREAKING]: Introducing Options as TypedDict and Generic (#3140)
* WIP typeddict for options

* updated all clients and ChatAgents

* updated everything

* added ADR

* fix mypy

* proper typevar imports

* fixed import

* fixed other imports

* slight update in the sample

* updated from feedback

* fixes

* fixed missing covariants and test fixes

* fixed typing

* updated anthropic thinking config

* ruff fixes

* fixed int tests

* fix tests and mypy

* updated integration tests

* updated docstring and test fix

* improved options handling in obser

* mypy fix

* updated a host of integration tests

* fix tests

* bedrock fix
3e97425245 ยท 2026-01-13 16:41:05 +00:00
History
..
2025-11-24 10:57:00 +00:00

Agent Examples

This folder contains examples demonstrating how to create and use agents with different chat clients from the Agent Framework. Each sub-folder focuses on a specific provider and client type, showing various capabilities like function tools, code interpreter, thread management, structured outputs, image processing, web search, Model Context Protocol (MCP) integration, and more.

Examples by Provider

Azure AI Foundry Examples

Folder Description
azure_ai_agent/ Create agents using Azure AI Agent Service (based on azure-ai-agents V1 package) including function tools, code interpreter, MCP integration, thread management, and more.
azure_ai/ Create agents using Azure AI Agent Service (based on azure-ai-projects V2 package) including function tools, code interpreter, MCP integration, thread management, and more.

Microsoft Copilot Studio Examples

Folder Description
copilotstudio/ Create agents using Microsoft Copilot Studio with streaming and non-streaming responses, authentication handling, and explicit configuration options

Azure OpenAI Examples

Folder Description
azure_openai/ Create agents using Azure OpenAI APIs with multiple client types (Assistants, Chat, and Responses clients) supporting function tools, code interpreter, thread management, and more

OpenAI Examples

Folder Description
openai/ Create agents using OpenAI APIs with comprehensive examples including Assistants, Chat, and Responses clients featuring function tools, code interpreter, file search, web search, MCP integration, image analysis/generation, structured outputs, reasoning, and thread management

Anthropic Examples

Folder Description
anthropic/ Create agents using Anthropic models through OpenAI Chat Client configuration, demonstrating tool calling capabilities

Custom Implementation Examples

Folder Description
custom/ Create custom agents and chat clients by extending the base framework classes, showing complete control over agent behavior and backend integration