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