agent/tools/ is one tool, and the file name is the name the model sees:
agent/tools/get_invoice.ts
- Write
descriptionfor the model: what the tool does and when to use it. - Tools run in the agent’s own process, so they can read
process.env. Set a secret withjaccard env add BILLING_TOKEN, and add it to.env.localforpnpm dev. Never put it in a source file. - To make a person approve each call, add
approval: always()fromeve/tools/approval. Use it on tools that spend money, change data or read something sensitive.
- Tools: every option a tool takes.
- Human in the loop: approvals, and questions the agent asks a person while it works.
- Tasks: tool calls that keep running in the background while the agent carries on.
- Workflows: tools with several steps that can wait for a person or hand work to another agent.