FunctionDeclaration

constructor(name: String, description: String, parameters: Map<String, Schema>, optionalParameters: List<String> = emptyList())(source)

Parameters

name

The name of the function.

description

The description of what the function does and its output. To improve the effectiveness of the model, the description should be clear and detailed.

parameters

The map of parameters names to their Schema the function accepts as arguments.

optionalParameters

The list of parameter names that the model can omit when invoking this function.