Firebase. AI. ModelContent. FunctionResponsePart
Result output from a function call.
Summary
Contains a string representing the FunctionDeclaration.name
and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a FunctionCallPart
made based on model prediction.
Inheritance
Inherits from: Firebase.AI.ModelContent.Part Constructors and Destructors | |
---|---|
FunctionResponsePart(string name, IDictionary< string, object > response) Constructs a new FunctionResponsePart . |
Properties | |
---|---|
Name | string The name of the function that was called. |
Response | IReadOnlyDictionary< string, object > The function's response or return value. |
Public functions | |
---|---|
ToJson() | Dictionary< string, object > Part. |
Properties
Name
string Firebase::AI::ModelContent::FunctionResponsePart::Name
The name of the function that was called.
Response
IReadOnlyDictionary< string, object > Firebase::AI::ModelContent::FunctionResponsePart::Response
The function's response or return value.
Public functions
FunctionResponsePart
Firebase::AI::ModelContent::FunctionResponsePart::FunctionResponsePart( string name, IDictionary< string, object > response )
Constructs a new FunctionResponsePart
.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
ToJson
Dictionary< string, object > Part. Firebase::AI::ModelContent::FunctionResponsePart::ToJson()