Package-level declarations
Types
Represents the settings for configuring an Anthropic client, including model mapping, base URL, and API version.
Represents content that can be processed or generated by Anthropic systems.
A client implementation for interacting with Anthropic's API in a suspendable and direct manner.
Represents a message within the Anthropic LLM system. This data class encapsulates the role of the message and its associated content.
Represents a request for an Anthropic message-based interaction.
Anthropic models for text generation and embeddings.
Represents the response structure from an Anthropic API call.
Represents the content of a response from Anthropic's API. This is a sealed class that encapsulates different possible response types.
Represents a delta update from the Anthropic stream response.
Represents a response from the Anthropic stream API.
Represents a tool definition for Anthropic integration.
Represents a sealed interface for different tool choices in the Anthropic client API. This API is marked as internal and may change or be removed without notice.
Represents a schema definition for an Anthropic tool utilized in LLM clients. This data class defines the structure expected for tools, including the type of schema, properties, and required fields.
Represents the usage statistics of the Anthropic LLM API.
Represents a sealed interface for different types of document sources. It defines a contract for how documents can be represented or accessed.
Represents a source of an image. This sealed interface has two implementations: one wrapping a URL and another wrapping raw base64-encoded image data.
Represents a system message with designated text and type properties that can be utilized in anthropic system communication.