NormalizedMessage
NormalizedMessage =
object
Normalized message recorded in a harness session transcript.
Example
Section titled “Example”const message: NormalizedMessage = { role: "assistant", content: { status: "approved" }, toolCalls: [{ name: "lookupInvoice" }],};Properties
Section titled “Properties”content?
Section titled “content?”
optionalcontent?:JsonValue
JSON-safe message content.
metadata?
Section titled “metadata?”
optionalmetadata?:Record<string,JsonValue>
Extra JSON-safe message metadata.
role:
"system"|"user"|"assistant"|"tool"
Transcript role for the normalized message.
toolCalls?
Section titled “toolCalls?”
optionaltoolCalls?:ToolCallRecord[]
Tool calls associated with this message.