Vectrune documentationAlpha referenceLearning site ↗

Runtime context and environment

Request context, shared memory, and environment configuration.

___last_exec_result___

___last_exec_result___

Context slot written by builtins that expose a last execution result.

Runtime: Native / CLI

Returns / effects

Builtin-dependent value; not every builtin writes it.

Implementation: src/builtins.rs

AWS_LAMBDA_FUNCTION_NAME

AWS_LAMBDA_FUNCTION_NAME

AWS-provided name used as a Lambda environment detection signal.

Runtime: Native / CLI

Implementation: src/main.rs

AWS_LAMBDA_RUNTIME_API

AWS_LAMBDA_RUNTIME_API

AWS-provided runtime endpoint used as a Lambda environment detection signal.

Runtime: Native / CLI

Implementation: src/main.rs

body

body

Raw request body, replaced by parsed JSON after an unassigned parse-json call.

Runtime: Native / CLI

Returns / effects

String initially; parsed JSON after conversion.

Implementation: src/core/mod.rs

GEMINI_API_KEY

GEMINI_API_KEY

API key read by the Gemini CLI AI branch.

Runtime: Native / CLI

Implementation: src/cli/ai.rs

path.params

path.params.<name>

Object containing string-valued URL parameters. Each parameter is also inserted directly into the native context.

Runtime: Native / CLI

Returns / effects

Parameter object or selected string.

Implementation: src/core/mod.rs

RUNE_FILE

RUNE_FILE

Path to the Rune entrypoint inside the Lambda runtime; defaults to rune/app.rune.

Runtime: Native / CLI

Implementation: src/lambda_main.rs

VECTRUNE_AI_MODEL

VECTRUNE_AI_MODEL

Default model for CLI AI and dynamic AI generation when no explicit model is configured.

Runtime: Native / CLI

Implementation: src/cli/ai.rs

VECTRUNE_MEMORY_BACKEND

VECTRUNE_MEMORY_BACKEND=memory

Choose the implemented shared-memory backend.

Runtime: Native / CLI

Returns / effects

memory is supported. Other values panic during backend initialization.

Implementation: src/memory/mod.rs

VECTRUNE_OLLAMA_URL

VECTRUNE_OLLAMA_URL

Override the Ollama endpoint used by native AI helpers.

Runtime: Native / CLI

Implementation: src/cli/ai.rs