AnthropicResponseContent

Represents the content of a response from Anthropic's API. This is a sealed class that encapsulates different possible response types.

Note: This API is marked as internal and should not be used directly. It may change or be removed without notice.

Inheritors

Types

Link copied to clipboard
@SerialName(value = "text")
data class Text(val text: String) : AnthropicResponseContent

Represents the textual content in a response from the Anthropic language model.

Link copied to clipboard
@SerialName(value = "tool_use")
data class ToolUse(val id: String, val name: String, val input: JsonObject) : AnthropicResponseContent

Represents the usage of a tool in a response from an Anthropic system.