rulvar API reference / @rulvar/core / agentErrorToWire
Function: agentErrorToWire()
ts
function agentErrorToWire(error, message): WireError;Defined in: packages/core/src/l0/errors.ts:335
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
| Parameter | Type |
|---|---|
error | AgentError |
message | string |