@telaro/framework-adapter-core
v0.1.0
Published
Shared monkey-patch wrapper for Telaro framework adapters (Sendai/Eliza/GOAT/Voltr/BUZZ).
Maintainers
Readme
@telaro/framework-adapter-core
Internal. Shared monkey-patch wrapper used by Telaro framework adapters:
@telaro/sendai,@telaro/eliza,@telaro/goat,@telaro/voltr,@telaro/buzz. You probably want one of those, not this.
What it does
Wraps a framework runtime’s "act" / "execute" / "step" hook so every
agent action is recorded automatically — no manual recordAction calls
in user code.
// every adapter looks like this under the hood:
import { wrapRuntime } from "@telaro/framework-adapter-core";
export function withTelaro(runtime, opts) {
return wrapRuntime(runtime, {
extractAction: (call) => ({
kind: mapToActionKind(call.method),
outcome: mapToOutcome(call.result),
valueAtomic: extractValue(call.args),
}),
controller: opts.controller,
bondMint: opts.bondMint,
});
}When to use this directly
If you’re porting a brand-new framework (Crew SDK / Camel / etc.)
to Telaro, this is the right entry point. Look at
@telaro/sendai's source for the canonical pattern.
