Represents an error message sent from client to server.
Used when the client detects a validation failure that the agent should be informed about, enabling a self-correction loop.
Fields
code— error code, e.g."VALIDATION_FAILED"surface_id— the surface where the error occurredpath— JSON Pointer to the problematic fieldmessage— brief explanation of the failure
Summary
Functions
Parses a raw JSON map into an Error struct.
Converts an Error struct back to a JSON-compatible map.