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/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/types.ts#L385

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