add_function_include
add_function_include
Add a remote SWAIG function include so the agent can call tools hosted on an external server. The remote endpoint is contacted at session start and the listed functions become available to the AI just like locally defined tools.
This maps to the SWML ai.swaig.includes array.
See the SWML SWAIG includes reference for details.
Parameters
url
URL of the remote SWAIG server that hosts the functions.
functions
List of function names to include from the remote server.
meta_data
Optional metadata dictionary passed along with the function include. Can be used to provide authentication tokens or context to the remote server.
Returns
AgentBase — Returns self for method chaining.