Repository navigation
v0.1.0 - A small language for AI agents
µNorman is a programming language for writing AI agents. It's designed in the style of Norman Ramsey's Programming
Languages: Build, Prove, and Compare: the meaning of every construct is written down before it is implemented, and the properties it promises are proved.
This is the first tagged release. It's a research prototype so there's still a lot to test out and issues to resolve!
Try it without installing anything
https://iliketocode2.github.io/Norman/
The interpreter is compiled to WebAssembly, so every example on the site runs.
What's in it
- Typed model calls.
asknames the type of the answer; the reply is validated against it or the ask fails. - Answers as choices. Sum types, so an agent loop is ordinary case analysis.
- Budgets that can't be overspent. Money and time
- Failures as values.
Invalid,ToolError,Refused,OverBudget,PastDeadline,Raised.
Evidence
- 52 Rust tests and 119 µNorman unit tests, plus 8 deliberately wrong tests that must fail
- 13 algebraic laws checked on 150 randomly generated scripts each, and 3 known-false laws
Not yet
- No static checking. Every guarantee above is enforced when the program runs.
- No real tools.
callis scripted. - A very small standard library. No number-to-string, no substring, no way to render a value back into a prompt.
- Performance is a hypothesis.
Licence
Dual-licensed MIT or Apache-2.0. The papers in theory/ are not covered by it
and remain the copyright of their authors.