Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / agentErrorFromWire

Function: agentErrorFromWire()

ts
function agentErrorFromWire(wire): AgentError;

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

Reads an AgentError back from its WireError projection. Throws a ConfigError when the wire code is not 'agent'.

Parameters

ParameterType
wireWireError

Returns

AgentError