FunctionResponsePart

public final classFunctionResponsePart implementsPart


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

Summary

Public constructors

FunctionResponsePart(
    @NonNullString name,
    @NonNullJsonObject response,
    String id
)

Public fields

id

public final String id

isThought

public boolean isThought

name

public final @NonNullString name

response

public final @NonNullJsonObject response

Public constructors

FunctionResponsePart

public FunctionResponsePart(
    @NonNullString name,
    @NonNullJsonObject response,
    String id
)
Parameters
@NonNullString name

The name of the called function.

@NonNullJsonObject response

The response produced by the function as aJSONObject.

String id

Matchingid for aFunctionCallPart, if one was provided.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-18 UTC.