Code Interpreter
Domain: Tools & Function Calling
π― Motivation
A tool that lets the agent write and execute code in real-time. Essential for math, data analysis, and complex reasoning.
π Concrete Example
Agent writes Python: import statistics; data = [85, 90, 78, 92, 88]; print(statistics.mean(data)) -> executes -> 86.6. It can do precise calculations that the LLM alone cannot.
π Analogy
A student using a calculator during an exam - they do not do mental math for complex problems. They write the formula and compute. A code interpreter is the agentβs calculator.