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

AxChatLogMessage

TypeScript
type AxChatLogMessage = 
  | {
  content: string;
  role: "system";
}
  | {
  content: string;
  role: "user";
}
  | {
  content: string;
  role: "assistant";
}
  | {
  content: string;
  name: string;
  role: "tool";
};

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/dsp/types.ts#L409

A normalized chat message with standard roles: system, user, assistant, tool. Assistant content uses inline XML: <think> for reasoning, <tool_call> for tool invocations.

Docs