Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[],[],null,["# Firebase.AI.ModelContent.FunctionResponsePart Struct Reference\n\nFirebase.AI.ModelContent.FunctionResponsePart\n=============================================\n\nResult output from a function call.\n\nSummary\n-------\n\nContains 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](/docs/reference/unity/struct/firebase/a-i/model-content/function-call-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_call_part) made based on model prediction.\n\n### Inheritance\n\nInherits from: [Firebase.AI.ModelContent.Part](/docs/reference/unity/interface/firebase/a-i/model-content/part)\n\n| ### Constructors and Destructors ||\n|---|---|\n| [FunctionResponsePart](#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_response_part_1a1887b9f5467808e744a51cb9cf75ce83)`(string name, IDictionary\u003c string, object \u003e response, string id)` Constructs a new [FunctionResponsePart](/docs/reference/unity/struct/firebase/a-i/model-content/function-response-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_response_part). ||\n\n| ### Properties ||\n|----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Id](#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_response_part_1ae3e7dc78829ed36bc62540d9956584e7) | `string` The id from the [FunctionCallPart](/docs/reference/unity/struct/firebase/a-i/model-content/function-call-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_call_part) this is in response to. |\n| [Name](#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_response_part_1a1fd324223517f6e76468cf41d5d65ab5) | `string` The name of the function that was called. |\n| [Response](#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_response_part_1a6948bd115cbd89cbdb14ed4bc263dc28) | `IReadOnlyDictionary\u003c string, object \u003e` The function's response or return value. |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------|--------------------------------------|\n| [ToJson](#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_response_part_1a8fb37c3228bd87ad45e7254732515fa4)`()` | `Dictionary\u003c string, object \u003e Part.` |\n\nProperties\n----------\n\n### Id\n\n```c#\nstring Firebase::AI::ModelContent::FunctionResponsePart::Id\n``` \nThe id from the [FunctionCallPart](/docs/reference/unity/struct/firebase/a-i/model-content/function-call-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_call_part) this is in response to. \n\n### Name\n\n```c#\nstring Firebase::AI::ModelContent::FunctionResponsePart::Name\n``` \nThe name of the function that was called. \n\n### Response\n\n```c#\nIReadOnlyDictionary\u003c string, object \u003e Firebase::AI::ModelContent::FunctionResponsePart::Response\n``` \nThe function's response or return value.\n\nPublic functions\n----------------\n\n### FunctionResponsePart\n\n```c#\n Firebase::AI::ModelContent::FunctionResponsePart::FunctionResponsePart(\n string name,\n IDictionary\u003c string, object \u003e response,\n string id\n)\n``` \nConstructs a new [FunctionResponsePart](/docs/reference/unity/struct/firebase/a-i/model-content/function-response-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_response_part).\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `name` | The name of the function that was called. | | `response` | The function's response. | | `id` | The id from the [FunctionCallPart](/docs/reference/unity/struct/firebase/a-i/model-content/function-call-part#struct_firebase_1_1_a_i_1_1_model_content_1_1_function_call_part) this is in response to. | |\n\n### ToJson\n\n```c#\nDictionary\u003c string, object \u003e Part. Firebase::AI::ModelContent::FunctionResponsePart::ToJson()\n```"]]