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· requiredstringfactory· required() => AgentSession | Promise<AgentSession>runner· requiredConformanceRunner
Returns
voidExamples
import { describe, it } from 'vitest';
runAgentSessionConformance('my runtime', () => createSession(options), {
describe,
it,
});