Interface AgentService

Service to access the list of known Agents.

interface AgentService {
    onDidChangeAgents: Event<void>;
    disableAgent(agentId): void;
    enableAgent(agentId): void;
    getAgents(): Agent[];
    getAllAgents(): Agent[];
    isEnabled(agentId): boolean;
    registerAgent(agent): void;
    unregisterAgent(agentId): void;
}

Implemented by

Properties

onDidChangeAgents: Event<void>

Emitted when the list of agents changes. This can be used to update the UI when agents are added or removed.

Methods

  • query whether this agent is currently enabled or disabled.

    Parameters

    • agentId: string

      the agent id.

    Returns boolean

    true if the agent is enabled, false otherwise.