AxMockAIServiceConfig Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxMockAIServiceConfig.md type AxMockAIServiceConfig

AxMockAIServiceConfig

TypeScript
type AxMockAIServiceConfig<TModelKey> = object;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L23

Type Parameters

Type Parameter
TModelKey

Properties

chatResponse?

TypeScript
optional chatResponse: 
  | AxChatResponse
  | ReadableStream<AxChatResponse>
  | () => Promise<
  | AxChatResponse
  | ReadableStream<AxChatResponse>>
  | (req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIServiceOptions>) => Promise<
  | AxChatResponse
| ReadableStream<AxChatResponse>>;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L38


embedModelInfo?

TypeScript
optional embedModelInfo: AxModelInfoWithProvider;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L27


embedResponse?

TypeScript
optional embedResponse: 
  | AxEmbedResponse
  | (req: Readonly<AxEmbedRequest>) => 
  | AxEmbedResponse
| Promise<AxEmbedResponse>;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L47


errorMessage?

TypeScript
optional errorMessage: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L63


features?

TypeScript
optional features: object;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L28

functions?

TypeScript
optional functions: boolean;

media?

TypeScript
optional media: Partial<AxAIFeatures["media"]>;

serviceTiers?

TypeScript
optional serviceTiers: AxAIFeatures["serviceTiers"];

streaming?

TypeScript
optional streaming: boolean;

structuredOutputModes?

TypeScript
optional structuredOutputModes: AxAIFeatures["structuredOutputModes"];

structuredOutputs?

TypeScript
optional structuredOutputs: boolean;

id?

TypeScript
optional id: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L25


latencyMs?

TypeScript
optional latencyMs: number;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L64


modelInfo?

TypeScript
optional modelInfo: Partial<AxModelInfoWithProvider>;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L26


models?

TypeScript
optional models: AxAIModelList<TModelKey>;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L36


name?

TypeScript
optional name: string;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L24


options?

TypeScript
optional options: AxAIServiceOptions;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L37


shouldError?

TypeScript
optional shouldError: boolean;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L62


speechResponse?

TypeScript
optional speechResponse: 
  | AxSpeechResponse
  | (req: Readonly<AxSpeechRequest<unknown>>) => 
  | AxSpeechResponse
| Promise<AxSpeechResponse>;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L57


transcribeResponse?

TypeScript
optional transcribeResponse: 
  | AxTranscriptionResponse
  | (req: Readonly<AxTranscriptionRequest<unknown>>) => 
  | AxTranscriptionResponse
| Promise<AxTranscriptionResponse>;

Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/mock/api.ts#L52

Docs