MCPcopy Create free account
hub / github.com/openai/openai-agents-python / LocalShellTool

Class LocalShellTool

src/agents/tool.py:1020–1032  ·  view source on GitHub ↗

A tool that allows the LLM to execute commands on a shell. For more details, see: https://platform.openai.com/docs/guides/tools-local-shell

Source from the content-addressed store, hash-verified

1018
1019@dataclass
1020class LocalShellTool:
1021 """A tool that allows the LLM to execute commands on a shell.
1022
1023 For more details, see:
1024 https://platform.openai.com/docs/guides/tools-local-shell
1025 """
1026
1027 executor: LocalShellExecutor
1028 """A function that executes a command on a shell."""
1029
1030 @property
1031 def name(self):
1032 return "local_shell"
1033
1034
1035class ShellToolLocalSkill(TypedDict):

Calls

no outgoing calls