Create and setup a CodeInterpreterToolkit.
create_code_interpreter_toolkit(
region: str = 'us-west-2'
) -> Tuple[CodeInterpreterToolkit, List[BaseTool]]Example:
toolkit, tools = await create_code_interpreter_toolkit()
Use tools with an agent
agent = create_react_agent(model, tools=tools) await toolkit.cleanup() # When done
| Name | Type | Description |
|---|---|---|
region | str | Default: 'us-west-2'AWS region for code interpreter |