FunctionResponsePart

public final class FunctionResponsePart implements Part


Represents function call output to be returned to the model when it requests a function call.

Summary

Public fields

final @NonNull String

the name of the called function

final @NonNull JsonObject

the response produced by the function as a JSONObject

Public constructors

Public fields

name

public final @NonNull String name

the name of the called function

response

public final @NonNull JsonObject response

the response produced by the function as a JSONObject

Public constructors

FunctionResponsePart

public FunctionResponsePart(@NonNull String name, @NonNull JsonObject response)
Parameters
@NonNull String name

the name of the called function

@NonNull JsonObject response

the response produced by the function as a JSONObject