Function-Based Tool Use
Coming Soon
This tutorial is under development. Check back soon for a complete walkthrough.
What You'll Learn
This tutorial will walk you through writing JavaScript functions that AI agents can invoke as tools, using the raisin.* API to read and write data, execute SQL, and call external services.
Planned Outline
- Prerequisites — RaisinDB instance running, basic familiarity with JavaScript
- Create a simple function — write a handler that reads and returns a node
- Use raisin.nodes — create, read, update, and delete nodes from a function
- Use raisin.sql — execute SQL queries and process results
- Use raisin.http — call an external API from a sandboxed function
- Use raisin.events — emit events that trigger other functions
- Configure triggers — set up event-based, HTTP, and schedule triggers
- Resource limits — understand memory, time, and concurrency constraints
- Build an agent tool — complete example of a function an AI agent calls to process messages and store findings
Related Guides
- Function-Based Tool Use — conceptual guide
- Agent Memory with Branches — combine functions with branches