OptionalattributesAdditional optional attributes for the function. Example: related integrations.
OptionalcategoriesThe categories this function is associated with.
Can be many or none. If no categories are specified, then the function is lumped into a default category.
The Studio will group the functions into the categories for easier discovery.
If multiple categories are given, the function will appear once in each category section in the Studio.
OptionalidUnique AI function ID. If not set, the function name (excluding the class name) is used as the default ID. If not provided the ID of the function is constructed as 'ClassName:FunctionName'.
OptionalinternalMarks the function as internal-only: it is hidden from the Studio and offered to an agent only on a request made with the app API key, never to the agent an AI query or API call stage runs.
Parameters for the AI function. These parameters are passed to the function by the calling agent.
Options common to every
@aiFunctionannotation, regardless of how the function's description is supplied. See AiFunctionMetadataOptions.