ai.SWAIG
An array of JSON objects to create user-defined functions/endpoints that can be executed during the dialogue.
Parameters
Name | Type | Description |
---|---|---|
defaults | object | Default settings for all SWAIG functions. If defaults is not set, settings may be set in each function object. Optional. Default is not set. |
defaults.web_hook_url | string | Default URL to send status callbacks and reports to. Optional. Default is not set. See Callback Parameters for details on the request body. |
defaults.web_hook_auth_user | string | Default auth username for web_hook_url endpoint. Optional. Default is not set. |
defaults.web_hook_auth_password | string | Default auth password for web_hook_url endpoint. Optional. Default is not set. |
native_functions | string[] | Prebuilt functions the AI agent is able to call (from this list of available native functions) |
includes | object[] | An array of objects to include remote function signatures. The object fields are url to specify where the remote functions are defined and functions which is an array of the function names as strings. See examples of the implementation. |
functions | object[] | An array of JSON objects to define functions that can be executed during the interaction with the AI. Optional. Default is not set. The fields of this object are the six following. |