Skip to main content

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

readonly name: 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

ParameterType
builderGraphBuilder

Returns

void


detach()

detach(): void

Defined in: types.ts:203

Unhook from the framework (cleanup).

Returns

void