Class AbstractChatAgentAbstract

A chat agent is a specialized agent with a common interface for its invocation.

Hierarchy (view full)

Implements

Constructors

Properties

additionalToolRequests: ToolRequest[] = []
agentSpecificVariables: AgentSpecificVariables[] = []
chatToolRequestService: ChatToolRequestService
contentMatcherProviders: ContributionProvider<ResponseContentMatcherProvider>
contentMatchers: ResponseContentMatcher[] = []
defaultContentFactory: DefaultResponseContentFactory
defaultLanguageModelPurpose: string
description: string = ''
functions: string[] = []
iconClass: string = 'codicon codicon-copilot'
id: string
languageModelRegistry: LanguageModelRegistry
languageModelRequirements: LanguageModelRequirement[]
languageModelService: LanguageModelService
locations: ChatAgentLocation[] = ChatAgentLocation.ALL
logger: ILogger
name: string
promptService: PromptService
prompts: PromptVariantSet[] = []
systemPromptId: undefined | string = undefined
tags: string[] = ...
variables: string[] = []

Methods

  • 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>