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/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/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/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/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 }
>