Type alias ChatMessage

ChatMessage: {
    role: "user" | "system" | "assistant";
} & ({
    content: MessageWrapper;
    role: "user" | "assistant" | "system";
    type: "message";
} | {
    content: MethodRequestWrapper;
    role: "assistant";
    type: "request";
} | {
    content: MethodResponseWrapper;
    role: "system";
    type: "response";
} | {
    content: string;
    role: "system";
    type: "prompt";
})

Type declaration

  • role: "user" | "system" | "assistant"

Generated using TypeDoc