FakeCommandHandler
Runs for runWithoutMessage, regenerate and retry after the fake has made its own
change to the snapshot. Return the outcome the command resolves with;
nothing means 'success'. Throwing rejects the command with that error.
import type { FakeCommandHandler } from '@threadplane/core/testing';Declaration
export type FakeCommandHandler<TTools extends {
[K in keyof TTools]: ToolContract;
} = Record<string, ToolContract>, TState = unknown> = (fake: FakeAgentSession<TTools, TState>) => CompleteOutcome | void | PromiseLike<CompleteOutcome | void>;Type parameters
TTools{ [K in keyof TTools]: ToolContract; }Default:Record<string, ToolContract>TStateDefault:unknown