agentskit.js

recordingAdapter

Auto-generated API reference for recordingAdapter.

Function: recordingAdapter()

recordingAdapter(inner, sink): AdapterFactory

Defined in: adapters/src/mock.ts:148

Wrap a real adapter so every turn is captured to a sink. Use this in dev to build up a fixture, then replay with replayAdapter() in tests.

#Parameters

#inner

AdapterFactory

#sink

RecordingSink

#Returns

AdapterFactory

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page