Skip to content

CodeInterpreterTool

A tool for interpreting and executing code. This tool allows an AI agent to run code snippets and analyze data files.

---
title: CodeInterpreterTool
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class Tool {
        +string name
        +string kind
        +string description
        +Binding[] bindings
    }
    Tool <|-- CodeInterpreterTool
    class CodeInterpreterTool {
      
        +string kind
        +string[] fileIds
    }
kind: code_interpreter
fileIds:
- file1
- file2
NameTypeDescription
kindstringThe kind identifier for code interpreter tools
fileIdsstring[]The IDs of the files to be used by the code interpreter tool.