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/d2df625e2c2fd70a090d6321c042579c2819f0d1/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/d2df625e2c2fd70a090d6321c042579c2819f0d1/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 }>