Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/core / / toWireAgentEvent
Function: toWireAgentEvent()
ts
function toWireAgentEvent<TOutput>(ev): WireAgentEvent<TOutput>;Defined in: packages/core/src/types/agent-event-wire.ts:132
Stable
Project an AgentEvent into its JSON-safe WireAgentEvent twin. Idempotent: projecting an already-wire event returns an equivalent value. Events of unknown type pass through untouched.
Type Parameters
| Type Parameter | Default type |
|---|---|
TOutput | string |
Parameters
Returns
WireAgentEvent<TOutput>