FunctionCallPart

public final class FunctionCallPart implements Part


Represents function call name and params received from requests.

Summary

Public fields

final @NonNull Map<@NonNull String, @NonNull JsonElement>

the function parameters and values as a Map

final String

Unique id of the function call.

final @NonNull String

the name of the function to call

Public constructors

FunctionCallPart(
    @NonNull String name,
    @NonNull Map<@NonNull String, @NonNull JsonElement> args,
    String id
)

Public fields

args

public final @NonNull Map<@NonNull String, @NonNull JsonElementargs

the function parameters and values as a Map

id

public final String id

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

name

public final @NonNull String name

the name of the function to call

Public constructors

FunctionCallPart

public FunctionCallPart(
    @NonNull String name,
    @NonNull Map<@NonNull String, @NonNull JsonElement> args,
    String id
)
Parameters
@NonNull String name

the name of the function to call

@NonNull Map<@NonNull String, @NonNull JsonElement> args

the function parameters and values as a Map

String id

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