runAgentSessionConformance

Registers the session conformance checks with a test runner. Runtime packages call this in their own suites, with a factory that returns a fresh session each time.

import { runAgentSessionConformance } from '@threadplane/core/testing';

Declaration · overload 1

export declare function runAgentSessionConformance(label: string, factory: () => AgentSession | Promise<AgentSession>, runner: ConformanceRunner): void;

Parameters

label · required
string
factory · required
() => AgentSession | Promise<AgentSession>
runner · required
ConformanceRunner

Returns

void

Examples

import { describe, it } from 'vitest';
runAgentSessionConformance('my runtime', () => createSession(options), {
  describe,
  it,
});