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
ToolUseIdstringThe id of the tool use this result answers.
ContentstringThe result content.
IsErrorboolWhether the tool failed; the model can self-correct.
Properties
Content
The result content.
public string Content { get; init; }
Property Value
IsError
Whether the tool failed; the model can self-correct.
public bool IsError { get; init; }
Property Value
ToolUseId
The id of the tool use this result answers.
public string ToolUseId { get; init; }