ax
Call Signature
function ax<T, ThoughtKey>(signature: T, options?: Readonly<AxAIServiceOptions & object & object>): AxGen<ParseSignature<T>["inputs"], ParseSignature<T>["outputs"] & string extends ThoughtKey ? object : { [P in string]?: string }>;
Defined in: https://github.com/ax-llm/ax/blob/b50783a160295ce34ac10dcaf3bd8fff4a01d535/src/ax/dsp/template.ts#L14
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends string | - |
ThoughtKey extends string | "thought" |
Parameters
| Parameter | Type |
|---|---|
signature | T |
options? | Readonly<AxAIServiceOptions & object & object> |
Returns
AxGen<ParseSignature<T>["inputs"], ParseSignature<T>["outputs"] & string extends ThoughtKey ? object : { [P in string]?: string }>
Call Signature
function ax<TInput, TOutput, ThoughtKey>(signature: AxSignature<TInput, TOutput>, options?: Readonly<AxAIServiceOptions & object & object>): AxGen<TInput, TOutput & string extends ThoughtKey ? object : { [P in string]?: string }>;
Defined in: https://github.com/ax-llm/ax/blob/b50783a160295ce34ac10dcaf3bd8fff4a01d535/src/ax/dsp/template.ts#L29
Type Parameters
| Type Parameter | Default type |
|---|---|
TInput extends Record<string, any> | - |
TOutput extends Record<string, any> | - |
ThoughtKey extends string | "thought" |
Parameters
| Parameter | Type |
|---|---|
signature | AxSignature<TInput, TOutput> |
options? | Readonly<AxAIServiceOptions & object & object> |
Returns
AxGen<TInput, TOutput & string extends ThoughtKey ? object : { [P in string]?: string }>