Files
agent-framework/python/samples
T
Victor Dibia e032fe3993 Python: Fix Failure with Function Approval Messages in Chat Clients (#1322)
* Python: set role=tool when processing approval responses

* Python: set role=tool when processing approval responses

* Fix approval mode with OpenAIChatClient and threads: add approval requests to assistant message, fix deduplication/rejection call_id, filter approval content, add tests and example

* update test tools after change

* Rename _collect_approval_todos to _collect_approval_responses and filter empty call_ids
e032fe3993 · 2025-10-10 18:38:23 +00:00
History
..
2025-07-28 07:33:42 +00:00

Python Samples

This directory contains samples demonstrating the capabilities of Microsoft Agent Framework for Python.

Getting Started

For step-by-step tutorials and examples, see the getting_started directory:

  • Agents - Learn how to create and use agents with various providers (Azure OpenAI, OpenAI, Azure AI, etc.)
  • Workflows - Explore workflow patterns for orchestrating multiple agents
  • DevUI - Web interface samples for testing agents and workflows interactively
  • Chat Client - Examples of using chat clients directly
  • Threads - Manage conversation threads and chat message stores
  • Context Providers - Integrate with context providers like Mem0 and Redis
  • Middleware - Add middleware for logging, telemetry, and custom processing
  • Multimodal Input - Handle images and other multimodal inputs
  • Observability - Add tracing and monitoring to your agents
  • Tools - Examples of tool usage including AI function approval and error handling

Sample Guidelines

For information on creating new samples, see SAMPLE_GUIDELINES.md.

More Information