A tool that allows the LLM to execute code in a sandboxed environment.
| 979 | |
| 980 | @dataclass |
| 981 | class 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 |
no outgoing calls