⚠️ EXPERIMENTAL. Assert the run emitted a SUCCESS result, and return its value —
the emit-channel counterpart of assertAgentOk, for a skill that has no return
value to assert on.
Throws on a missing emit, a repeated emit, an error track, or a payload that
does not match the contract. The failure message names every tool the run DID
call, because "the skill never emitted" and "the skill emitted the wrong shape"
are different bugs and the tool list separates them at a glance.
The error track is reachable through experimental_parseEmitted; a matching
…EmittedErr is deliberately NOT shipped while the surface is this young —
three exports is the whole prototype.
⚠️ EXPERIMENTAL. Assert the run emitted a SUCCESS result, and return its value — the emit-channel counterpart of
assertAgentOk, for a skill that has no return value to assert on.Throws on a missing emit, a repeated emit, an error track, or a payload that does not match the contract. The failure message names every tool the run DID call, because "the skill never emitted" and "the skill emitted the wrong shape" are different bugs and the tool list separates them at a glance.
The error track is reachable through
experimental_parseEmitted; a matching…EmittedErris deliberately NOT shipped while the surface is this young — three exports is the whole prototype.