toggle_functions
toggle_functions
Enable or disable specific SWAIG functions at runtime. This lets you control which tools are available to the AI at different points in the conversation (e.g., enabling payment functions only after identity verification).
Parameters
function_toggles
List of toggle objects. Each object must contain:
"function"— name of the SWAIG function to toggle"active"—Trueto enable,Falseto disable
Returns
FunctionResult — self, for chaining.