Execution API
create_notebook_session
Agent gets Jupyter notebook on GPU.
Returns NotebookSession:
mcp_config— pass to run_agentjupyter_url— view notebook in browsermodel_info_text— model details for promptsession_id— unique identifier
create_local_session
Agent runs locally. Use with ScopedSandbox for GPU access via RPC.
Returns LocalSession:
mcp_config— pass to run_agent (empty dict)name— session nameworkspace_dir— local workspace path
create_cli_session
Agent gets shell interface to sandbox.
Returns CLISession:
mcp_config— pass to run_agentsession_id— unique identifierexec(code)— execute Python in sandboxexec_shell(cmd)— execute shell command