Intents: Functions You Describe
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.
