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

Class CodeInterpreterTool

src/agents/tool.py:981–989  ·  view source on GitHub ↗

A tool that allows the LLM to execute code in a sandboxed environment.

Source from the content-addressed store, hash-verified

979
980@dataclass
981class CodeInterpreterTool:
982 """A tool that allows the LLM to execute code in a sandboxed environment."""
983
984 tool_config: CodeInterpreter
985 """The tool config, which includes the container and other settings."""
986
987 @property
988 def name(self):
989 return "code_interpreter"
990
991
992@dataclass

Callers 2

mainFunction · 0.90

Calls

no outgoing calls

Tested by 1