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[];
};
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/ai/types.ts#L326