Hierarchy

  • AbstractTextToModelParsingChatAgent<ParsedCommand>
    • CommandChatAgent

Constructors

Properties

agentSpecificVariables: {
    description: string;
    name: string;
    usedInPrompt: boolean;
}[] = ...

Type declaration

  • description: string
  • name: string
  • usedInPrompt: boolean
commandRegistry: CommandRegistry
defaultLanguageModelPurpose: string = 'command'
description: string = 'This agent is aware of all commands that the user can execute within the Theia IDE, the tool that the user is currently working with. \ Based on the user request, it can find the right command and then let the user execute it.'
id: string = 'Command'
languageModelRequirements: LanguageModelRequirement[] = ...
messageService: MessageService
name: string = 'Command'
prompts: PromptVariantSet[] = ...

Methods

  • Parameters

    • parsedCommand: ParsedCommand
    • request: MutableChatRequestModel

    Returns ChatResponseContent

  • Parameters

    • context: AIVariableContext

    Returns Promise<undefined | SystemMessageDescription>

  • Parameters

    • text: string

      the text received from the language model

    Returns Promise<ParsedCommand>

    the parsed command if the text contained a valid command. If there was no json in the text, return a no-command response.