AxCodeExecutionResult Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxCodeExecutionResult.md type AxCodeExecutionResult

AxCodeExecutionResult

TypeScript
type AxCodeExecutionResult = object;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/agent/rlm.ts#L397

Result of AxCodeSession.executeWithStatus.

Properties

isError

TypeScript
isError: boolean;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/agent/rlm.ts#L404

True when value is the runtime’s report of an error in the code (for example ReferenceError: x is not defined) rather than a normal result.


value

TypeScript
value: unknown;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/agent/rlm.ts#L399

The value execute() resolves with for the same code.

Docs