Table of Contents

Class ToolResultBlock

Namespace
Emissary
Assembly
Emissary.dll

The result of a tool invocation, sent back to the model.

public sealed record ToolResultBlock : ContentBlock, IEquatable<ContentBlock>, IEquatable<ToolResultBlock>
Inheritance
ToolResultBlock
Implements
Inherited Members

Constructors

ToolResultBlock(string, string, bool)

The result of a tool invocation, sent back to the model.

public ToolResultBlock(string ToolUseId, string Content, bool IsError)

Parameters

ToolUseId string

The id of the tool use this result answers.

Content string

The result content.

IsError bool

Whether the tool failed; the model can self-correct.

Properties

Content

The result content.

public string Content { get; init; }

Property Value

string

IsError

Whether the tool failed; the model can self-correct.

public bool IsError { get; init; }

Property Value

bool

ToolUseId

The id of the tool use this result answers.

public string ToolUseId { get; init; }

Property Value

string