claudius-chat-widget
    Preparing search index...

    Interface PluginContext

    Read-only context shared by every plugin hook.

    messages is a snapshot of the conversation at the moment the hook runs: in ClaudiusPlugin.onBeforeSend it excludes the in-flight user message; in ClaudiusPlugin.onAfterReceive and ClaudiusPlugin.onError it includes it.

    interface PluginContext {
        apiUrl: string;
        messages: readonly ChatMessage[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    apiUrl: string

    The Worker chat endpoint URL the widget posts to.

    messages: readonly ChatMessage[]

    Conversation snapshot, oldest message first. Treat as immutable.