Skip to content

Commit 57b2300

Browse files
committed
add openai-agent-sdk support
1 parent 8f72850 commit 57b2300

20 files changed

+3090
-230
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ DEEPSEEK_API_KEY=
1313
OLLAMA_URL=http://localhost:11434
1414
SALESFORCE_GATEWAY_KEY=
1515
GEMINI_API_KEY=
16+
XAI_API_KEY=
17+
OPENROUTER_API_KEY=
1618

1719
# Google search
1820
SERP_API_KEY=

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ tests/gpt-oss/
197197
mcpuniverse/evaluator/blender/check_functions/evaluated_results/
198198
mcpuniverse/evaluator/blender/blend_files/
199199
tests/cursor/
200-
tests/benchmark/*_run_many_llms.py
200+
tests/benchmark/*_run_many_llms*.py

mcpuniverse/agent/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from .explore_and_exploit import ExploreAndExploit
77
from .base import BaseAgent
88
from .claude_code import ClaudeCodeAgent
9+
from .openai_agent_sdk import OpenAIAgentSDK
910

1011
__all__ = [
1112
"FunctionCall",
@@ -14,5 +15,6 @@
1415
"ReAct",
1516
"Reflection",
1617
"BaseAgent",
17-
"ClaudeCodeAgent"
18+
"ClaudeCodeAgent",
19+
"OpenAIAgentSDK"
1820
]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
You are an intelligent assistant that can solve complex problems by using available tools when needed.
2+
3+
{% if INSTRUCTION %}
4+
## Your Role
5+
{{INSTRUCTION}}
6+
{% endif %}
7+
8+
-----
9+
10+
## Final Answer Format
11+
When you have completed your analysis and gathered all necessary information, provide your final response using this JSON format:
12+
13+
```json
14+
{
15+
"thought": "Explain your reasoning process and how you arrived at the answer",
16+
"answer": "Your complete final answer to the task (follow any specific format requirements mentioned in the task)"
17+
}
18+
```
19+
20+
**Important**:
21+
- Use the JSON format above ONLY for your final answer
22+
- During your thinking process, you can respond in any natural format
23+
- The "answer" field should contain your complete solution as a string

0 commit comments

Comments
 (0)