AxRLMConfig
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/prompts/rlm.ts#L43
RLM configuration for AxAgent.
Properties
| Property | Type | Description |
|---|---|---|
actorCallback? | (result: Record<string, unknown>) => void | Promise<void> | Called after each Actor turn with the full actor result. |
actorFields? | string[] | Output field names the Actor should produce (in addition to javascriptCode). |
compressLog? | boolean | If true, the Actor must return actionDescription and action logs will store short action descriptions instead of full code blocks. |
contextFields | string[] | Input fields holding long context (will be removed from the LLM prompt). |
maxBatchedLlmQueryConcurrency? | number | Maximum parallel llmQuery calls in batched mode (default: 8). |
maxLlmCalls? | number | Cap on recursive sub-LM calls (default: 50). |
maxRuntimeChars? | number | Maximum characters for RLM runtime payloads (default: 5000). Applies to llmQuery context and code execution output. |
maxTurns? | number | Maximum Actor turns before forcing Responder (default: 10). |
mode? | "simple" | "advanced" | Sub-query execution mode (default: ‘simple’). - ‘simple’: llmQuery delegates to a plain AxGen (direct LLM call, no code runtime). - ‘advanced’: llmQuery delegates to a full AxAgent (Actor/Responder + code runtime). |
runtime? | AxCodeRuntime | Code runtime for the REPL loop (default: AxJSRuntime). |