MentorAgent Docs
Menu

Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.

ReferencePackage: Novior.MentorAgent

MentorRemoteAgent class

The MentorRemoteAgent class of Novior.MentorAgent.Models: Configuration for a remote A2A (Agent-to-Agent) agent that MentorAgent will connect to as a…

On this page

Configuration for a remote A2A (Agent-to-Agent) agent that MentorAgent will connect to as a consumer. Remote agents appear in the Handoff workflow just like local [MentorAgent] classes. Usage:

Example
options.RemoteAgents = [
    new MentorRemoteAgent {
        Name = "InventoryAgent",
        Description = "Manages warehouse and inventory operations",
        AgentCardUrl = "https://inventory.example.com"
    }
];

Namespace: Novior.MentorAgent.Models. Package: Novior.MentorAgent.

public sealed class MentorRemoteAgent

Terminal
dotnet add package Novior.MentorAgent

public MentorRemoteAgent()

public required string AgentCardUrl { get; set; }

Base URL of the remote A2A agent (e.g. https://inventory.example.com). The SDK automatically appends /.well-known/agent-card.json to discover the agent's capabilities and communication endpoints. Do NOT include the /.well-known/agent-card.json path — pass only the base URL.

public required string Description { get; set; }

Human-readable description of what this agent does. Injected into the coordinator's system prompt so the AI knows when to route to it.

public Dictionary<string, string>? Headers { get; set; }

Optional authorization headers to include in A2A requests (e.g. Bearer tokens, API keys).

Example
Headers = new Dictionary<string, string> {
    ["Authorization"] = $"Bearer {apiKey}"
}

public required string Name { get; set; }

Name of the remote agent — used as the Handoff target name. Must be unique within the agent configuration.