public sealed class FunctionResponse : IMessage<FunctionResponse>, IEquatable<FunctionResponse>, IDeepCloneable<FunctionResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class FunctionResponse.
The result output from a [FunctionCall] that 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 [FunctionCall] made based on model prediction.
Required. The function response in JSON object format.
Use "output" key to specify function output and "error" key to specify
error details (if any). If "output" and "error" keys are not specified,
then whole "response" is treated as function output.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `FunctionResponse` class in the Vertex AI v1beta1 API represents the output from a function call, containing a function name and a structured JSON object with the result."],["This class is part of the `Google.Cloud.AIPlatform.V1Beta1` namespace and is implemented in the `Google.Cloud.AIPlatform.V1Beta1.dll` assembly, with a base inheritance from the `object` class."],["The class implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing functionalities for message handling, equality comparison, deep cloning, and buffer message operations."],["`FunctionResponse` objects contain three key properties: `Id` (optional identifier for the function call), `Name` (the required name of the function), and `Response` (the required JSON object representing the function's output or error)."],["The output of a `FunctionResponse` is expected to be structured in JSON format, where the \"output\" key specifies the function's outcome and the \"error\" key, if used, contains any related error details."]]],[]]