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 String

Matching id for a FunctionCallPart, if one was provided.

final @NonNull String

The name of the called function.

final @NonNull JsonObject

The response produced by the function as a JSONObject.

Public constructors

FunctionResponsePart(
    @NonNull String name,
    @NonNull JsonObject response,
    String id
)

Public fields

id

public final String id

Matching id for a FunctionCallPart, if one was provided.

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,
    String id
)
Parameters
@NonNull String name

The name of the called function.

@NonNull JsonObject response

The response produced by the function as a JSONObject.

String id

Matching id for a FunctionCallPart, if one was provided.