Building Adapters
What Is a ChannelAdapter?
Message Flow
Platform user sends message
↓
YourAdapter (platform SDK listener)
↓
core.handleIncomingMessage(IncomingMessage)
↓
OpenACPCore → Session → AgentInstance (ACP subprocess)
↓
AgentEvents emitted
↓
core calls adapter.sendMessage() / sendPermissionRequest() / sendNotification()
↓
YourAdapter delivers to platformStep 1 — Extend ChannelAdapter
Step 2 — Implement start() and stop()
Step 3 — Handle Inbound Messages
Step 4 — Implement sendMessage()
Step 5 — Implement sendPermissionRequest()
Step 6 — Implement sendNotification()
Step 7 — Implement Session Thread Lifecycle
Step 8 — Register With Core
Step 9 — Export as AdapterFactory
Complete Minimal Adapter
Last updated
Was this helpful?
