Commit Graph

41 Commits

  • Python: [BREAKING] cleanup of thread API and serialization (#893)
    * cleanup of threads and serialization
    
    * fix for sliding window
    
    * fix redis test
    
    * updated from comments
    
    * updated context provider and threads
    
    * updated lock
    
    * add asyncio default
    
    * fix redis tests
    
    * fix tests
    
    * fix tests
    
    * renamed to invoking
    
    * fixed tests
    
    * fix for instructions
  • Python: Added chat middleware and more examples (#883)
    * Added example with stateful middleware
    
    * Added chat middleware
    
    * Updated middleware example with override scenario
    
    * Small revert
    
    * Small fixes
    
    * Added kwargs to context objects
    
    * Added README
    
    * Added function middleware to chat client
    
    * Small refactoring
    
    * Reverted example files
    
    * Made MiddlewareWrapper generic
    
    * Added Middleware exception
    
    * Small refactoring
    
    * Small fix
  • Python: typo fix (#920)
    * typo fix
    
    * fixed two other typos
  • Python: [BREAKING] updated structure and samples (#875)
    * updated structure and samples
    
    * updated names and removed cross tests
    
    * updated projects etc
    
    * updated tests
    
    * updated test
    
    * test fixes
    
    * removed devui for now
    
    * updated all-tests task
    
    * removed old style configs
    
    * remove coverage from tests
    
    * updated to unit tests with all-tests
    
    * updated foundry everywhere
    
    * fix azure ai tests
    
    * fix merge tests
    
    * fix mypy
  • Python: additional Foundry Tools (#611)
    * initial work on additional foundry tools
    
    * fixes
    
    * fix tests
    
    * fix import
    
    * updated lock
    
    * added hosted MCP for foundry
    
    * fixes
    
    * fix for test
    
    * updated samples
    
    * fix result parsing
  • Python: OpenAI Responses Image Generation Tool (#842)
    * Image generation + Added Samples
    
    * extended image gen tool for responses
    
    * uv fix
    
    * removed hosted image gen
    
    * copilot suggestions
    
    * Update python/packages/main/agent_framework/openai/_responses_client.py
    
    Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
  • Python: Add custom agent and chat client implementation examples (#849)
    * Initial plan
    
    * Add custom agent and chat client examples with complete implementations and documentation
    
    Co-authored-by: dmytrostruk <13853051+dmytrostruk@users.noreply.github.com>
    
    * Simplify custom examples per feedback: remove __init__.py, keep only EchoAgent/EchoingChatClient, add proper documentation, update README table format
    
    Co-authored-by: dmytrostruk <13853051+dmytrostruk@users.noreply.github.com>
    
    * Small fixes and formatting
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
    Co-authored-by: dmytrostruk <13853051+dmytrostruk@users.noreply.github.com>
  • Python: Added Anthropic agent example (#850)
    * Added Anthropic example
    
    * Small fix
  • Python: api doc generation setup (#342)
    * api doc generation setup
    
    * remove old log file
    
    * improved check md function
    
    * update with sample code in docstring
    
    * updated script
    
    * docs update
    
    * docs update and action
    
    * removed all-extras
    
    * fixed sync command
    
    * moved install
    
    * moved action
    
    * renamed folder
    
    * fixed syntax
    
    * add python path
    
    * fix mypy and reused steps
    
    * updated merge test
    
    * undo change
    
    * slight update in poe commands
    
    * dev setup update
    
    * updated uvlock
  • Python: Added Copilot Studio Agent (#722)
    * Small fix in dotnet conformance tests
    
    * Added CopilotStudioAgent implementation
    
    * Added examples
    
    * Updated package README
    
    * Small fixes
    
    * Small improvements
    
    * Fixed dotnet tests
    
    * Add unit tests
    
    * Updated tests
    
    * Small updates
    
    * Small test fixes
    
    * Revert "Small test fixes"
    
    This reverts commit 983ac44a70.
    
    * Small fixes in documentation
    
    * Updated test configuration
    
    * Revert "Updated test configuration"
    
    This reverts commit 2a16fea815.
    
    * Small fix
    
    * Reverted TODO item
    
    * Small suppressions
    
    * More fixes
    
    * Small fixes
    
    * Fixed tests
    
    * Removed disallow_any_unimported rule in all packages
    
    * Fixes
  • 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
  • Python: Improved telemetry setup (#421)
    * test with stack and simplified names
    
    * quick demo of agent decorator
    
    * moved builder to protocol to enhance functionality
    
    * undid chatclientAgent -> agent rename
    
    * one more
    
    * reverted AIAgent rename
    
    * final reverts
    
    * fixed foundry import
    
    * revert changes
    
    * streamlined otel and fcc decorators
    
    * cleanup of telemetry
    
    * further refinement
    
    * lots of updates
    
    * fixed typing
    
    * fix for mypy
    
    * added input and output atttributes
    
    * fix import
    
    * initial work on baking in otel
    
    * major update to telemetry
    
    * final fixes after rename
    
    * fix
    
    * fix test
    
    * updated tests
    
    * fix for tests
    
    * fixes for tests
    
    * updated based on comments
    
    * removed agent decorator
    
    * fix for Python: ServiceResponseException when using multiple tools
    Fixes #649
    
    * addressed comments
    
    * fix tests
    
    * fix tests
    
    * fix tools tests
    
    * fix for conversation_id in assistants client
    
    * fix responses test
    
    * fix tests and mypy
    
    * updated test
    
    * foundry fix
    
    ---------
    
    Co-authored-by: Chris <66376200+crickman@users.noreply.github.com>
  • Python: Introducing UserInputRequest and Response types and HostedMcpTool (#405)
    * initial work on User Approval (and hosted mcp to validate)
    
    * small update to the comments in the sample
    
    * enable local MCP tools in chatClient get methods
    
    * working streaming and improved setup
    
    * fix for pyright
    
    * updated create_approval -> create_response method
    
    * added tests
    
    * updated HostedMcpTool and addressed feedback
    
    * update type name
    
    * naming updates
    
    * small docstring update
    
    * mypy fix
    
    * fixes and updates
    
    * fixes for responses
    
    * fix int tests
    
    * removed broken tests
    
    * updated test running
    
    * removed specific content check on websearch
    
    * increased timeout
    
    * split slow foundry test
    
    * don't parallel run samples
    
    * add dist load to unit tests
    
    ---------
    
    Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
  • Python: name changes executed (#607)
    * name changes executed
    
    * updated adr to accepted
    
    * renamed openai base config
    
    * renamed openai config to mixin
    
    * added renames in user docs
    
    * reverted mcperror
    
    * fix tests
    
    * remove sse from tests
  • Python: Added examples with explicit settings (#562)
    * Added examples with explicit settings
    
    * Added info about RBAC roles
  • Python: Small fixes in examples (#540)
    * Fixed Ruff formatting
    
    * Added more info to chat response cancellation example
    
    * Improved example
    
    * Small fix
  • Python: Documentation updates (#538)
    * Added README for each sample sub-folder
    
    * More documentation updates
  • Python: Improved foundry integration tests (#514)
    * improved foundry integration tests
    
    * Update python/packages/foundry/tests/test_foundry_chat_client.py
    
    Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
    
    * Update python/packages/foundry/tests/test_foundry_chat_client.py
    
    Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Giles Odigwe <gilesodigwe@microsoft.com>
    Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
  • Python: Removed DefaultAzureCredential (#490)
    * Removed DefaultAzureCredential
    
    * Renamed ad_credential to credential
  • Python: Web search file search tools (#395)
    * Add web and file search tools
    
    * add tests
    
    * PR comments
    
    * Add tools support for chat and assistants clients
    
    * fix code checks
    
    * add tests for assistants client
    
    * Add samples
    
    * fix fn descriptions
    
    * Add openai responses model id to environment variables
    
    ---------
    
    Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
  • Python: Thread storage and serialization (#394)
    * Updates for message store support
    
    * Added unit tests
    
    * Added suspend-resume example
    
    * Added example with custom chat message store
    
    * Small fix
    
    * Addressed PR feedback
    
    * Renaming and documentation
    
    * More renaming
    
    * Addressed more PR feedback
    
    * Small fixes in Foundry chat client and examples
    
    * Small update
    
    * Addressed PR feedback
    
    * Increased timeout for Azure tests
  • Python: Introducing Local MCP Servers (#389)
    * mcp parts
    
    * mcp parts 2
    
    * removed structured output in favor of handling in chatresponse, mcp as AITool and running samples
    
    * updated naming
    
    * fixed test
  • Python: openai updates (#388)
    * openai updates
    
    * rebuild of openai structure
    
    * updated responses structure
    
    * renamed sample
    
    * added file id support to code interpreter
    
    * added hosted file ids to code interpretor
    
    * mypy fixes
    
    * removed default az cred from codebase
    
    * updated agent name setup
    
    * added kwargs to entra methods
    
    * and further kwargs
    
    * extra comment
    
    * updated all samples
    
    * readded custom get methods for responses
    
    * updated int tests with ad credential
    
    * missed one
  • Python: added create_agent and removed need for Field in annotations (#380)
    * added create_agent
    
    * add minimal sample
    
    * allow multiple annotations
    
    * improved docstring
  • Python: Added examples for Azure OpenAI Responses agent (#363)
    * Added examples for Azure OpenAI Responses agent
    
    * Update python/samples/getting_started/agents/azure_responses_client/azure_responses_client_with_code_interpreter.py
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
  • Python: Azure OpenAI Assistants Chat Client and Agent (#300)
    * Initial version of assistant client
    
    * More updates to assistant client
    
    * Finished assistant chat client implementation
    
    * Small fixes and basic example
    
    * Added code interpreter example
    
    * More examples
    
    * Added chat client example
    
    * Small fixes
    
    * Added tests
    
    * Enabled telemetry
    
    * Small fix
    
    * Removed files temporarily
    
    * Revert "Removed files temporarily"
    
    This reverts commit 5cdfa0d299.
    
    * Small fixes
    
    * Addressed PR feedback
    
    * Fixed tests
    
    * Small update
    
    * Added Azure assistants client and examples
    
    * Added tests
    
    * Small fix
  • Python: small fixes in foundry (#297)
    * small fixes in foundry
    
    * other samples updated
    
    * make it optional
    
    * added instructions and response format to create agent
    
    * mypy fix
    
    * shortened main readme and improved python readme
  • Python: OpenAI Assistants Chat Client and Agent (#288)
    * Initial version of assistant client
    
    * More updates to assistant client
    
    * Finished assistant chat client implementation
    
    * Small fixes and basic example
    
    * Added code interpreter example
    
    * More examples
    
    * Added chat client example
    
    * Small fixes
    
    * Added tests
    
    * Enabled telemetry
    
    * Small fix
    
    * Removed files temporarily
    
    * Revert "Removed files temporarily"
    
    This reverts commit 5cdfa0d299.
    
    * Small fixes
    
    * Addressed PR feedback
    
    * Fixed tests
    
    * Small update
  • Python: updated API in sync with dotnet (#269)
    * updated API in sync with dotnet
    
    * fix test
    
    * updated name and display_name
    
    * fixed mypy setup
    
    * add pre-commit cache
  • Python: OpenAI Responses Agent - threads, code interpreter, bug fixes and examples (#242)
    * Added basic example with small fix
    
    * Added example with function tools
    
    * Added example with thread management
    
    * Small renaming
    
    * Added example with code interpreter
  • Python: Added fixes and more examples for OpenAI and Azure chat client agents (#232)
    * Added non-streaming and streaming examples
    
    * Updated resource management
    
    * Added examples with thread management
    
    * Added function tools examples
    
    * Small rename
    
    * Added code interpreter example
    
    * Updated example
    
    * Addressed PR feedback
    
    * Added more OpenAI and Azure chat completion examples
    
    * File renaming
    
    * Small fix in tests
    
    * Small revert
    
    * More renaming
    
    * Small fix
  • Python: Added fixes and more examples for Foundry agent (#217)
    * Added non-streaming and streaming examples
    
    * Updated resource management
    
    * Added examples with thread management
    
    * Added function tools examples
    
    * Small rename
    
    * Added code interpreter example
    
    * Updated example
    
    * Addressed PR feedback
    
    * Addressed PR feedback
  • Python: Added more examples (#208)
    * Small cleanup
    
    * Added Azure and Foundry chat client samples
    
    * Added Azure chat client agent example
  • Python: Implemented FoundryChatClient (#193)
    * Initial version of FoundryChatClient
    
    * Updates to the tool call streaming wrapper
    
    * Small fixes
    
    * Small updates and addressed PR feedback
    
    * Handle automatic client creation
    
    * Small improvement
    
    * Added credential parameter
    
    * Small improvements
    
    * Made FoundryChatClient disposable
    
    * Small fixes
    
    * Added unit tests
    
    * Refactored samples
    
    * Small improvements
    
    * Small fix
    
    * Addressed PR feedback
    
    * Small fixes
    
    * Small updates
    
    * Small fix
    
    * Addressed PR feedback
  • Python: simple Agent sample (#180)
    * tweaks to agents and sample
    
    * updated clients and agents
    
    * single line run and print
    
    * improved tool handling
    
    * added note on setting max iterations
    
    * fixed streaming param name
    
    * updated tools test
    
    * made kwargs alphabetical
    
    * added params to run methods
    
    * tweak to ensure right overload