FunctionCallPart

classFunctionCallPart :Part


Represents function call name and params received from requests.

Summary

Public constructors

FunctionCallPart(name: String, args: Map<StringJsonElement>, id: String?)

Public constructors

FunctionCallPart

FunctionCallPart(
    name: String,
    args: Map<StringJsonElement>,
    id: String? = null
)
Parameters
name: String

the name of the function to call

args: Map<StringJsonElement>

the function parameters and values as aMap

id: String? = null

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

Public properties

args

val argsMap<StringJsonElement>

id

val idString?

isThought

open val isThoughtBoolean

name

val nameString

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.