Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / agentErrorToWire

Function: agentErrorToWire()

ts
function agentErrorToWire(error, message): WireError;

Defined in: packages/core/src/l0/errors.ts:544

Projects an AgentError to its WireError form: code 'agent', with kind, retryAfterMs, and issues carried in data. Issue paths are flattened to JSON-safe segments.

Parameters

ParameterType
errorAgentError
messagestring

Returns

WireError