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.
Name | Return Type | Description |
---|---|---|
native_functions Optional | string[] | The list of prebuilt functions that the AI agent needs to be able to call. |
Available Functions​
Name | Return Type | Description |
---|---|---|
adjust_response_latency | string | Adjust how long the agent will wait for the user to stop talking. |
check_time | string | Returns the current time for the time zone set in ai.local_tz |
wait_for_user | string | Use this function only when the user ask you to wait, hold on, or the equivalent. This will cause the AI to wait until the user speaks to it again. |
wait_seconds | string | Waits for the given time |