Build a session key from RunnableConfig.
checkpoint_ns_scope controls how much of checkpoint_ns is used:
"full" (default): append the entire checkpoint_ns, so every tool
call gets its own session."parent": drop the innermost (per-tool-call) checkpoint_ns segment
and append only the enclosing scope.Examples::
Top-level agent (ns "tools:abc"):
full -> "thread-001:tools:abc"
parent -> "thread-001"
Subagent (ns "sub-a:1|tools:xyz"):
full -> "thread-001:sub-a:1|tools:xyz"
parent -> "thread-001:sub-a:1"
Create and setup a CodeInterpreterToolkit.
Input schema for execute_code tool.
Input schema for execute_command tool.
Input schema for read_files tool.
Input schema for write_files tool.
Input schema for list_files tool.
Input schema for delete_files tool.
Input schema for upload_file tool.
Input schema for install_packages tool.
Toolkit for working with AWS code interpreter environment.
This toolkit provides a set of tools for working with a remote code interpreter environment:
The toolkit lazily initializes the code interpreter session on first use. It supports multiple threads by maintaining separate code interpreter sessions for each thread ID.