Agent Builder SDK
The Agent Builder SDK lets you build your own AI agents — voice bots, chat assistants, automation workflows, IoT controllers, or any custom agent — and deploy them on the RBS platform.This is separate from the RBS coding agent. The coding agent (
rbs agent) is a built-in AI coding assistant. The Agent Builder SDK (rbs agent-builder) is an SDK for you to create and deploy your own agents for any purpose.Overview
Event-driven
Process typed events through a message bus. Route, filter, transform, and broadcast events between components.
Node-based
Build agents from composable nodes — reasoning (LLM), tool execution, routing, and custom logic.
DAG workflows
Orchestrate multi-step workflows with dependency-based execution and parallel processing.
RBS DSL configuration
Define everything in
BUILD.rbs files. No boilerplate, no YAML, no separate config files.Quick start
1. Define an agent node
2. Define a bridge for event routing
3. Define the agent system
4. Run the agent
Core concepts
Events
Events are typed messages that flow through the system. Every user input, agent response, tool call, and system notification is an event.| Event type | Description |
|---|---|
user.message | User text input. |
user.started_speaking | User began speaking (voice). |
user.stopped_speaking | User stopped speaking. |
agent.response | Agent text response. |
agent.speech_sent | Agent audio sent. |
tool.call | Tool invocation. |
tool.result | Tool result. |
session.start | Session began. |
session.end | Session ended. |
system.error | An error occurred. |
Nodes
Nodes are the building blocks of agents. Each node processes events and produces new events.| Node type | Description |
|---|---|
| Reasoning | LLM-powered conversation handling. Receives user messages, generates responses, calls tools. |
| Tool | Executes a specific action (API call, database query, file operation). |
| Router | Routes events to other nodes based on conditions (intent classification, priority routing). |
| Custom | Any custom logic defined in an implementation function. |
Bridges
Bridges connect nodes to the event bus. They handle:- Event pattern matching — Subscribe to specific event types (e.g.,
user.*). - Filtering — Drop events that don’t match criteria.
- Transformation — Transform events before passing to the node.
- Broadcasting — Send events from the node back to the bus.
Architecture
Defining nodes
Reasoning node (LLM-powered)
Tool node
Router node
Custom node
Defining bridges
DAG workflows
Define complex multi-step workflows with dependencies:DAG execution flow
- Receives input from completed upstream nodes.
- Runs independently with its own context.
- Passes results downstream.
- Supports conditional execution and looping.
Node references
Agent systems
Combine nodes, bridges, and a harness into a complete agent system:CLI commands
Serve
Start an agent system:Test
Test an agent with events:List
List registered components:DAG commands
RBS DSL API reference
native.define_agent_node()
native.define_agent_bridge()
native.define_agent_system()
native.define_agent_dag()
Helper functions
Example: Multi-node support agent
Coding agent vs Agent Builder SDK
| Coding agent | Agent Builder SDK | |
|---|---|---|
| Command | rbs agent | rbs agent-builder |
| Purpose | AI coding assistant (like Cursor). | SDK for building your own agents. |
| Users | Developers using RBS. | Developers building agents. |
| Configuration | Environment variables and rules files. | RBS DSL in BUILD.rbs. |
| Customization | Custom tools, prompts, and roles. | Full agent architecture. |
native.define_agent_tool() to create tools that work in both systems.