Class AbstractStreamParsingChatAgentAbstract

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

Hierarchy (view full)

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[] = ...
toolCallResponseContentFactory: ToolCallChatResponseContentFactory
variables: string[] = []

Methods

  • Creates a ToolCallChatResponseContent instance from the provided tool call data.

    This method is called when parsing stream response tokens that contain tool call data. Subclasses can override this method to customize the creation of tool call response contents.

    Parameters

    • toolCall: ToolCall

      The ToolCall.

    Returns ChatResponseContent

    A ChatResponseContent representing the tool call.