Classe LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub (1.2.0)

public static final class LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub extends AbstractFutureStub<LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub>

Uno stub per consentire ai client di effettuare chiamate rpc in stile AscoltaableFuture per il servizio LlmUtilityService.

Servizio per le funzioni di utilità correlate agli LLM.

Ereditarietà

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub

Metodi

build(Canale canale, CallOptions callOptions)

protected LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub build(Channel channel, CallOptions callOptions)
Parametri
Nome Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Restituisce
Tipo Description
LlmUtilityServiceGrpc.LlmUtilityServiceFutureStub
Sostituzioni
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

computeTokens(ComputeTokensRequest request)

public ListenableFuture<ComputeTokensResponse> computeTokens(ComputeTokensRequest request)

Restituisce un elenco di token in base al testo di input.

Parametro
Nome Description
request ComputeTokensRequest
Restituisce
Tipo Description
com.google.common.util.concurrent.ListenableFuture<ComputeTokensResponse>

countTokens(CountTokensRequest request)

public ListenableFuture<CountTokensResponse> countTokens(CountTokensRequest request)

Esegui un conteggio di token.

Parametro
Nome Description
request CountTokensRequest
Restituisce
Tipo Description
com.google.common.util.concurrent.ListenableFuture<CountTokensResponse>