Class ToolResult
- Namespace
- OllamaSharp.Tools
- Assembly
- OllamaSharp.dll
Represents the result of executing a tool function call.
public record ToolResult : IEquatable<ToolResult>
- Inheritance
-
ToolResult
- Implements
- Inherited Members
Constructors
ToolResult(Tool, ToolCall, object?)
Represents the result of executing a tool function call.
public ToolResult(Tool Tool, Message.ToolCall ToolCall, object? Result)
Parameters
ToolToolThe tool that was executed.
ToolCallMessage.ToolCallThe tool call that triggered the execution, or null if not applicable.
ResultobjectThe result returned by the tool execution, or null if no result was produced.
Properties
Result
The result returned by the tool execution, or null if no result was produced.
public object? Result { get; init; }
Property Value
Tool
The tool that was executed.
public Tool Tool { get; init; }
Property Value
ToolCall
The tool call that triggered the execution, or null if not applicable.
public Message.ToolCall ToolCall { get; init; }