Code contexts let you preserve variables, imports, and state across multipleDocumentation Index
Fetch the complete documentation index at: https://docs.gravixlayer.ai/llms.txt
Use this file to discover all available pages before exploring further.
run_code calls.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
runtime_id | string | Yes | Runtime identifier |
language | string | No | Context language. Default: python |
cwd | string | No | Working directory. Default: /workspace |
Response
| Field | Type | Description |
|---|---|---|
context_id | string | Context identifier (pass to run_code) |
language | string | Language of the context |
cwd | string | Working directory |