Programs using tools
6 verified Soma programs that use tools. Start from one of these when you write a program that needs it.
| Program | Lines | Uses |
|---|---|---|
| A ReAct-style agent whose tools are real, deterministic computations | 63 | a state machine, an agent cell, LLM calls (think), pipes (|>), try / catch, lambdas, tools |
| Sentiment-routing agent: classify a message, route by polarity | 67 | a state machine, an agent cell, LLM calls (think), match, tools |
| Reflective tool-dispatch agent: routes a named action to the right tool | 77 | a state machine, an agent cell, LLM calls (think), match, try / catch, tools |
| Self-auditing agent: it inspects its own execution trace | 59 | a state machine, an agent cell, LLM calls (think), try / catch, tools |
| Support-ticket triage agent | 65 | a state machine, an agent cell, LLM calls (think), tools |
| Refund agent — an LLM decides, the language decides what it may do | 162 | a state machine, a memory invariant, an agent cell, a sum type, LLM calls (think), match, try / catch, guard blocks, require / fail, a cost bound, tools |