FunctionParameters

Represents the parameters of the function. You can think of this like a method signature, where each property is a parameter to a method.

This class should not be used directly. Instead, use the FunctionTool.builder to add parameters.

Functions

Link copied to clipboard
operator fun get(name: String): FunctionProperty?
Link copied to clipboard
fun require(name: String)

Require that the given parameter is used by ChatGPT.

Link copied to clipboard
operator fun set(name: String, property: FunctionProperty)

Properties

Link copied to clipboard

The map of method parameters.

Link copied to clipboard
Link copied to clipboard

The type of the parameters. This should always be "object".