Skip to main content

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

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

Available Functions

NameReturn TypeDescription
check_timestringReturns the current time for the time zone set in ai.local_tz
wait_secondsstringWaits for the given time