FakeAgentSessionInit

Unpublished development API. This package is under development and is not available as a published release.

Initial snapshot fields plus an optional submit handler.

import type { FakeAgentSessionInit } from '@threadplane/core/testing';

Declaration

export interface FakeAgentSessionInit<TTools extends {
    [K in keyof TTools]: ToolContract;
} = Record<string, ToolContract>> extends FakeAgentSnapshotPatch<TTools>  {
  readonly onSubmit?: FakeSubmitHandler<TTools>;
}

Type parameters

TTools
{ [K in keyof TTools]: ToolContract; } Default: Record<string, ToolContract>

Members

onSubmit

readonly onSubmit?: FakeSubmitHandler<TTools>;