Skip to content

FunctionSchema

Union Type

FunctionSchema module-attribute

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:

Union Member Types

FunctionSchemaFunctions dataclass

Bases: _SerdeShape

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

Attributes

value instance-attribute
value: list[Function]

FunctionSchemaUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str