seeds: add calculator.calculate (SemIf-chosen operator, spoken answer)
A local-arithmetic seed bounded to two operands and one operator. The operator is a SemIf choice over addition, subtraction, multiplication, division, exponents, squares, cubes, square roots, cube roots, fractions, and percentages; SemIf also picks the operands when the request writes more numbers than the operation consumes, and the body asks for missing numbers and resumes. Results are spelled out in words for the ear, with inexact results announced as "approximately ...". Pure local compute (`compute` transport, empty contract). Adds the `calculator` category description for navigation, the seed's hermetic test, a tune_navigation example, and README/AGENTS docs.
This commit is contained in:
1 parent
fc0beb5798
commit
e2cbf74797
9 files changed
+606
-3
No files matched your search
@@ -63,6 +63,8 @@ LEAF_EVAL: list[tuple[str, str]] = [
|
||||
("what is my simplex connection link?", "simplex.connect_link"),
|
||||
("give me my simplex contact link", "simplex.connect_link"),
|
||||
("tell me the next event in my nextcloud calendar", "nextcloud.next_event"),
|
||||
("what is 15% of 80?", "calculator.calculate"),
|
||||
("square root of 144", "calculator.calculate"),
|
||||
("translate my last simplex message to French", "create"),
|
||||
("delete my next simplex message", "create"),
|
||||
("book a flight to japan", "create"),
|
||||
@@ -74,6 +76,8 @@ CATEGORY_EVAL: list[tuple[str, str]] = [
|
||||
("send a simplex message to pepper saying hi", "simplex"),
|
||||
("what is my simplex connection link?", "simplex"),
|
||||
("tell me the next event in my nextcloud calendar", "nextcloud"),
|
||||
("what is 15% of 80?", "calculator"),
|
||||
("square root of 144", "calculator"),
|
||||
("hello there", "response"),
|
||||
("thanks!", "response"),
|
||||
("what", "response"),
|
||||
|
||||
Reference in new issue
Block a user