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

AxProgramForwardOptions

TypeScript
type AxProgramForwardOptions<MODEL> = AxAIServiceOptions & object;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/dsp/types.ts#L186

Type declaration

NameTypeDescription
_mcpContextPrompt?AxChatRequest["chatPrompt"]Internal Resolved MCP prompt/resource context for this run.
_mcpExecutionContext?AxMCPExecutionContextInternal Shared run-scoped MCP context.
ai?AxAIService-
asserts?AxAssertion<any>[]-
cachingFunction()?(key: string, value?: AxGenOut) => | AxGenOut | undefined | Promise<AxGenOut | undefined>-
customTemplate?string-
description?string-
disableMemoryCleanup?boolean-
eventContext?AxEventContextImmutable provenance and delivery context for event-driven execution.
eventInheritance?AxEventInheritanceControls propagation of event context to nested programs. Defaults to all.
excludeContentFromTrace?boolean-
fastFail?boolean-
functionCall?AxChatRequest["functionCall"]-
functionCallMode?"auto" | "native" | "prompt"-
functionResultFormatter()?(result: unknown) => string-
functions?AxInputFunctionType-
includeOptionalInputFieldsInSystemPrompt?boolean-
maxRetries?number-
maxSteps?number-
mcp?| AxMCPClient | readonly AxMCPClient[]MCP clients attached natively to this execution.
mcpContext?readonly AxMCPContextRequest[]MCP prompts/resources to resolve into attributed run context.
mcpInheritance?AxMCPInheritanceControls propagation of MCP clients to nested programs.
mem?AxAIMemory-
model?MODEL-
modelConfig?AxModelConfig-
onFunctionCall()?(call: Readonly<AxFunctionCallTrace>) => void | Promise<void>-
promptTemplate?typeof AxPromptTemplate-
resultPicker?AxResultPickerFunction<AxGenOut>-
sampleCount?number-
selfTuning?boolean | AxSelfTuningConfig-
showThoughts?boolean-
speech?AxSpeechConfig-
stepHooks?AxStepHooks-
stopFunction?string | string[]-
streamingAsserts?AxStreamingAssertion[]-
strictMode?boolean-
structuredOutputMode?"auto" | "native" | "function"-
thoughtFieldName?string-
traceLabel?string-
ucp?| AxUCPClient | readonly AxUCPClient[]UCP clients attached through their negotiated MCP services.

Type Parameters

Type Parameter
MODEL
Docs