- driver: .env auto-load, failure log (FAILURES.md), exponential backoff on 429 (5x multiplier) and general errors - cli: tinyclaw add subcommand, appends single task to QUEUE.md - demo/: math_utils.py + QUEUE.md for end-to-end testing - Verified: 3/3 tasks pass with google/gemma-3-4b-it, 96-135 prompt tokens each - Queue markers [done]/[failed:N]/[skipped] persist correctly
19 lines
280 B
Python
19 lines
280 B
Python
"""Demo file for TinyClaw end-to-end test."""
|
|
|
|
|
|
def add(a, b):
|
|
return a + b
|
|
|
|
|
|
def divide(a, b):
|
|
if b == 0:
|
|
raise ValueError("Cannot divide by zero")
|
|
return a / b
|
|
|
|
|
|
def greet(name):
|
|
return "hello " + name.upper() + "!"
|
|
|
|
def multiply(a, b):
|
|
return a * b
|