agent-web-tools - v0.3.0
    Preparing search index...

    Interface OcularInitPayload

    Payload the widget sends to its agent backend on every chat request when using direct mode. The backend can register domTools as first-class tools and inject pageContext into its system prompt.

    interface OcularInitPayload {
        pageContext: PageContext;
        domTools: ChatCompletionToolDef[];
        routes: string[];
        currentUrl: string;
        framework?: string;
        sdkVersion: string;
    }
    Index

    Properties

    pageContext: PageContext
    routes: string[]
    currentUrl: string
    framework?: string
    sdkVersion: string