Interface MessageServiceAsync.WithRawResponse
-
- All Implemented Interfaces:
public interface MessageServiceAsync.WithRawResponseA view of MessageServiceAsync that provides access to raw HTTP responses for each method.
-
-
Method Summary
-
-
Method Detail
-
batches
abstract BatchServiceAsync.WithRawResponse batches()
-
create
@MustBeClosed() CompletableFuture<HttpResponseFor<BetaMessage>> create(MessageCreateParams params)
Returns a raw HTTP response for
post /v1/messages?beta=true, but is otherwise the same as MessageServiceAsync.create.
-
create
@MustBeClosed() abstract CompletableFuture<HttpResponseFor<BetaMessage>> create(MessageCreateParams params, RequestOptions requestOptions)
-
createStreaming
@MustBeClosed() CompletableFuture<HttpResponseFor<StreamResponse<BetaRawMessageStreamEvent>>> createStreaming(MessageCreateParams params)
Returns a raw HTTP response for
post /v1/messages?beta=true, but is otherwise the same as MessageServiceAsync.createStreaming.
-
createStreaming
@MustBeClosed() abstract CompletableFuture<HttpResponseFor<StreamResponse<BetaRawMessageStreamEvent>>> createStreaming(MessageCreateParams params, RequestOptions requestOptions)
-
countTokens
@MustBeClosed() CompletableFuture<HttpResponseFor<BetaMessageTokensCount>> countTokens(MessageCountTokensParams params)
Returns a raw HTTP response for
post /v1/messages/count_tokens?beta=true, but is otherwise the same as MessageServiceAsync.countTokens.
-
countTokens
@MustBeClosed() abstract CompletableFuture<HttpResponseFor<BetaMessageTokensCount>> countTokens(MessageCountTokensParams params, RequestOptions requestOptions)
-
-
-
-