Class SessionServiceGrpc.SessionServiceBlockingStub (0.7.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)

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

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>