mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
f79fbfa92e
* feat: add OpenAI reasoning events support with comprehensive test coverage - Implement reasoning event handling in OpenAI Responses client * Add support for ResponseReasoningTextDeltaEvent * Add support for ResponseReasoningTextDoneEvent * Add support for ResponseReasoningSummaryTextDeltaEvent * Add support for ResponseReasoningSummaryTextDoneEvent * Map all reasoning events to TextReasoningContent objects * Preserve metadata across reasoning events - Add comprehensive test coverage (5 focused test functions) * test_streaming_reasoning_text_delta_event * test_streaming_reasoning_text_done_event * test_streaming_reasoning_summary_text_delta_event * test_streaming_reasoning_summary_text_done_event * test_streaming_reasoning_events_preserve_metadata - Add sample demonstrating reasoning functionality * Shows how to enable reasoning in chat options * Demonstrates accessing reasoning content from responses - Code quality improvements * Follow existing code patterns and style guidelines * Organize imports properly * Maintain backwards compatibility * All tests pass and quality checks succeed * fix: resolve type errors and cleanup unused imports after rebase - Add proper hasattr checks for optional attributes in union types - Remove unused OpenAI event type imports - Fix line length formatting issues - Ensure type safety when accessing content attributes
f79fbfa92e
ยท
2025-09-12 12:07:49 +00:00
History
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, and more.
Examples by Provider
Azure AI Foundry Examples
| Folder | Description |
|---|---|
foundry/ |
Create agents using Azure AI Foundry |
Azure OpenAI Examples
| Folder | Description |
|---|---|
azure_assistants_client/ |
Create agents using Azure OpenAI Assistants API |
azure_chat_client/ |
Create agents using Azure OpenAI Chat Completions API |
azure_responses_client/ |
Create agents using Azure OpenAI Responses API |
OpenAI Examples
| Folder | Description |
|---|---|
openai_assistants_client/ |
Create agents using OpenAI Assistants API |
openai_chat_client/ |
Create agents using OpenAI Chat Completions API |
openai_responses_client/ |
Create agents using OpenAI Responses API |