FunctionCallPart

class FunctionCallPart : Part


Represents function call name and params received from requests.

Summary

Public constructors

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

Public properties

Map<StringJsonElement>

the function parameters and values as a Map

String?

Unique id of the function call.

String

the name of the function to call

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 a Map

id: String? = null

Unique id of the function call. If present, the returned FunctionResponsePart should have a matching id field.

Public properties

args

val argsMap<StringJsonElement>

the function parameters and values as a Map

id

val idString?

Unique id of the function call. If present, the returned FunctionResponsePart should have a matching id field.

name

val nameString

the name of the function to call