VarArgs

data class VarArgs(val args: Map<KParameter, Any?>) : ToolArgs(source)

Represents a data structure to hold arguments conforming to the Args interface.

Constructors

Link copied to clipboard
constructor(args: Map<KParameter, Any?>)

Properties

Link copied to clipboard

A map of parameters to their respective values. Each key is a KParameter, matched with a value which can potentially be null.

Functions

Link copied to clipboard

Converts a map of parameters and their corresponding values into a list of pairs, where each pair consists of a parameter name and its associated value. Parameters without names are excluded from the resulting list.