Table of Contents

Class DelegationRequest

Namespace
LMKit.Agents.Delegation
Assembly
LM-Kit.NET.dll

Represents a request to delegate a task to another agent.

Created when an agent decides to hand off a task to a more specialized agent from its delegates registry.

public sealed class DelegationRequest
Inheritance
DelegationRequest
Inherited Members

Constructors

DelegationRequest(string, string, string, string, string)

Initializes a new instance of the DelegationRequest class.

Properties

Context

Gets optional context to pass to the delegate agent.

May include conversation history, relevant facts, or other context that helps the delegate understand the broader situation.

Reason

Gets the reason for delegation, if provided.

SourceAgentName

Gets the name of the agent initiating the delegation.

TargetAgentName

Gets the name of the target agent to delegate to.

Task

Gets the task or query to delegate.

Timestamp

Gets the timestamp when this request was created.

Methods

From(string)

Creates a copy with a source agent name.

To(string, string)

Creates a delegation request with a builder pattern.

WithContext(string)

Creates a copy with additional context.

WithReason(string)

Creates a copy with a reason.