AxAgentConfig
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/prompts/agent.ts#L623
Configuration options for creating an agent using the agent() factory function.
Extends
Type Parameters
Type Parameter |
---|
IN extends AxGenIn |
OUT extends AxGenOut |
Properties
Property | Type | Description | Overrides | Inherited from |
---|---|---|---|---|
abortSignal? | AbortSignal | - | - | AxAgentOptions.abortSignal |
agents? | AxAgentic <IN , OUT >[] | - | - | - |
ai? | AxAIService <unknown , unknown , string > | - | AxAgentOptions.ai | - |
asserts? | AxAssertion [] | - | - | AxAgentOptions.asserts |
corsProxy? | string | - | - | AxAgentOptions.corsProxy |
debug? | boolean | - | - | AxAgentOptions.debug |
debugHideSystemPrompt? | boolean | - | - | AxAgentOptions.debugHideSystemPrompt |
definition? | string | - | - | - |
description | string | - | AxAgentOptions.description | - |
disableSmartModelRouting? | boolean | - | - | AxAgentOptions.disableSmartModelRouting |
excludeContentFromTrace? | boolean | - | - | AxAgentOptions.excludeContentFromTrace |
excludeFieldsFromPassthrough? | string [] | List of field names that should not be automatically passed from parent to child agents | - | AxAgentOptions.excludeFieldsFromPassthrough |
fastFail? | boolean | - | - | AxAgentOptions.fastFail |
fetch? | { (input : URL | RequestInfo , init? : RequestInit ): Promise <Response >; (input : string | URL | Request , init? : RequestInit ): Promise <Response >; } | - | - | AxAgentOptions.fetch |
functionCall? | | "auto" | "required" | "none" | { function : { name : string ; }; type : "function" ; } | - | - | AxAgentOptions.functionCall |
functionResultFormatter? | (result : unknown ) => string | - | - | AxAgentOptions.functionResultFormatter |
functions? | AxInputFunctionType | - | - | - |
logger? | AxLoggerFunction | - | - | AxAgentOptions.logger |
maxRetries? | number | - | - | AxAgentOptions.maxRetries |
maxSteps? | number | - | - | AxAgentOptions.maxSteps |
mem? | AxAIMemory | - | - | AxAgentOptions.mem |
meter? | Meter | - | - | AxAgentOptions.meter |
model? | string | - | - | AxAgentOptions.model |
modelConfig? | AxModelConfig | - | - | AxAgentOptions.modelConfig |
name | string | - | - | - |
promptTemplate? | typeof AxPromptTemplate | - | - | AxAgentOptions.promptTemplate |
rateLimiter? | AxRateLimiterFunction | - | - | AxAgentOptions.rateLimiter |
resultPicker? | AxResultPickerFunction <AxGenOut > | - | - | AxAgentOptions.resultPicker |
sampleCount? | number | - | - | AxAgentOptions.sampleCount |
sessionId? | string | - | - | AxAgentOptions.sessionId |
showThoughts? | boolean | - | - | AxAgentOptions.showThoughts |
stepIndex? | number | - | - | AxAgentOptions.stepIndex |
stopFunction? | string | - | - | AxAgentOptions.stopFunction |
stream? | boolean | - | - | AxAgentOptions.stream |
streamingAsserts? | AxStreamingAssertion [] | - | - | AxAgentOptions.streamingAsserts |
strictMode? | boolean | - | - | AxAgentOptions.strictMode |
thinkingTokenBudget? | "high" | "low" | "none" | "minimal" | "medium" | "highest" | - | - | AxAgentOptions.thinkingTokenBudget |
thoughtFieldName? | string | - | - | AxAgentOptions.thoughtFieldName |
timeout? | number | - | - | AxAgentOptions.timeout |
traceContext? | Context | - | - | AxAgentOptions.traceContext |
traceLabel? | string | - | - | AxAgentOptions.traceLabel |
tracer? | Tracer | - | - | AxAgentOptions.tracer |
useExpensiveModel? | "yes" | - | - | AxAgentOptions.useExpensiveModel |