SimpleHarnessResult
SimpleHarnessResult<
TOutput> =OutputField<TOutput> &object
Lightweight result shape normalized by createHarness(...).
Type Declaration
Section titled “Type Declaration”artifacts?
Section titled “artifacts?”
optionalartifacts?:Record<string,unknown>
Raw artifact values to normalize and merge into the run.
errors?
Section titled “errors?”
optionalerrors?:unknown[]
Raw errors to normalize into the run.
messages?
Section titled “messages?”
optionalmessages?:NormalizedMessage[]
Pre-normalized transcript messages. When omitted, a default user/assistant transcript is created.
metadata?
Section titled “metadata?”
optionalmetadata?:Record<string,unknown>
Raw session metadata to normalize into the session.
timings?
Section titled “timings?”
optionaltimings?:TimingSummary
Timing summary to attach to the run.
toolCalls?
Section titled “toolCalls?”
optionaltoolCalls?:SimpleToolCallRecord[]
Lightweight tool-call records to normalize into the session.
usage?
Section titled “usage?”
optionalusage?:UsageSummary
Usage summary to attach to the run.
Type Parameters
Section titled “Type Parameters”TOutput
Section titled “TOutput”TOutput extends JsonValue | undefined = JsonValue | undefined
Example
Section titled “Example”const result: SimpleHarnessResult<{ status: "approved" }> = { output: { status: "approved" }, toolCalls: [{ name: "lookupInvoice", arguments: { invoiceId: "inv_123" } }], usage: { totalTokens: 260 },};