AxLoggerData
type AxLoggerData =
| {
name: "ChatRequestChatPrompt";
step: number;
value: AxChatRequest["chatPrompt"];
}
| {
name: "FunctionResults";
value: AxFunctionResult[];
}
| {
name: "ChatResponseResults";
value: AxChatResponseResult[];
}
| {
index: number;
name: "ChatResponseStreamingResult";
value: AxChatResponseResult & object;
}
| {
index: number;
name: "ChatResponseStreamingDoneResult";
value: AxChatResponseResult;
}
| {
error: unknown;
fixingInstructions: string;
index: number;
name: "FunctionError";
}
| {
error: unknown;
fixingInstructions: string;
index: number;
name: "ValidationError";
}
| {
error: unknown;
fixingInstructions: string;
index: number;
name: "AssertionError";
}
| {
error: unknown;
index: number;
name: "RefusalError";
}
| {
latency: number;
name: "ResultPickerUsed";
sampleCount: number;
selectedIndex: number;
}
| {
id: string;
name: "Notification";
value: string;
}
| {
embedModel: string;
name: "EmbedRequest";
value: readonly string[];
}
| {
name: "EmbedResponse";
totalEmbeddings: number;
value: object[];
}
| {
name: "ChatResponseUsage";
value: AxModelUsage;
}
| {
name: "ChatResponseCitations";
value: AxCitation[];
};
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/types.ts#L353