Class AbstractChatAgentAbstract

Hierarchy (view full)

Constructors

  • Parameters

    • id: string
    • languageModelRequirements: LanguageModelRequirement[]
    • defaultLanguageModelPurpose: string
    • iconClass: string = 'codicon codicon-copilot'
    • locations: ChatAgentLocation[] = ChatAgentLocation.ALL
    • tags: string[] = ...
    • defaultLogging: boolean = true

    Returns AbstractChatAgent

Properties

contentMatcherProviders: ContributionProvider<ResponseContentMatcherProvider>
contentMatchers: ResponseContentMatcher[] = []
defaultContentFactory: DefaultResponseContentFactory
defaultLanguageModelPurpose: string
defaultLogging: boolean = true
iconClass: string = 'codicon codicon-copilot'
id: string
languageModelRegistry: LanguageModelRegistry
languageModelRequirements: LanguageModelRequirement[]
locations: ChatAgentLocation[] = ChatAgentLocation.ALL
logger: ILogger
promptService: PromptService
recordingService: CommunicationRecordingService
tags: string[] = ...

Methods

  • Parameters

    • languageModel: LanguageModel
    • messages: ChatMessage[]
    • tools: undefined | ToolRequest[]
    • token: CancellationToken

    Returns Promise<LanguageModelResponse>

  • Returns undefined | {
        [key: string]: unknown;
    }

    the settings, such as temperature, to be used in all language model requests. Returns undefined by default.

  • Invoked after the response by the LLM completed successfully.

    The default implementation sets the state of the response to complete. Subclasses may override this method to perform additional actions or keep the response open for processing further requests.

    Parameters

    Returns Promise<void>