LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithresourcessandboxesboxesBoxesResourceupdate
Method●Since v0.14

update

Copy
update(
  self,
  path_name: str,
  *,
  cpu_millicores: int | Omit
View source on GitHub
=
omit
,
delete_after_stop_seconds
:
int
|
Omit
=
omit
,
fs_capacity_bytes
:
int
|
Omit
=
omit
,
idle_ttl_seconds
:
int
|
Omit
=
omit
,
mem_bytes
:
int
|
Omit
=
omit
,
body_name
:
str
|
Omit
=
omit
,
proxy_config
:
box_update_params
.
ProxyConfig
|
Omit
=
omit
,
run_config
:
box_update_params
.
RunConfig
|
Omit
=
omit
,
tag_value_ids
:
SequenceNotStr
[
str
]
|
Omit
=
omit
,
vcpus
:
int
|
Omit
=
omit
,
extra_headers
:
Headers
|
None
=
None
,
extra_query
:
Query
|
None
=
None
,
extra_body
:
Body
|
None
=
None
,
timeout
:
float
|
httpx
.
Timeout
|
None
|
NotGiven
=
not_given
)
->
SandboxResponse

Parameters

NameTypeDescription
mem_bytesint | Omit
Default:omit

New memory for the sandbox, in bytes. The 4 GiB per vCPU ratio applies when the sandbox is created; a resize enforces only the maximum of 64 GiB.

run_configbox_update_params.RunConfig | Omit
Default:omit

RunConfig changes what subsequent commands run with: user and work_dir replace the current values, env_vars merge over them. Commands already running are unaffected.

extra_headersHeaders | None
Default:None
extra_queryQuery | None
Default:None
extra_bodyBody | None
Default:None
timeoutfloat | httpx.Timeout | None | NotGiven
Default:not_given

Update a sandbox's display name, retention, resources, tags, or proxy configuration. The name must be unique within the tenant. Proxy configuration sent to a sandbox that is not running is stored and applied when it next starts.

Send extra headers

Add additional query parameters to the request

Add additional JSON properties to the request

Override the client-level default timeout for this request, in seconds