TypeScript Adapters
Reference for @band-ai/sdk 1.0.0.
Adapter Reference
Every adapter is constructed as new <Name>Adapter(options) and passed to Agent.create({ adapter }). The adapter tutorials cover each one’s setup; this table lists the classes, their peer packages and the option that selects the model.
GenericAdapter
A tools.sendMessage() call is the turn’s reply. A handler that answers nothing on purpose calls tools.turn.settle(); otherwise the turn is reported as a missing reply. tools.sendNotice() posts a status message that is not the reply, and tools.sendEvent() posts an event such as a thought. For a reusable adapter, extend SimpleAdapter from @band-ai/sdk/core instead. See Creating Adapters.