You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tools.md
+49-1Lines changed: 49 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,8 @@ async def main():
42
42
Local runtime tools execute in your environment and require you to supply implementations:
43
43
44
44
-[`ComputerTool`][agents.tool.ComputerTool]: implement the [`Computer`][agents.computer.Computer] or [`AsyncComputer`][agents.computer.AsyncComputer] interface to enable GUI/browser automation.
45
-
-[`ShellTool`][agents.tool.ShellTool] or [`LocalShellTool`][agents.tool.LocalShellTool]: provide a shell executor to run commands.
45
+
-[`ShellTool`][agents.tool.ShellTool]: the latest shell tool for both local execution and hosted container execution.
-[`ApplyPatchTool`][agents.tool.ApplyPatchTool]: implement [`ApplyPatchEditor`][agents.editor.ApplyPatchEditor] to apply diffs locally.
47
48
48
49
```python
@@ -85,6 +86,53 @@ agent = Agent(
85
86
)
86
87
```
87
88
89
+
### Hosted container shell + skills
90
+
91
+
`ShellTool` also supports OpenAI-hosted container execution. Use this mode when you want the model to run shell commands in a managed container instead of your local runtime.
92
+
93
+
```python
94
+
from agents import Agent, Runner, ShellTool, ShellToolSkillReference
0 commit comments