ai.swaig.native_functions
The AI agent is already aware of these functions and can use them creatively based on prompting.
For example, a prompt like, "tell the user what time it is" will automatically use the check_time
function internally. Similarly, a prompt like, "ask the question and wait 10 seconds to let the user check",
will automatically invoke the wait_seconds
function with the appropriate parameters.
Parameters
Name | Return Type | Description |
---|
native_functions | string[] | The list of prebuilt functions that the AI agent needs to be able to call. |
Available Functions
Name | Return Type | Description |
---|
check_time | string | Returns the current time for the time zone set in ai.local_tz |
wait_seconds | string | Waits for the given time |