Agent
The Agent<UserData> class mirrors a LiveKit voice agent. It holds the system prompt
(instructions), a map of tools, and optional user data. When bound to an
AgentSession, the session translates this into a SignalWire
AgentBase under the hood.
Constructor
instructions
The system prompt text for the agent. Mapped to the SignalWire prompt when the session starts.
tools
A map of tool names to FunctionTool definitions. Each tool is
registered as a SWAIG function on the underlying SignalWire agent.
userData
Arbitrary data attached to the agent. Accessible from tool handlers via
RunContext.userData.
Properties
instructions
The system prompt text for the agent. Can be read or modified directly.
tools
The map of registered tools.
userData
The user data attached to this agent.