FakeResumeHandler
Unpublished development API. This package is under development and is not available as a published release.
Runs after the fake removes the answered interrupts from the snapshot.
Return the outcome resume resolves with; nothing means 'paused' while
interrupts remain and 'success' otherwise. Throwing rejects resume with
that error.
import type { FakeResumeHandler } from '@threadplane/core/testing';Declaration
export type FakeResumeHandler<TTools extends {
[K in keyof TTools]: ToolContract;
} = Record<string, ToolContract>, TState = unknown> = (responses: readonly AgentInterruptResponse[], fake: FakeAgentSession<TTools, TState>, options?: AgentSubmitOptions) => CompleteOutcome | void | PromiseLike<CompleteOutcome | void>;Type parameters
TTools{ [K in keyof TTools]: ToolContract; }Default:Record<string, ToolContract>TStateDefault:unknown