Skip to content

rulvar API reference


rulvar API reference / @rulvar/rulvar / agentErrorFromWire

Function: agentErrorFromWire()

ts
function agentErrorFromWire(wire): AgentError;

Defined in: packages/core/dist/index.d.ts

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

Parameters

ParameterType
wireWireError

Returns

AgentError