Class SessionServiceGrpc.SessionServiceBlockingStub (0.19.0)

public static final class SessionServiceGrpc.SessionServiceBlockingStub extends AbstractBlockingStub<SessionServiceGrpc.SessionServiceBlockingStub>

A stub to allow clients to do limited synchronous 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.AbstractBlockingStub > SessionServiceGrpc.SessionServiceBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

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

cancelAssistantTurn(CancelAssistantTurnRequest request)

public 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
CancelAssistantTurnResponse

generateOnboardingSuggestions(GenerateOnboardingSuggestionsRequest request)

public 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
GenerateOnboardingSuggestionsResponse

runSession(RunSessionRequest request)

public RunSessionResponse runSession(RunSessionRequest request)

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

Parameter
Name Description
request RunSessionRequest
Returns
Type Description
RunSessionResponse

streamChatAiAssistant(StreamChatAiAssistantRequest request)

public Iterator<StreamChatAiAssistantResponse> streamChatAiAssistant(StreamChatAiAssistantRequest request)

Runs Arc, the AI assistant, for the specified assistant session in a streaming fashion.

Parameter
Name Description
request StreamChatAiAssistantRequest
Returns
Type Description
Iterator<StreamChatAiAssistantResponse>

streamRunSession(RunSessionRequest request)

public Iterator<RunSessionResponse> streamRunSession(RunSessionRequest request)

Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver incremental results and partial responses as they are generated. By default, complete responses (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are available. To enable streaming individual text chunks directly from the model, set enable_text_streaming to true.

Parameter
Name Description
request RunSessionRequest
Returns
Type Description
Iterator<RunSessionResponse>