gpt-oss not supporting OpenAI Agents SDK tools
Unlike their closed-source models, gpt-oss currently does not support OAI tools built for their closed source models. They built custom tools like other oss agents: https://github.com/openai/gpt-oss/tree/main/gpt_oss/tools. Would really love that they can support these tools they built already.
Can you clarify what you are looking for specifically?
Can you clarify what you are looking for specifically?
For instance, in the following example from the openai-agents-python: https://github.com/openai/openai-agents-python/blob/main/examples/research_bot/agents/search_agent.py, it is convenient to instantiate an agent with the "builtin" WebSearchTool implemented in the Agents SDK. Since gpt-oss is clearly capable of performing web searches, I'd love that it is able to use this WebSearchTool within this SDK. As a minimal example, I adapted code from https://cookbook.openai.com/articles/gpt-oss/run-vllm: From my understanding, as of right now, this will not work.
import asyncio
from openai import AsyncOpenAI
from agents import Agent, Runner, OpenAIResponsesModel, set_tracing_disabled, WebSearchTool
set_tracing_disabled(True)
async def main(model: str, api_key: str):
agent = Agent(
name="Assistant",
instructions="You only respond in haikus.",
model=OpenAIResponsesModel(
model="openai/gpt-oss-120b",
openai_client=AsyncOpenAI(
base_url="http://localhost:8000/v1",
api_key="EMPTY",
),
)
tools=[WebSearchTool()],
)
result = await Runner.run(agent, "What's the weather in Tokyo?")
print(result.final_output)
if __name__ == "__main__":
asyncio.run(main())