https://www.boundaryml.com logo
Also: please create a helper function to
# suggestions
r
Also: please create a helper function to swap any input UUIDs (like in a 'uuid' field) with consecutive integers, then map the return data back into UUIDs. I'm writing my own right now, this is a common operation.
a
I don't understand what you mean.
Copy code
typescript
class Example {
    uuid string @suggested_option
}
That? And how would it work?
Copy code
python
b.CallFunc(Example(uuid="abc-def-ghi"))
Rendered as
{ uuid: 1 }
in prompts?
r
Yes
Then translated back to
{ uuid: "abc-def-ghi" }
in the output.
@Vaibhav (BAML 🐑) says this is becoming common.