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/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/session.ts#L8

Normalized events for a single provider-pinned conversation.

Docs