ChatSidenavDevtoolsSource

Unpublished development API. This package is under development and is not available as a published release.

What the Devtools button reads from a session: its status, as AgentSession provides.

import type { ChatSidenavDevtoolsSource } from '@threadplane/react/chat';

Declaration

export interface ChatSidenavDevtoolsSource  {
  getSnapshot(): {
        readonly status: AgentStatus;
    };
  subscribe(notify: () => void): () => void;
}

Members

getSnapshot · overload 1

getSnapshot(): {
        readonly status: AgentStatus;
    };

Returns

{ readonly status: AgentStatus; }

subscribe · overload 1

subscribe(notify: () => void): () => void;

Parameters

notify · required
() => void

Returns

() => void