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

AxLoggerData

TypeScript
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;
  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: AxDebugChatResponseUsage;
}
  | {
  name: "ChatResponseCitations";
  value: AxCitation[];
};

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/types.ts#L624

Docs