Skip to content

IToolResult

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework.Tools

IToolResult Interface

Non-generic marker interface for inspecting any ToolResult<TValue,TError> without knowing its type arguments at compile time.

public interface IToolResult

Derived
ToolResult<TValue,TError>

Properties

IToolResult.BoxedError Property

Gets the error value as object — sent to the LLM as { "error": … } on failure. null on success.

object? BoxedError { get; }

Property Value

System.Object

IToolResult.BoxedValue Property

Gets the success value as object — sent to the LLM on success. null on failure.

object? BoxedValue { get; }

Property Value

System.Object

IToolResult.Exception Property

Gets the original unhandled Exception, if any. \<strong>Never sent to the LLM.\</strong> Preserved for diagnostics and resilience decisions.

System.Exception? Exception { get; }

Property Value

System.Exception

IToolResult.IsSuccess Property

Gets a value indicating whether the tool call succeeded.

bool IsSuccess { get; }

Property Value

System.Boolean

IToolResult.IsTransient Property

Indicates whether the failure is transient and suitable for retry. true = retry, false = don't retry, null = let the resilience layer decide via its own heuristics.

System.Nullable<bool> IsTransient { get; }

Property Value

System.Nullable<System.Boolean>