Class MessageServiceImpl
-
- All Implemented Interfaces:
-
com.anthropic.services.blocking.beta.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()BetaMessagecreate(MessageCreateParams params, RequestOptions requestOptions)StreamResponse<BetaRawMessageStreamEvent>createStreaming(MessageCreateParams params, RequestOptions requestOptions)BetaMessageTokensCountcountTokens(MessageCountTokensParams params, RequestOptions requestOptions)BetaToolRunnertoolRunner(ToolRunnerCreateParams params, RequestOptions requestOptions)-
Methods inherited from class com.anthropic.services.blocking.beta.MessageService
countTokens, create, create, create, createStreaming, createStreaming, createStreaming, toolRunner, toolRunner, toolRunner -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
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
BetaMessage create(MessageCreateParams params, RequestOptions requestOptions)
-
createStreaming
StreamResponse<BetaRawMessageStreamEvent> createStreaming(MessageCreateParams params, RequestOptions requestOptions)
-
countTokens
BetaMessageTokensCount countTokens(MessageCountTokensParams params, RequestOptions requestOptions)
-
toolRunner
BetaToolRunner toolRunner(ToolRunnerCreateParams params, RequestOptions requestOptions)
-
-
-
-