eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
12 lines (11 loc) • 660 B
TypeScript
import type { ContextAccessor } from "#context/key.js";
import type { ChannelAdapter, ChannelAdapterContext } from "#channel/adapter.js";
/**
* Builds the {@link ChannelAdapterContext} the runtime hands to an
* adapter's `deliver` hook, event handlers, and attachment resolver.
*
* Populates `session` with a live {@link SessionHandle} backed by the
* supplied accessor so handlers can read identity / auth and call
* `setContinuationToken(...)` to re-key the parked session.
*/
export declare function buildAdapterContext<TCtx extends ChannelAdapterContext<any> = ChannelAdapterContext>(adapter: ChannelAdapter<TCtx>, accessor: ContextAccessor): TCtx;