Package com.anthropic.services.blocking
Class MessageServiceImpl
-
- All Implemented Interfaces:
-
com.anthropic.services.blocking.MessageService
public final class MessageServiceImpl implements MessageService
-
-
Method Summary
Modifier and Type Method Description BatchServicebatches()Messagecreate(MessageCreateParams params, RequestOptions requestOptions)Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation. StreamResponse<RawMessageStreamEvent>createStreaming(MessageCreateParams params, RequestOptions requestOptions)Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation. MessageTokensCountcountTokens(MessageCountTokensParams params, RequestOptions requestOptions)Count the number of tokens in a Message. -
-
Method Detail
-
batches
BatchService batches()
-
create
Message create(MessageCreateParams params, RequestOptions requestOptions)
Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.
The Messages API can be used for either single queries or stateless multi-turn conversations.
-
createStreaming
StreamResponse<RawMessageStreamEvent> createStreaming(MessageCreateParams params, RequestOptions requestOptions)
Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.
The Messages API can be used for either single queries or stateless multi-turn conversations.
-
countTokens
MessageTokensCount countTokens(MessageCountTokensParams params, RequestOptions requestOptions)
Count the number of tokens in a Message.
The Token Count API can be used to count the number of tokens in a Message, including tools, images, and documents, without creating it.
-
-
-
-