AxFunctionProcessor Generated TypeScript API reference. typescript api api/reference build/apidocs/Class.AxFunctionProcessor.md class AxFunctionProcessor

AxFunctionProcessor

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/functions.ts#L135

Constructors

Constructor

TypeScript
new AxFunctionProcessor(funcList: readonly AxFunction[]): AxFunctionProcessor;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/functions.ts#L138

Parameters

ParameterType
funcListreadonly AxFunction[]

Returns

AxFunctionProcessor

Methods

execute()

TypeScript
execute<MODEL>(func: Readonly<AxChatResponseFunctionCall>, options?: Readonly<AxAIServiceOptions & object & object>): Promise<string>;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/functions.ts#L237

Type Parameters

Type Parameter
MODEL

Parameters

ParameterType
funcReadonly<AxChatResponseFunctionCall>
options?Readonly<AxAIServiceOptions & object & object>

Returns

Promise<string>


executeWithDetails()

TypeScript
executeWithDetails<MODEL>(func: Readonly<AxChatResponseFunctionCall>, options?: Readonly<AxAIServiceOptions & object & object>): Promise<{
  formatted: string;
  parsedArgs: unknown;
  rawResult: unknown;
}>;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/functions.ts#L198

Type Parameters

Type Parameter
MODEL

Parameters

ParameterType
funcReadonly<AxChatResponseFunctionCall>
options?Readonly<AxAIServiceOptions & object & object>

Returns

Promise<{ formatted: string; parsedArgs: unknown; rawResult: unknown; }>

Docs