Class AssistantServiceGrpc.AssistantServiceFutureStub (0.19.0)

public static final class AssistantServiceGrpc.AssistantServiceFutureStub extends AbstractFutureStub<AssistantServiceGrpc.AssistantServiceFutureStub>

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

The service that manages assistant-related resources in Customer Engagement Suite (CES). The assistant, Arc, is a conversational agent embedded in CES applications to help users with building their agents.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > AssistantServiceGrpc.AssistantServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

chatAiAssistant(ChatAiAssistantRequest request)

public ListenableFuture<ChatAiAssistantResponse> chatAiAssistant(ChatAiAssistantRequest request)

Runs Arc, the AI assistant, for the specified assistant session.

Parameter
Name Description
request ChatAiAssistantRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ChatAiAssistantResponse>

createAssistantSession(CreateAssistantSessionRequest request)

public ListenableFuture<AssistantSession> createAssistantSession(CreateAssistantSessionRequest request)

Creates a new assistant session in the given app.

Parameter
Name Description
request CreateAssistantSessionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<AssistantSession>

deleteAssistantSession(DeleteAssistantSessionRequest request)

public ListenableFuture<Empty> deleteAssistantSession(DeleteAssistantSessionRequest request)

Deletes the specified assistant session.

Parameter
Name Description
request DeleteAssistantSessionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

getAssistantSession(GetAssistantSessionRequest request)

public ListenableFuture<AssistantSession> getAssistantSession(GetAssistantSessionRequest request)

Gets details of the specified assistant session.

Parameter
Name Description
request GetAssistantSessionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<AssistantSession>

listAssistantSessions(ListAssistantSessionsRequest request)

public ListenableFuture<ListAssistantSessionsResponse> listAssistantSessions(ListAssistantSessionsRequest request)

Lists all assistant sessions in the given app.

Parameter
Name Description
request ListAssistantSessionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListAssistantSessionsResponse>

runAssistant(RunAssistantRequest request)

public ListenableFuture<RunAssistantResponse> runAssistant(RunAssistantRequest request)

Runs the assistant agent for the specified assistant session.

Parameter
Name Description
request RunAssistantRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<RunAssistantResponse>