Package com.anthropic.services.blocking
Class MessageServiceImpl
-
- All Implemented Interfaces:
-
com.anthropic.services.blocking.MessageService
public final class MessageServiceImpl implements MessageService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageServiceImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description MessageService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. MessageServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. BatchServicebatches()Messagecreate(MessageCreateParams params, RequestOptions requestOptions)StreamResponse<RawMessageStreamEvent>createStreaming(MessageCreateParams params, RequestOptions requestOptions)MessageTokensCountcountTokens(MessageCountTokensParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
MessageService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
MessageService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
batches
BatchService batches()
-
create
Message create(MessageCreateParams params, RequestOptions requestOptions)
-
createStreaming
StreamResponse<RawMessageStreamEvent> createStreaming(MessageCreateParams params, RequestOptions requestOptions)
-
countTokens
MessageTokensCount countTokens(MessageCountTokensParams params, RequestOptions requestOptions)
-
-
-
-