Skip to content

ToolError

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework.Tools

ToolError Class

Opinionated default error shape — sufficient for most tool functions.

public sealed record ToolError : System.IEquatable<NexusLabs.Needlr.AgentFramework.Tools.ToolError>

Inheritance System.Object 🡒 ToolError

Implements System.IEquatable<ToolError>

Constructors

ToolError(string, string) Constructor

Opinionated default error shape — sufficient for most tool functions.

public ToolError(string Message, string? Suggestion=null);

Parameters

Message System.String

Human-readable error description sent to the LLM.

Suggestion System.String

Optional hint for the LLM on how to recover or try differently.

Properties

ToolError.Message Property

Human-readable error description sent to the LLM.

public string Message { get; init; }

Property Value

System.String

ToolError.Suggestion Property

Optional hint for the LLM on how to recover or try differently.

public string? Suggestion { get; init; }

Property Value

System.String