Skip to main content

Adapter

Defined in: types.ts:266

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

readonly name: string

Defined in: types.ts:268

Human-readable adapter name.

Methods

attach()

attach(builder): void

Defined in: types.ts:270

Hook into the framework's lifecycle, calling builder methods on events.

Parameters

ParameterType
builderGraphBuilder

Returns

void


detach()

detach(): void

Defined in: types.ts:272

Unhook from the framework (cleanup).

Returns

void