FunctionCallPart

public final classFunctionCallPart implementsPart


Represents function call name and params received from requests.

Summary

Public constructors

FunctionCallPart(
    @NonNullString name,
    @NonNullMap<@NonNullString, @NonNullJsonElement> args,
    String id
)

Public fields

id

public final String id

isThought

public boolean isThought

name

public final @NonNullString name

Public constructors

FunctionCallPart

public FunctionCallPart(
    @NonNullString name,
    @NonNullMap<@NonNullString, @NonNullJsonElement> args,
    String id
)
Parameters
@NonNullString name

the name of the function to call

@NonNullMap<@NonNullString, @NonNullJsonElement> args

the function parameters and values as aMap

String id

Unique id of the function call. If present, the returnedFunctionResponsePart should have a matchingid field.

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.