Sandbox / CreateSnapshotOpts
Interface: CreateSnapshotOpts
Options for creating a snapshot.
Extends
Properties
apiHeaders?
optionalapiHeaders?:Record<string,string>
Additional headers to send with AgentBox API requests.
Inherited from
apiKey?
optionalapiKey?:string
AgentBox API key to use for authentication.
Default
AGENTBOX_API_KEY // environment variableInherited from
domain?
optionaldomain?:string
Domain to use for the API.
Default
AGENTBOX_DOMAIN // environment variable or agentbox-runtime.ru
Inherited from
name?
optionalname?:string
Optional name for the snapshot template. If a snapshot template with this name already exists, a new build will be assigned to the existing template instead of creating a new one.
requestTimeoutMs?
optionalrequestTimeoutMs?:number
Timeout for requests to the API in milliseconds.
Default
60_000 // 60 secondsInherited from
SandboxForkOpts.requestTimeoutMs
signal?
optionalsignal?:AbortSignal
An optional AbortSignal that can be used to cancel the in-flight request. When the signal is aborted, the underlying fetch is aborted and the returned promise rejects with an AbortError.