-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Feat/OpenAI agent builtin tools 6657 #6671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/OpenAI agent builtin tools 6657 #6671
Conversation
…on guide- Fix version format from 0.4.0-dev-1 to 0.4.0-dev.1 for all packages- Remove reference to non-existent Microsoft.AutoGen.Extensions package- Add correct extension packages: Aspire, MEAI, and SemanticKernel- Fix typo: RuntimeGatewway -> RuntimeGateway- Improve documentation structure with clear section headersFixes microsoft#6244
Fix issue microsoft#6277 where TextMessage was used but not imported in three code cells of the custom agents documentation, causing NameError when users run the examples. Changes: - Add TextMessage to imports in ArithmeticAgent section - Add TextMessage to imports in GeminiAssistantAgent section - Add TextMessage to imports in Declarative GeminiAssistantAgent section The CountDownAgent section already had the correct import. Fixes microsoft#6277
- Support file_search, code_interpreter, web_search_preview, computer_use_preview, image_generation, and mcp tools - Add comprehensive tests for all tool types including mixed usage scenarios - Include working examples demonstrating tool usage - Update documentation with version notes and usage examples - Maintain backward compatibility with existing function tools Fixes microsoft#6657
@withsmilo Would you mid providing a first review here? |
Sure. Let me review today night. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6671 +/- ##
==========================================
+ Coverage 80.35% 80.40% +0.04%
==========================================
Files 233 233
Lines 17701 17904 +203
==========================================
+ Hits 14224 14395 +171
- Misses 3477 3509 +32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
python/packages/autogen-ext/examples/openai_agent_builtin_tools_example.py
Outdated
Show resolved
Hide resolved
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Outdated
Show resolved
Hide resolved
…feat/openai-agent-builtin-tools-6657
….com/tejas-dharani/autogen into feat/openai-agent-builtin-tools-6657
…stallation guide- Fix version format from 0.4.0-dev-1 to 0.4.0-dev.1 for all packages- Remove reference to non-existent Microsoft.AutoGen.Extensions package- Add correct extension packages: Aspire, MEAI, and SemanticKernel- Fix typo: RuntimeGatewway -> RuntimeGateway- Improve documentation structure with clear section headersFixes microsoft#6244" This reverts commit 6d9fb2e.
…tation" This reverts commit d07898b.
….com/tejas-dharani/autogen into feat/openai-agent-builtin-tools-6657
python/packages/autogen-agentchat/tests/test_code_executor_agent.py
Outdated
Show resolved
Hide resolved
python/packages/autogen-ext/src/autogen_ext/agents/openai/_openai_agent.py
Show resolved
Hide resolved
Hello Sir, I have implemented the recommended changes:
Please let me know if anything else is needed. |
@tejas-dharani could you check the tests and doc example errors. |
python/packages/autogen-ext/tests/tools/test_openai_agent_builtin_tool_validation.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run checks and tests locally first before requesting for review. Thanks.
Why are these changes needed?
This PR adds comprehensive built-in tool support to OpenAIAgent, enabling support for file_search, code_interpreter, web_search_preview, computer_use_preview, image_generation, local_shell and mcp tools. The changes include comprehensive testing for all tool types including mixed usage scenarios, working examples demonstrating tool usage, updated documentation with version notes and usage examples, while maintaining backward compatibility with existing function tools.
Related issue number
Fixes #6657
Checks