FunctionSchema

sealed class FunctionSchema

Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.

This data type is used in the following API operations:

Inheritors

Types

Link copied to clipboard
data class Functions(val value: List<Function>) : FunctionSchema

A list of functions that each define an action in the action group.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this FunctionSchema as a Functions and retrieves its kotlin.collections.List value. Throws an exception if the FunctionSchema is not a Functions.

Link copied to clipboard

Casts this FunctionSchema as a Functions and retrieves its kotlin.collections.List value. Returns null if the FunctionSchema is not a Functions.