Table of Contents

Class DelegationResult

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

Represents the result of a delegated task execution.

Returned by a delegate agent after processing a DelegationRequest.

public sealed class DelegationResult
Inheritance
DelegationResult
Inherited Members

Properties

AgentName

Gets the name of the agent that executed the task.

Duration

Gets the duration of the delegated execution.

Error

Gets the error message if the delegation failed.

ExecutionResult

Gets the execution result from the delegate agent, if available.

Request

Gets the original request that was delegated.

Response

Gets the response content from the delegate agent.

Success

Gets a value indicating whether the delegation was successful.

Timestamp

Gets the timestamp when this result was created.

Methods

AgentNotFound(string, DelegationRequest)

Creates a result for when the target agent was not found.

Failed(string, string, DelegationRequest, TimeSpan)

Creates a failed delegation result.

Succeeded(string, string, DelegationRequest, AgentExecutionResult, TimeSpan)

Creates a successful delegation result.