@accordkit/tracer - v0.2.1
    Preparing search index...

    Interface MessageEvent

    Chat/content message event emitted by adapters or apps.

    interface MessageEvent {
        ts: string;
        sessionId: string;
        level: TraceLevel;
        ctx: TraceContext;
        provider?: Provider;
        model?: string;
        requestId?: string;
        service?: string;
        env?: string;
        region?: string;
        $ext?: Record<string, unknown>;
        type: "message";
        role: "system" | "user" | "assistant" | "tool";
        content: string;
        format?: "text" | "json" | "tool_result";
    }

    Hierarchy (View Summary)

    Index

    Properties

    ts: string

    ISO8601 timestamp of when the event occurred.

    sessionId: string

    Logical identifier for a user session or conversation.

    level: TraceLevel

    Severity level of the event.

    Trace context for correlating events.

    provider?: Provider

    The AI provider SDK that emitted the event.

    model?: string

    The specific model ID used, if known (e.g., 'gpt-4-turbo').

    requestId?: string

    The unique request ID returned by the provider's API.

    service?: string

    The name of the service emitting the event.

    env?: string

    The deployment environment (e.g., 'production', 'staging').

    region?: string

    The cloud or geographical region.

    $ext?: Record<string, unknown>

    A bucket for vendor-specific or non-standard extensions.

    type: "message"

    The discriminated union type name for the event.

    role: "system" | "user" | "assistant" | "tool"

    The role of the message author.

    content: string

    The message content. Adapters may stringify structured content.

    format?: "text" | "json" | "tool_result"

    The format of the content, if not plain text.