Skip to main content

2 posts tagged with "intents"

View All Tags

Intents: Functions You Describe

CJ Cummings
Creator and maintainer of Stof, co-founder & CEO of Limitr

Here's a function with no code in it:

#[examples([([10], 100), ([50], 400)])]
intent fn price(seats: int) -> int {
'The monthly price for this many seats: $10 each, 20% off at 50 or more.'
}

Call self.price(80) and you get 640. The first time it's called, a model writes price in Stof. The code has to pass your examples before it's kept, and it runs in a sandbox where it can't touch anything you didn't give it. Every call after that runs the code it wrote: no model, no tokens, the same answer every time.

Stof 0.14: AI in Stof

CJ Cummings
Creator and maintainer of Stof, co-founder & CEO of Limitr

Stof 0.14 puts AI inside the document. A doc can call models, hand them its own functions as tools, run agents, and use remote MCP servers, and every model call and tool call goes through hooks the doc (or your app) controls. And the big one: a doc can declare a function by what it should do, and have a model write it. That's intents.