Skip to content

NormalizedSession

NormalizedSession = object

JSON-serializable transcript produced by the system under test.

const session: NormalizedSession = {
provider: "openai",
model: "gpt-4o-mini",
messages: [
{ role: "user", content: "Refund invoice inv_123" },
{ role: "assistant", content: { status: "approved" } },
],
};

messages: NormalizedMessage[]

Ordered normalized transcript messages.


optional metadata?: Record<string, JsonValue>

Extra JSON-safe session metadata.


optional model?: string

Model that produced the session when known.


optional provider?: string

Provider that produced the session when known.