Class HandoffTarget
- Namespace
- Emissary
- Assembly
- Emissary.dll
Another agent this agent may transfer a conversation to. Unlike AsTool(string, string) — where a sub-agent answers a question and control returns — a handoff passes the whole conversation on: the target continues it with its own system prompt, tools, and contracts, and produces the final answer.
public sealed record HandoffTarget : IEquatable<HandoffTarget>
- Inheritance
-
HandoffTarget
- Implements
- Inherited Members
Constructors
HandoffTarget(string, ClaudeAgent, string)
Another agent this agent may transfer a conversation to. Unlike AsTool(string, string) — where a sub-agent answers a question and control returns — a handoff passes the whole conversation on: the target continues it with its own system prompt, tools, and contracts, and produces the final answer.
public HandoffTarget(string Name, ClaudeAgent Agent, string Description)
Parameters
NamestringA short identifier, e.g. "billing"; becomes the tool
handoff_to_billing.AgentClaudeAgentThe agent that takes over.
DescriptionstringWhen to transfer, shown to the model choosing the target.
Properties
Agent
The agent that takes over.
public ClaudeAgent Agent { get; init; }
Property Value
Description
When to transfer, shown to the model choosing the target.
public string Description { get; init; }
Property Value
Name
A short identifier, e.g. "billing"; becomes the tool handoff_to_billing.
public string Name { get; init; }