Files
anthropic-client/src/AnthropicClient/Models/ToolUseContent.cs
T

30 lines
788 B
C#
Raw Normal View History

2024-06-27 23:26:53 -05:00
namespace AnthropicClient.Models;
/// <summary>
/// Represents tool use content that is part of a message.
/// </summary>
public class ToolUseContent : Content
{
/// <summary>
/// Gets the ID of the tool use.
/// </summary>
2024-06-28 10:54:00 -05:00
public string Id { get; init; } = string.Empty;
2024-06-27 23:26:53 -05:00
/// <summary>
/// Gets the name of the tool.
/// </summary>
2024-06-28 10:54:00 -05:00
public string Name { get; init; } = string.Empty;
2024-06-27 23:26:53 -05:00
/// <summary>
/// Gets the input of the tool.
/// </summary>
2024-06-28 10:54:00 -05:00
public Dictionary<string, object?> Input { get; init; } = [];
2024-06-27 23:26:53 -05:00
/// <summary>
/// Initializes a new instance of the <see cref="ToolUseContent"/> class.
/// </summary>
/// <returns>A new instance of the <see cref="ToolUseContent"/> class.</returns>
public ToolUseContent() : base(ContentType.ToolUse)
{
}
}