AxCodeSession
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/prompts/rlm.ts#L32
A persistent code execution session. Variables persist across execute() calls.
Methods
close()
close(): void;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/prompts/rlm.ts#L37
Returns
void
execute()
execute(code: string, options?: object): Promise<unknown>;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/prompts/rlm.ts#L33
Parameters
| Parameter | Type |
|---|---|
code | string |
options? | { reservedNames?: readonly string[]; signal?: AbortSignal; } |
options.reservedNames? | readonly string[] |
options.signal? | AbortSignal |
Returns
Promise<unknown>