Adapter
Defined in: types.ts:197
Framework adapter interface. Adapters hook into agent runtime lifecycle events and translate them into graph builder calls.
Example
const myAdapter: Adapter = {
name: 'my-framework',
attach: (builder) => { /* hook into runtime */ },
detach: () => { /* unhook */ },
};
Properties
name
readonlyname:string
Defined in: types.ts:199
Human-readable adapter name.
Methods
attach()
attach(
builder):void
Defined in: types.ts:201
Hook into the framework's lifecycle, calling builder methods on events.
Parameters
| Parameter | Type |
|---|---|
builder | GraphBuilder |
Returns
void
detach()
detach():
void
Defined in: types.ts:203
Unhook from the framework (cleanup).
Returns
void