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.
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.
Property Value¶
IToolResult.BoxedValue Property¶
Gets the success value as object — sent to the LLM on success. null on failure.
Property Value¶
IToolResult.Exception Property¶
Gets the original unhandled Exception, if any. \<strong>Never sent to the LLM.\</strong> Preserved for diagnostics and resilience decisions.
Property Value¶
IToolResult.IsSuccess Property¶
Gets a value indicating whether the tool call succeeded.
Property Value¶
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.