Add math and split-bill agent tools #47

Open
ryan wants to merge 1 commits from feature/math-and-split-bill-tools into main
Owner

Summary

  • math_calculate: Safe AST-based math expression evaluator (no eval). Supports arithmetic ops, exponents, and common functions (sqrt, abs, round, min, max).
  • split_bill: Analyzes a receipt image via vision LLM, extracts line items/tip/tax as structured JSON, and computes an even split.
  • Exposes image_key in the agent's message context so it can reference uploaded images in tool calls.

Both tools are always available (no extra config needed — they use existing S3 + LLM infra).

## Summary - **math_calculate**: Safe AST-based math expression evaluator (no eval). Supports arithmetic ops, exponents, and common functions (sqrt, abs, round, min, max). - **split_bill**: Analyzes a receipt image via vision LLM, extracts line items/tip/tax as structured JSON, and computes an even split. - Exposes `image_key` in the agent's message context so it can reference uploaded images in tool calls. Both tools are always available (no extra config needed — they use existing S3 + LLM infra).
ryan added 1 commit 2026-09-12 14:35:34 -04:00
- math_calculate: safe AST-based math expression evaluator
- split_bill: receipt image analysis with even bill splitting
- Expose image_key to agent context for tool referencing
Checking for merge conflicts…
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/math-and-split-bill-tools:feature/math-and-split-bill-tools
git checkout feature/math-and-split-bill-tools
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ryan/simbarag#47