s() API Signature, field, schema, and validation APIs.
Most Used AxFieldTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxFieldSource source
Full reference
AxFieldTypeTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxFieldTypeSource source
Full reference
AxSignatureTypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.
Field Value Kind classForm AxSignatureSource source
Call Shape addInputField ( field : Readonly < AxField >) : void ; Full reference
AxSignatureConfigTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxSignatureConfigSource source
Full reference
fFluent field builder for creating type-safe signature fields.
Field Value Kind variableForm fSource source
Call Shape const f : () => AxSignatureBuilder & object ; Examples const sig = f ()
. input ( 'name' , f . string ( 'User name' ))
. input ( 'age' , f . number ( 'Age in years' ))
. output ( 'greeting' , f . string ( 'Personalized greeting' ))
. build (); const sig = f ()
. input ( 'email' , f . string (). email ())
. input ( 'score' , f . number ( 'Score between 0-100' ). min ( 0 ). max ( 100 ))
. input ( 'tags' , f . string ( 'Tag' ). array ( 'List of tags' ))
. output ( 'isValid' , f . boolean ())
. build (); Full reference
sCreates a type-safe signature from a string template.
Field Value Kind functionForm sReturns AxSignature <ParseSignature<T>["inputs"], ParseSignature<T>["outputs"]> A typed AxSignature instanceSource source
Call Shape function s < T >( signature : T ) : AxSignature < ParseSignature < T > [ "inputs" ] , ParseSignature < T > [ "outputs" ] >; Arguments And Options Name Type Description signatureTThe signature string in the format "inputFields -> outputFields"
Full reference
Advanced / internals / full reference AxContextFieldInputTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxContextFieldInputSource source
Call Shape type AxContextFieldInput =
| string
| {
field : string ;
keepInPromptChars? : number ;
promptMaxChars? : number ;
reverseTruncate? : boolean ;
}; Full reference
AxContextFieldPromptConfigTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxContextFieldPromptConfigSource source
Call Shape type AxContextFieldPromptConfig =
| {
kind : "threshold" ;
promptMaxChars : number ;
}
| {
keepInPromptChars : number ;
kind : "truncate" ;
reverseTruncate : boolean ;
}; Full reference
AxFieldOptionsPer-field companion options for Standard Schema (zod/valibot/arktype) inputs
and outputs. These encode ax-specific hints that schema libraries don’t
represent natively.
Field Value Kind interfaceForm AxFieldOptionsSource source
Full reference
AxFieldProcessorTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxFieldProcessorSource source
Full reference
AxFieldProcessorProcessTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxFieldProcessorProcessReturns unknown \| Promise<unknown>Source source
Call Shape type AxFieldProcessorProcess = ( value : AxFieldValue , context? : Readonly < {
done? : boolean ;
sessionId? : string ;
values? : AxGenOut ;
} > ) => unknown | Promise < unknown >; Arguments And Options Name Type Description valueAxFieldValuecontext?Readonly<{ done?: boolean; sessionId?: string; values?: AxGenOut ; }>
Full reference
AxFieldTemplateFnTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxFieldTemplateFnReturns any[]Source source
Call Shape type AxFieldTemplateFn = ( field : Readonly < AxField >, value : Readonly < AxFieldValue >) => any []; Arguments And Options Full reference
AxFieldValueTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxFieldValueSource source
Call Shape type AxFieldValue =
| string
| string []
| number
| boolean
| object
| null
| undefined
| {
data : string ;
mimeType : string ;
}
| object []
| {
channels? : number ;
data? : string ;
format? : string ;
id? : string ;
mimeType? : string ;
sampleRate? : number ;
transcript? : string ;
}
| object []; Full reference
AxFluentFieldInfoTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxFluentFieldInfoSource source
Full reference
AxFluentFieldTypeTypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.
Field Value Kind classForm AxFluentFieldTypeSource source
Call Shape new AxFluentFieldType < TType , TIsArray , TOptions , TIsOptional , TIsInternal , TFields , TIsCached >( fieldType : object ) : AxFluentFieldType < TType , TIsArray , TOptions , TIsOptional , TIsInternal , TFields , TIsCached >; Full reference
AxFunctionJSONSchemaTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxFunctionJSONSchemaSource source
Call Shape type AxFunctionJSONSchema = object ; Full reference
AxIFieldTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxIFieldSource source
Call Shape type AxIField = Omit < AxField , "title" > & object ; Full reference
AxMCPJSONSchemaTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxMCPJSONSchemaSource source
Call Shape type AxMCPJSONSchema = Record < string , unknown >; Full reference
AxResultPickerFunctionFieldResultsTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxResultPickerFunctionFieldResultsSource source
Call Shape type AxResultPickerFunctionFieldResults < OUT > = object ; Full reference
AxRuntimePrimitiveSignatureTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxRuntimePrimitiveSignatureSource source
Call Shape type AxRuntimePrimitiveSignature = object ; Full reference
AxSignatureBuilderTypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.
Field Value Kind classForm AxSignatureBuilderSource source
Call Shape input < K , T >(
name : K ,
fieldInfo : T ,
prepend? : boolean ) : AxSignatureBuilder < AddFieldToShape < _TInput , K , T , "input" >, _TOutput >; input < K , T >(
name : K ,
schema : T ,
opts? : AxFieldOptions ) : AxSignatureBuilder < _TInput & { [ P in string ]: InferOutput < T > }, _TOutput >; input < T >( schema : T , opts? : object ) : AxSignatureBuilder < AsRecord < InferOutput < T >>, _TOutput >; Full reference
AxStreamingFieldProcessorProcessTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxStreamingFieldProcessorProcessReturns unknown \| Promise<unknown>Source source
Call Shape type AxStreamingFieldProcessorProcess = ( value : string , context? : Readonly < {
done? : boolean ;
sessionId? : string ;
values? : AxGenOut ;
} > ) => unknown | Promise < unknown >; Arguments And Options Name Type Description valuestringcontext?Readonly<{ done?: boolean; sessionId?: string; values?: AxGenOut ; }>
Full reference
Full Reference Open the full TypeScript reference . This page highlights the s symbols most relevant to everyday use.