Class SessionServiceGrpc.SessionServiceFutureStub (0.19.0)

public static final class SessionServiceGrpc.SessionServiceFutureStub extends AbstractFutureStub<SessionServiceGrpc.SessionServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service SessionService.

Session service provides APIs for interacting with CES agents.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > SessionServiceGrpc.SessionServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected SessionServiceGrpc.SessionServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
SessionServiceGrpc.SessionServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

cancelAssistantTurn(CancelAssistantTurnRequest request)

public ListenableFuture<CancelAssistantTurnResponse> cancelAssistantTurn(CancelAssistantTurnRequest request)

Cancels the assistant session's in-flight turn, if any: the explicit user stop for a turn running detached from any stream. A cancel landing on a task that does not host the turn preempts it through the session turn epoch instead, ending it within one lease renewal.

Parameter
Name Description
request CancelAssistantTurnRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<CancelAssistantTurnResponse>

generateOnboardingSuggestions(GenerateOnboardingSuggestionsRequest request)

public ListenableFuture<GenerateOnboardingSuggestionsResponse> generateOnboardingSuggestions(GenerateOnboardingSuggestionsRequest request)

Generates personalized onboarding suggestions for the Arc zero state: classifies the requesting user (new / exploring / returning) from their assistant-session history in the app and returns suggestion chips (resume a session, continue work, or start something new) to render before any message is sent.

Parameter
Name Description
request GenerateOnboardingSuggestionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<GenerateOnboardingSuggestionsResponse>

runSession(RunSessionRequest request)

public ListenableFuture<RunSessionResponse> runSession(RunSessionRequest request)

Initiates a single-turn interaction with the CES agent within a session.

Parameter
Name Description
request RunSessionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<RunSessionResponse>