feat: add OpenAI Agents SDK integration support#22
Closed
Conversation
Add openai-agents>=0.1.0 to project dependencies to enable integration with OpenAI Agents SDK
Add to_openai_agents() method to StackOneTool class for converting tools to OpenAI Agents SDK format Add to_openai_agents() method to Tools class for batch conversion Implements async wrapper with function_tool decorator for compatibility Include documentation links to https://openai.github.io/openai-agents-python/
Add comprehensive example showing how to use StackOne tools with OpenAI Agents SDK Include tests for tool conversion and integration functionality Demonstrate Agent and Runner usage with HRIS tools
Add OpenAI Agents SDK to supported frameworks list Include inline examples with documentation links to https://openai.github.io/openai-agents-python/ Clarify that this is the OpenAI Agents SDK (not OpenAI Functions) Update AI framework integration section with comprehensive examples
There was a problem hiding this comment.
cubic analysis
No issues found across 2 files. Review in cubic
Add OpenAI Agents SDK to supported frameworks list Include inline examples with documentation links to https://openai.github.io/openai-agents-python/ Clarify that this is the OpenAI Agents SDK (not OpenAI Functions) Update AI framework integration section with comprehensive examples
20754f6 to
beb4e59
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for integrating StackOne tools with the OpenAI Agents SDK, enabling users to use StackOne tools within the OpenAI Agents framework. The integration provides async tool wrappers and batch conversion methods to maintain compatibility with the SDK's requirements.
Key changes:
- Implementation of
to_openai_agents()methods for both single tools and tool collections - Addition of comprehensive test coverage for the new integration functionality
- Documentation updates with usage examples and framework comparison
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| stackone_ai/models.py | Implements core OpenAI Agents SDK integration with async wrapper methods |
| pyproject.toml | Adds openai-agents>=0.1.0 dependency |
| tests/test_openai_agents.py | Comprehensive test suite for tool conversion and SDK compatibility |
| examples/openai_agents_integration.py | Real-world usage example with Agent and Runner classes |
| README.md | Updated documentation with OpenAI Agents SDK integration examples |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
cubic analysis
No issues found across 4 files. Review in cubic
Contributor
Author
|
readme should be midified based on #20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Core Implementation
Examples & Tests
Documentation
About OpenAI Agents SDK
The OpenAI Agents SDK is the production-ready successor to Swarm, enabling building agentic AI apps with lightweight abstractions. This integration allows StackOne tools to be used seamlessly with the OpenAI Agents SDK framework.
Test Plan
Summary by cubic
Added support for integrating StackOne tools with the OpenAI Agents SDK, including batch conversion methods, documentation, usage examples, and tests.
New Features
Added to_openai_agents() methods for StackOneTool and Tools classes.
Integrated async wrappers and function_tool decorator for SDK compatibility.
Documentation and Examples
Updated README with integration steps and clear examples.
Added a sample script and comprehensive tests for tool conversion and SDK usage.