Skip to main content

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 typeDescription
user.messageUser text input.
user.started_speakingUser began speaking (voice).
user.stopped_speakingUser stopped speaking.
agent.responseAgent text response.
agent.speech_sentAgent audio sent.
tool.callTool invocation.
tool.resultTool result.
session.startSession began.
session.endSession ended.
system.errorAn error occurred.

Nodes

Nodes are the building blocks of agents. Each node processes events and produces new events.
Node typeDescription
ReasoningLLM-powered conversation handling. Receives user messages, generates responses, calls tools.
ToolExecutes a specific action (API call, database query, file operation).
RouterRoutes events to other nodes based on conditions (intent classification, priority routing).
CustomAny 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

Each node:
  • 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

Run it:

Coding agent vs Agent Builder SDK

Coding agentAgent Builder SDK
Commandrbs agentrbs agent-builder
PurposeAI coding assistant (like Cursor).SDK for building your own agents.
UsersDevelopers using RBS.Developers building agents.
ConfigurationEnvironment variables and rules files.RBS DSL in BUILD.rbs.
CustomizationCustom tools, prompts, and roles.Full agent architecture.
The only shared component is the tool system — you can use native.define_agent_tool() to create tools that work in both systems.