Skip to main content

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.

NameReturn TypeDescription
native_functionsOptionalstring[]The list of prebuilt functions that the AI agent needs to be able to call.

Available Functions​

NameReturn TypeDescription
adjust_response_latencystringAdjust how long the agent will wait for the user to stop talking.
check_timestringReturns the current time for the time zone set in ai.local_tz
wait_for_userstringUse 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_secondsstringWaits for the given time