Pipeline nodes and hooks
Status: intentionally different.
Use Go tools and session events instead of LiveKit's exact pipeline-node API.
In rtp-agent, a callable tool implements the llm.Tool interface. The model path can execute those tools during generation, and core/agent/events.go exposes events for tool execution, speech, interruption, and run context behavior.
What to use
- Add tools to
Agent.Tools. - Use
Agent.UpdateToolswhen tools must change at runtime. - Use
llm.ToolFlaggerwhen a tool needs supported flags such asToolFlagIgnoreOnEnterorToolFlagCancellable. - Use
llm.ToolDuplicateModerwhen duplicate tool calls need reject, replace, or confirm behavior. - Use MCP servers when tools come from an external process or HTTP endpoint.
This is not a node graph API. Keep custom pipeline behavior in ordinary Go code unless a future source package introduces named pipeline nodes.
Evidence:
core/agent/generation.gocore/agent/agent.gocore/agent/events.gocore/llm/llm.gocore/llm/mcp.go