Table of Contents

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

Tool Tool

The tool that was executed.

ToolCall Message.ToolCall

The tool call that triggered the execution, or null if not applicable.

Result object

The 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

object

Tool

The tool that was executed.

public Tool Tool { get; init; }

Property Value

Tool

ToolCall

The tool call that triggered the execution, or null if not applicable.

public Message.ToolCall ToolCall { get; init; }

Property Value

Message.ToolCall