Member Junction
    Preparing search index...

    Interface ConversationRemoteBrowserControllerOptions

    Options for constructing a ConversationRemoteBrowserController.

    interface ConversationRemoteBrowserControllerOptions {
        ExecuteServerAction?: <T>(
            query: string,
            variables: Record<string, JSONValue>,
        ) => Promise<T | null>;
        OnAutoOpenSurface?: () => void;
        OnSessionRefused?: (message: string) => void;
        OnStateChange?: () => void;
    }
    Index

    Properties

    ExecuteServerAction?: <T>(
        query: string,
        variables: Record<string, JSONValue>,
    ) => Promise<T | null>

    Optional custom GraphQL executor (used by unit tests; defaults to the provider's ExecuteGQL).

    OnAutoOpenSurface?: () => void

    Invoked when an agent's browser_* tool runs, so the UI can show the browser drawer.

    OnSessionRefused?: (message: string) => void

    Invoked once when the server refuses this conversation a browser (not enabled, not the caller's, over the cap). The controller has already closed it, which stops the live view's polling.

    OnStateChange?: () => void

    Invoked when the browser opens or closes, or its URL changes.