SimpleHarnessResult
SimpleHarnessResult<
TOutput> =OutputField<TOutput> &SimpleTranscriptInput&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.
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.
traces?
Section titled “traces?”
optionaltraces?:SimpleTraceRecord[]
Lightweight traces and spans to normalize into the run.
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" }, events: [ { type: "message", role: "user", content: "Refund invoice inv_123" }, { type: "message", role: "assistant", content: { status: "approved" } }, ], usage: { totalTokens: 260 },};