You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a class as an optional param to a BAML source function, if we check that the variable is populated, we still get a warning saying it could be none.
Example:
function Foo (bar: Baz?) -> string {
client MyClient
prompt #"
{ %if bar }
{{ bar.x }} // Gives 'bar' is a (none | class Baz), expected class
{ %endif% }
"#
}
The text was updated successfully, but these errors were encountered:
With a class as an optional param to a BAML source function, if we check that the variable is populated, we still get a warning saying it could be
none
.Example:
The text was updated successfully, but these errors were encountered: