AxAgentOptions
type AxAgentOptions = Omit<AxProgramForwardOptions<string>, "functions" | "description"> & object;
Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/prompts/agent.ts#L66
Type declaration
| Name | 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). |
actorOptions? | Partial<Omit<AxProgramForwardOptions<string>, "functions"> & object> | Default forward options for the Actor sub-program. |
compressLog? | boolean | If true, the Actor must return actionDescription and action logs will store short descriptions. |
contextFields | string[] | Input fields holding long context (will be removed from the LLM prompt). |
debug? | boolean | - |
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). |
maxTurns? | number | Maximum Actor turns before forcing Responder (default: 10). |
mode? | "simple" | "advanced" | Sub-query execution mode (default: ‘simple’). |
recursionOptions? | AxAgentRecursionOptions | Default forward options for recursive llmQuery sub-agent calls. |
responderOptions? | Partial<Omit<AxProgramForwardOptions<string>, "functions"> & object> | Default forward options for the Responder sub-program. |
runtime? | AxCodeRuntime | Code runtime for the REPL loop (default: AxJSRuntime). |