public static final class LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub extends AbstractFutureStub<LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub>A stub to allow clients to do ListenableFuture-style rpc calls to service LlmUtilityService.
Service for LLM related utility functions.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > LlmUtilityServiceGrpc.LlmUtilityServiceFutureStubMethods
build(Channel channel, CallOptions callOptions)
protected LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub build(Channel channel, CallOptions callOptions)| Parameters | |
|---|---|
| Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
| Returns | |
|---|---|
| Type | Description |
LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub |
|
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
computeTokens(ComputeTokensRequest request)
public ListenableFuture<ComputeTokensResponse> computeTokens(ComputeTokensRequest request)Return a list of tokens based on the input text.
| Parameter | |
|---|---|
| Name | Description |
request |
ComputeTokensRequest |
| Returns | |
|---|---|
| Type | Description |
com.google.common.util.concurrent.ListenableFuture<ComputeTokensResponse> |
|