Errors
Agentica has no exceptions. A function that can fail returns a Result, and the caller reads it.
- Use Result to build
ok(value)anderror(message)and to read them. - A failed Result holds an Error: its message, kind, code, details, cause and location.
- Use
tryinside a function that returns aResultto pass an error on to its caller. The tour page Result and try explains it.