Files
agent-framework/python/samples/getting_started/agents
T
Christian Glessner f79fbfa92e Python: Add OpenAI reasoning events support to Responses client (#698)
* 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
..
2025-09-09 20:07:20 +00:00
2025-08-28 18:54:06 +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, 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