int / float
Numerical values as denoted more specifically in BAML.
int
float
We support implicit casting of int -> float, but if you need something to explicitly be a float, use 0.0 instead of 0.
0.0
0
1function DescribeCircle(radius: int | float, pi: float?) -> string {2 client "openai/gpt-5-mini"3 prompt #"4 Describe a circle with a radius of {{ radius }} units.5 Include the area of the circle using pi as {{ pi or 3.14159 }}.6 7 What are some properties of the circle?8 "#9}1011test CircleDescription {12 functions [DescribeCircle]13 // will be cast to int14 args { radius 5 }15}1617test CircleDescription2 {18 functions [DescribeCircle]19 // will be cast to float20 args { 21 radius 5.0 22 pi 3.1423 }24}