repl
repl
¶
Persistent Python REPL tool — maintains state across calls within a session.
Unlike CodeInterpreterTool (which runs each snippet in a fresh subprocess),
this tool keeps variables, functions, and imports alive across invocations
within the same session.
Classes¶
ReplTool
¶
Bases: BaseTool
Persistent Python REPL with session management.
| PARAMETER | DESCRIPTION |
|---|---|
timeout
|
Maximum execution time in seconds per call.
TYPE:
|
max_output
|
Maximum characters of captured output.
TYPE:
|
max_sessions
|
Maximum concurrent sessions (LRU eviction).
TYPE:
|