Package com.anthropic.services.async
Class MessageServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.anthropic.services.async.MessageServiceAsync
public final class MessageServiceAsyncImpl implements MessageServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageServiceAsyncImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description MessageServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. BatchServiceAsyncbatches()CompletableFuture<Message>create(MessageCreateParams params, RequestOptions requestOptions)AsyncStreamResponse<RawMessageStreamEvent>createStreaming(MessageCreateParams params, RequestOptions requestOptions)CompletableFuture<MessageTokensCount>countTokens(MessageCountTokensParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
MessageServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
batches
BatchServiceAsync batches()
-
create
CompletableFuture<Message> create(MessageCreateParams params, RequestOptions requestOptions)
-
createStreaming
AsyncStreamResponse<RawMessageStreamEvent> createStreaming(MessageCreateParams params, RequestOptions requestOptions)
-
countTokens
CompletableFuture<MessageTokensCount> countTokens(MessageCountTokensParams params, RequestOptions requestOptions)
-
-
-
-