Agent
The Agent class mirrors a LiveKit agent. It holds the system prompt (instructions),
a list of tools, and optional lifecycle hooks. When bound to an
AgentSession, the session
translates this into a SignalWire
AgentBase under the hood.
Properties
instructions
The system prompt text for the agent.
session
The AgentSession this
agent is bound to. Set automatically when session.start(agent) is called.
Methods
on_enter
Lifecycle hook called when the agent enters.
on_exit
Lifecycle hook called when the agent exits.
on_user_turn_completed
Lifecycle hook called when the user finishes speaking.
update_instructions
Update the agent’s system prompt mid-session.
update_tools
Replace the agent’s tool list mid-session.
Pipeline Nodes
No-op pipeline stubs: stt_node, llm_node, tts_node.