3f7ea350dc
Python: Add tool call/result content types and update connectors and samples ( #2971 )
...
* Add new AI content types and image tool support
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Add Python content types for tool calls/results and image generation tool support
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Address review feedback for tool content and samples
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Tighten image generation typing and sample tools list
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Align image generation output typing
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Handle MCP naming, image options mapping, and connector tool content
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Allow MCP call in function approval request
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Remove raw image_generation tool remapping
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Restore Anthropic tool_use to function calls unless code execution
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Fix lint issues for hosted file docstring and MCP parsing
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Import ChatResponse types in Anthropic client
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Fix Anthropics citation type imports and MCP typing for handoff/tools
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* Skip lightning tests without agentlightning and fix function call import
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
* fix lint on lab package
* rebuilt anthropic parsing
* redid anthropic parsing
* typo
* updated parsing and added missing docstrings
* fix tests
* mypy fixes
* second mypy fix
* add new class to other samples
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: eavanvalkenburg <13749212+eavanvalkenburg@users.noreply.github.com >
Co-authored-by: eavanvalkenburg <github@vanvalkenburg.eu >
2026-01-08 19:46:32 +00:00
Dmytro Struk and GitHub
b8260ae24c
Python: [BREAKING] Removed default "store" value ( #2443 )
...
* Removed default store value
* Small fix
2025-11-25 17:53:08 +00:00
Evan Mattson and GitHub
2a4802eac3
Python: Fix runtime response format for responses client ( #2440 )
...
* Fix runtime response format for responses client
* Handle run time schema for Azure AI Client.
2025-11-25 07:50:20 +00:00
d18ce24bf8
Python: feat(mcp): add full _meta field support for CallToolResult objects ( #2286 )
...
* feat(mcp): add full _meta field support for CallToolResult objects
- Extract and preserve complete _meta field from MCP CallToolResult responses
- Merge metadata into additional_properties of converted content items
- Handle isError field for proper error state integration
- Support arbitrary metadata like token usage, costs, and performance metrics
- Maintain backward compatibility with existing tool execution workflows
- Add comprehensive test coverage for all metadata scenarios including edge cases
- Update documentation with metadata handling examples and patterns
Fixes protocol compliance violation where _meta fields were being dropped,
enables proper monitoring and cost tracking of MCP tool usage.
* Update python/packages/core/agent_framework/_mcp.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Clarify MCP _meta field test to use generic example metadata
- Updated test_mcp_call_tool_result_with_meta_arbitrary_data to use arbitrary metadata fields
- Added comments to emphasize that _meta structure is server-specific and not standardized
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-21 08:43:24 +00:00
Evan Mattson and GitHub
5bdf8a774a
Sample to show passing in JSON schema for structured outputs ( #2362 )
2025-11-21 01:42:46 +00:00
Giles Odigwe and GitHub
4bffe1ebc8
update openai samples to use agents ( #2012 )
2025-11-12 22:58:41 +00:00
Giles Odigwe and GitHub
1d7292fba6
Python: OpenAI Responses Image Generation Stream Support, Sample and Unit Tests ( #1853 )
...
* support for image gen streaming
* small fixes
* fixes
* added comment
2025-11-11 19:01:37 +00:00
Giles Odigwe and GitHub
2059e7b3e8
Python: Azure AI Search Support Update + Refactored Samples & Unit Tests ( #1683 )
...
* azure ai search sample update
* azure ai search update
* small fix
2025-10-30 02:30:06 +00:00
Giles Odigwe and GitHub
e8a7d3b1b7
Python: Added Samples for HostedCodeInterpreterTool with files ( #1583 )
...
* code interpreter with files
* import fix
2025-10-21 01:37:53 +00:00
Eduard van Valkenburg and GitHub
76900f0eab
Python: [BREAKING] parameter naming and other fixes ( #1255 )
...
* parameter naming and other fixes
* fix test
* fix azure openai responses decorator ordering
* fix test
* fix mypy
* fixes in options handling
* fix tests
* final fixes
* exclude macos tests
* fix model param
2025-10-07 21:18:48 +00:00
Evan Mattson and GitHub
4f4890cf6a
Update getting started samples to reflect AF. Update a unit test. ( #1093 )
2025-10-02 01:20:12 +00:00
Giles Odigwe and GitHub
b88143b686
Agents + Chat Client Samples Doctsring Updates ( #1028 )
...
* agents + chat client samples doctsring updates
* fixes
2025-10-01 07:18:53 +00:00
Eduard van Valkenburg and GitHub
54ad135914
Python: [BREAKING] added SerializationMixin and applied to contents, agents, chat client… ( #1012 )
...
* added SerializationMixin and applied to contents, agents, chat clients, removed AFBaseModel
* fix annotations type
* mypy fixes
* fix tests
* fix serializable subvalues and added large docstring
* updated indents in code block
* fixed exported urls
2025-09-30 19:53:46 +00:00
b4ebafa9b1
Python: [Breaking] removed pydantic from types and workflows ( #917 )
...
* removed pydantic from types
* fix test
* fix test
* fix tests
* fix assistants client
* Remove Pydantic usage from workflow code.
* updated pydantic removal
* updated lock and test fixes
* fix mypy
* updated build system
* updated chat client parsing
* fix broken test
---------
Co-authored-by: Evan Mattson <evan.mattson@microsoft.com >
2025-09-29 21:19:58 +00:00
Eduard van Valkenburg and GitHub
10d10364a9
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
2025-09-29 16:22:34 +00:00
Dmytro Struk and GitHub
f2f0d40437
Added structured output to agent streaming ( #943 )
2025-09-27 17:07:17 +00:00
Eduard van Valkenburg and GitHub
9355329dfd
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
2025-09-25 07:02:53 +00:00
Dmytro Struk and GitHub
a72245287f
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
2025-07-24 15:31:05 +00:00
Dmytro Struk and GitHub
160c846b39
Python: Added more examples ( #208 )
...
* Small cleanup
* Added Azure and Foundry chat client samples
* Added Azure chat client agent example
2025-07-22 14:07:12 +00:00