Theia API Documentation v1.76.0
    Preparing search index...

    Answers the backend's external session queries from this frontend's ChatService.

    Reports sessions that are restored (live) in this frontend with their full state, and persisted sessions that have not been restored with their persisted metadata. Live sessions are attributed to the workspace this frontend has opened; persisted sessions only when sessions are persisted per workspace, as the global session store holds sessions saved from any workspace.

    Implements

    Index

    Constructors

    Properties

    agentService: ChatAgentService
    chatService: ChatService
    logger: ILogger
    preferenceService: PreferenceService
    previewLineCount: 5

    Number of trailing conversation lines included in a summary's preview.

    previewLineLength: 200

    Maximum length of a single preview line; longer lines are truncated.

    workspaceService: WorkspaceService

    Methods

    • Returns the workspace to attribute persisted sessions to: this frontend's workspace when sessions are persisted per workspace, and undefined when they are persisted globally, as the global session store holds sessions saved from any workspace.

      Parameters

      • workspace: undefined | string

      Returns Promise<undefined | string>

    • Returns the last few non-empty lines of the conversation, or undefined for an empty conversation. Walks the conversation from the end so that only as many entries as the preview needs are rendered, however long the conversation is.

      Parameters

      Returns undefined | string