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

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

    Implements

    Index

    Constructors

    Properties

    agentSpecificVariables: never[] = []

    The list of local variable identifiers that can be made available to this agent during execution, these variables are context specific and do not exist for other agents.

    This array is primarily used for documentation purposes in the AI Configuration View to show which variables can be made available to the agent. Referenced variables are NOT automatically handed over by the framework, this must be explicitly done in the agent implementation or in prompts.

    backupService: FileEditBackupService
    commandService: CommandService
    description: string = 'Anthropic\'s coding agent'

    A markdown description of its functionality and its privacy-relevant requirements, including function call handlers that access some data autonomously.

    editorManager: EditorManager
    editToolService: ClaudeCodeEditToolService
    fileChangeFactory: ChangeSetFileElementFactory
    fileService: FileService
    functions: never[] = []

    The list of global function identifiers that are always available to this agent during execution, regardless of whether they are referenced in prompts.

    This array is primarily used for documentation purposes in the AI Configuration View to show which functions are guaranteed to be available to the agent. Referenced functions are NOT automatically handed over by the framework, this must be explicitly done in the agent implementation.

    iconClass: string = 'codicon codicon-copilot'
    id: string = CLAUDE_CHAT_AGENT_ID

    Used to identify an agent, e.g. when it is requesting language models, etc.

    This parameter might be removed in favor of name. Therefore, it is recommended to set id to the same value as name for now.

    languageModelRequirements: never[] = []

    Required language models. This includes the purpose and optional language model selector arguments. See #47.

    locations: ChatAgentLocation[] = ChatAgentLocation.ALL
    name: string = CLAUDE_CHAT_AGENT_ID

    Human-readable name shown to users to identify the agent. Must be unique. Use short names without "Agent" or "Chat" (see tags for adding further properties).

    prompts: { defaultVariant: BasePromptFragment; id: string }[] = ...

    The prompts introduced and used by this agent.

    promptService: PromptService
    selectionService: SelectionService
    tags: string[] = ...

    A list of tags to filter agents and to display capabilities in the UI

    tokenUsageService: TokenUsageService
    variables: never[] = []

    The list of global variable identifiers that are always available to this agent during execution, regardless of whether they are referenced in prompts.

    This array is primarily used for documentation purposes in the AI Configuration View to show which variables are guaranteed to be available to the agent. Referenced variables are NOT automatically handed over by the framework, this must be explicitly done in the agent implementation.

    workspaceService: WorkspaceService

    Methods