Class ToolResultContent
- Namespace
- AnthropicClient.Models
- Assembly
- AnthropicClient.dll
Represents tool result content that is part of a message.
public class ToolResultContent : Content
- Inheritance
-
ToolResultContent
- Inherited Members
Constructors
ToolResultContent(string, string)
Initializes a new instance of the ToolResultContent class.
public ToolResultContent(string toolUseId, string content)
Parameters
Exceptions
- ArgumentNullException
Thrown when the tool use ID or content is null.
ToolResultContent(string, string, CacheControl)
Initializes a new instance of the ToolResultContent class.
public ToolResultContent(string toolUseId, string content, CacheControl cacheControl)
Parameters
toolUseId
stringThe tool use ID of the content.
content
stringThe content of the tool result.
cacheControl
CacheControlThe cache control to be used for the content.
Exceptions
- ArgumentNullException
Thrown when the tool use ID or content is null.
Properties
Content
Gets the content of the tool result.
public string Content { get; init; }
Property Value
ToolUseId
Gets the tool use ID of the content.
[JsonPropertyName("tool_use_id")]
public string ToolUseId { get; init; }