GPT-OSS integrates three types of utilities:
- Web Search: By
SimpleBrowserTool
implementation, support for keyword search, web page content extraction (need to beEXA_API_KEY
(Authorization) - Python implementation: Run code securely using Docker containers for tasks such as numerical computation, but guard against the risk of prompt injection
- file operation: By
apply_patch
Realize file creation/modification/deletion
Enabled by injecting the tool configuration in a system message, for example:SystemContent.new().with_tools(browser_tool.tool_config)
The tool will automatically generate structured requests when it is invoked. The tool will automatically generate structured requests and developers need to implement the corresponding back-end logic. openAI reminds that Python tools should be sandboxed in production environments to avoid dangerous operations.
This answer comes from the articleGPT-OSS: OpenAI's Open Source Big Model for Efficient ReasoningThe