Interface InputTokenServiceAsync
-
- All Implemented Interfaces:
public interface InputTokenServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceInputTokenServiceAsync.WithRawResponseA view of InputTokenServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract InputTokenServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract InputTokenServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<InputTokenCountResponse>count()Get input token counts abstract CompletableFuture<InputTokenCountResponse>count(InputTokenCountParams params, RequestOptions requestOptions)CompletableFuture<InputTokenCountResponse>count(InputTokenCountParams params)CompletableFuture<InputTokenCountResponse>count(RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract InputTokenServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract InputTokenServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
count
CompletableFuture<InputTokenCountResponse> count()
Get input token counts
-
count
abstract CompletableFuture<InputTokenCountResponse> count(InputTokenCountParams params, RequestOptions requestOptions)
-
count
CompletableFuture<InputTokenCountResponse> count(InputTokenCountParams params)
-
count
CompletableFuture<InputTokenCountResponse> count(RequestOptions requestOptions)
-
-
-
-