FunctionDefinition¶
Structure Class¶
FunctionDefinition
dataclass
¶
Defines parameters that the agent needs to invoke from the user to complete the function. Corresponds to an action in an action group.
Attributes¶
description
class-attribute
instance-attribute
¶
description: str | None = None
A description of the function and its purpose.
parameters
class-attribute
instance-attribute
¶
parameters: dict[str, ParameterDetail] | None = None
The parameters that the agent elicits from the user to fulfill the function.
require_confirmation
class-attribute
instance-attribute
¶
require_confirmation: RequireConfirmation | None = None
Contains information if user confirmation is required to invoke the function.