NormalizedSession
NormalizedSession =
object
JSON-serializable transcript produced by the system under test.
Example
Section titled “Example”const session: NormalizedSession = { provider: "openai", model: "gpt-4o-mini", messages: [ { role: "user", content: "Refund invoice inv_123" }, { role: "assistant", content: { status: "approved" } }, ],};Properties
Section titled “Properties”messages
Section titled “messages”messages:
NormalizedMessage[]
Ordered normalized transcript messages.
metadata?
Section titled “metadata?”
optionalmetadata?:Record<string,JsonValue>
Extra JSON-safe session metadata.
model?
Section titled “model?”
optionalmodel?:string
Model that produced the session when known.
provider?
Section titled “provider?”
optionalprovider?:string
Provider that produced the session when known.