public static interface Api.MessageOrBuilder
extends com.google.protobuf.MessageOrBuilder
限定符和类型 | 方法和说明 |
---|---|
String |
getContent()
The real content of the message, may be empty for assistant message with
function call.
|
com.google.protobuf.ByteString |
getContentBytes()
The real content of the message, may be empty for assistant message with
function call.
|
Api.FunctionCall |
getFunctionCall()
The name and arguments of a function call generated by model.
|
Api.FunctionCallOrBuilder |
getFunctionCallOrBuilder()
The name and arguments of a function call generated by model.
|
String |
getName()
If the role is `function`, is the name of the function which generate the
content.
|
com.google.protobuf.ByteString |
getNameBytes()
If the role is `function`, is the name of the function which generate the
content.
|
Api.Reference |
getReferences(int index)
url reference for searching, optional
repeated .api.Reference references = 3; |
int |
getReferencesCount()
url reference for searching, optional
repeated .api.Reference references = 3; |
List<Api.Reference> |
getReferencesList()
url reference for searching, optional
repeated .api.Reference references = 3; |
Api.ReferenceOrBuilder |
getReferencesOrBuilder(int index)
url reference for searching, optional
repeated .api.Reference references = 3; |
List<? extends Api.ReferenceOrBuilder> |
getReferencesOrBuilderList()
url reference for searching, optional
repeated .api.Reference references = 3; |
String |
getRole()
The role of the author of this message.
|
com.google.protobuf.ByteString |
getRoleBytes()
The role of the author of this message.
|
boolean |
hasFunctionCall()
The name and arguments of a function call generated by model.
|
String getRole()
The role of the author of this message. One of system, user, assistant or function.
string role = 1;
com.google.protobuf.ByteString getRoleBytes()
The role of the author of this message. One of system, user, assistant or function.
string role = 1;
String getContent()
The real content of the message, may be empty for assistant message with function call.
string content = 2;
com.google.protobuf.ByteString getContentBytes()
The real content of the message, may be empty for assistant message with function call.
string content = 2;
String getName()
If the role is `function`, is the name of the function which generate the content.
string name = 4;
com.google.protobuf.ByteString getNameBytes()
If the role is `function`, is the name of the function which generate the content.
string name = 4;
boolean hasFunctionCall()
The name and arguments of a function call generated by model.
.api.FunctionCall function_call = 5;
Api.FunctionCall getFunctionCall()
The name and arguments of a function call generated by model.
.api.FunctionCall function_call = 5;
Api.FunctionCallOrBuilder getFunctionCallOrBuilder()
The name and arguments of a function call generated by model.
.api.FunctionCall function_call = 5;
List<Api.Reference> getReferencesList()
url reference for searching, optional
repeated .api.Reference references = 3;
Api.Reference getReferences(int index)
url reference for searching, optional
repeated .api.Reference references = 3;
int getReferencesCount()
url reference for searching, optional
repeated .api.Reference references = 3;
List<? extends Api.ReferenceOrBuilder> getReferencesOrBuilderList()
url reference for searching, optional
repeated .api.Reference references = 3;
Api.ReferenceOrBuilder getReferencesOrBuilder(int index)
url reference for searching, optional
repeated .api.Reference references = 3;
Copyright © 2024. All rights reserved.