public interface StreamAssistResponseOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAnswer()
public abstract AssistAnswer getAnswer()Assist answer resource object containing parts of the assistant's final answer for the user's query.
Not present if the current response doesn't add anything to previously sent AssistAnswer.replies.
Observe
AssistAnswer.state
to see if more parts are to be expected. While the state is IN_PROGRESS,
the
AssistAnswer.replies
field in each response will contain replies (reply fragments) to be
appended to the ones received in previous responses.
AssistAnswer.name
won't be filled.
If the state is SUCCEEDED, FAILED or SKIPPED, the response
is the last response and
AssistAnswer.name
will have a value.
.google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1;
| Returns | |
|---|---|
| Type | Description |
AssistAnswer |
The answer. |
getAnswerOrBuilder()
public abstract AssistAnswerOrBuilder getAnswerOrBuilder()Assist answer resource object containing parts of the assistant's final answer for the user's query.
Not present if the current response doesn't add anything to previously sent AssistAnswer.replies.
Observe
AssistAnswer.state
to see if more parts are to be expected. While the state is IN_PROGRESS,
the
AssistAnswer.replies
field in each response will contain replies (reply fragments) to be
appended to the ones received in previous responses.
AssistAnswer.name
won't be filled.
If the state is SUCCEEDED, FAILED or SKIPPED, the response
is the last response and
AssistAnswer.name
will have a value.
.google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1;
| Returns | |
|---|---|
| Type | Description |
AssistAnswerOrBuilder |
|
getAssistToken()
public abstract String getAssistToken()A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
string assist_token = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The assistToken. |
getAssistTokenBytes()
public abstract ByteString getAssistTokenBytes()A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
string assist_token = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for assistToken. |
getInvocationTools(int index)
public abstract String getInvocationTools(int index)The tool names of the tools that were invoked.
repeated string invocation_tools = 8;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The invocationTools at the given index. |
getInvocationToolsBytes(int index)
public abstract ByteString getInvocationToolsBytes(int index)The tool names of the tools that were invoked.
repeated string invocation_tools = 8;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the invocationTools at the given index. |
getInvocationToolsCount()
public abstract int getInvocationToolsCount()The tool names of the tools that were invoked.
repeated string invocation_tools = 8;
| Returns | |
|---|---|
| Type | Description |
int |
The count of invocationTools. |
getInvocationToolsList()
public abstract List<String> getInvocationToolsList()The tool names of the tools that were invoked.
repeated string invocation_tools = 8;
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the invocationTools. |
getInvokedSkills(int index)
public abstract StreamAssistResponse.InvokedSkill getInvokedSkills(int index)The skills executed during the turn.
repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StreamAssistResponse.InvokedSkill |
|
getInvokedSkillsCount()
public abstract int getInvokedSkillsCount()The skills executed during the turn.
repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10;
| Returns | |
|---|---|
| Type | Description |
int |
|
getInvokedSkillsList()
public abstract List<StreamAssistResponse.InvokedSkill> getInvokedSkillsList()The skills executed during the turn.
repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10;
| Returns | |
|---|---|
| Type | Description |
List<InvokedSkill> |
|
getInvokedSkillsOrBuilder(int index)
public abstract StreamAssistResponse.InvokedSkillOrBuilder getInvokedSkillsOrBuilder(int index)The skills executed during the turn.
repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StreamAssistResponse.InvokedSkillOrBuilder |
|
getInvokedSkillsOrBuilderList()
public abstract List<? extends StreamAssistResponse.InvokedSkillOrBuilder> getInvokedSkillsOrBuilderList()The skills executed during the turn.
repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder> |
|
getSessionInfo()
public abstract StreamAssistResponse.SessionInfo getSessionInfo()Session information. Only included in the final StreamAssistResponse of the response stream.
.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2;
| Returns | |
|---|---|
| Type | Description |
StreamAssistResponse.SessionInfo |
The sessionInfo. |
getSessionInfoOrBuilder()
public abstract StreamAssistResponse.SessionInfoOrBuilder getSessionInfoOrBuilder()Session information. Only included in the final StreamAssistResponse of the response stream.
.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2;
| Returns | |
|---|---|
| Type | Description |
StreamAssistResponse.SessionInfoOrBuilder |
|
hasAnswer()
public abstract boolean hasAnswer()Assist answer resource object containing parts of the assistant's final answer for the user's query.
Not present if the current response doesn't add anything to previously sent AssistAnswer.replies.
Observe
AssistAnswer.state
to see if more parts are to be expected. While the state is IN_PROGRESS,
the
AssistAnswer.replies
field in each response will contain replies (reply fragments) to be
appended to the ones received in previous responses.
AssistAnswer.name
won't be filled.
If the state is SUCCEEDED, FAILED or SKIPPED, the response
is the last response and
AssistAnswer.name
will have a value.
.google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the answer field is set. |
hasSessionInfo()
public abstract boolean hasSessionInfo()Session information. Only included in the final StreamAssistResponse of the response stream.
.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sessionInfo field is set. |