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

AxAITypesafeClient

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/typesafe/client.ts#L38

Native Typesafe API. Questions and application decision policies belong to the caller.

Constructors

Constructor

TypeScript
new AxAITypesafeClient(args: Readonly<AxAITypesafeClientArgs>): AxAITypesafeClient;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/typesafe/client.ts#L41

Parameters

ParameterType
argsReadonly<AxAITypesafeClientArgs>

Returns

AxAITypesafeClient

Methods

listModels()

TypeScript
listModels(options?: Readonly<AxAITypesafeClientOptions>): Promise<readonly AxAITypesafeModelCard[]>;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/typesafe/client.ts#L71

Parameters

ParameterType
options?Readonly<AxAITypesafeClientOptions>

Returns

Promise<readonly AxAITypesafeModelCard[]>


systemOne()

TypeScript
systemOne<Q>(request: AxAITypesafeRequest<Q>, options?: Readonly<AxAITypesafeClientOptions>): Promise<AxAITypesafeResponse<Q>>;

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/typesafe/client.ts#L51

Type Parameters

Type Parameter
Q extends Readonly<Record<string, AxAITypesafeQuestion>>

Parameters

ParameterType
requestAxAITypesafeRequest<Q>
options?Readonly<AxAITypesafeClientOptions>

Returns

Promise<AxAITypesafeResponse<Q>>

Docs