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

AxChatSessionEvent

TypeScript
type AxChatSessionEvent = 
  | {
  response: AxChatResponse;
  responseId: string;
  type: "response";
}
  | {
  response: AxChatResponse;
  responseId: string;
  type: "response.completed";
}
  | {
  call: NonNullable<AxChatResponse["results"][number]["functionCalls"]>[number];
  responseId: string;
  type: "tool.call";
}
  | {
  error?: string;
  requiredCallIds?: readonly string[];
  responseId?: string;
  status: "accepted" | "pending" | "failed";
  steerId?: string;
  type: "steering";
};

Defined in: https://github.com/ax-llm/ax/blob/e690b4823b8309e258594064abe941d4cff6ef89/src/ax/ai/session.ts#L8

Normalized events for a single provider-pinned conversation.

Docs