-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da9343a
commit 52df798
Showing
19 changed files
with
1,904 additions
and
2,759 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 14 additions & 46 deletions
60
integ-tests/baml_src/test-files/functions/input/named-args/single/named-audio.baml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,22 @@ | ||
// function AudioInput(aud: audio) -> string{ | ||
// client Gemini | ||
// prompt #" | ||
// {{ _.role("user") }} | ||
function AudioInput(aud: audio) -> string{ | ||
client Gemini | ||
prompt #" | ||
{{ _.role("user") }} | ||
|
||
// Does this sound like a roar? Yes or no? One word no other characters. | ||
Does this sound like a roar? Yes or no? One word no other characters. | ||
|
||
// {{ aud }} | ||
// "# | ||
// } | ||
|
||
|
||
|
||
// test TestURLAudioInput{ | ||
// functions [AudioInput] | ||
// args { | ||
// aud{ | ||
// url https://actions.google.com/sounds/v1/emergency/beeper_emergency_call.ogg | ||
// } | ||
// } | ||
// } | ||
|
||
|
||
enum CatA { | ||
A | ||
{{ aud }} | ||
"# | ||
} | ||
|
||
enum CatB { | ||
C | ||
D | ||
} | ||
|
||
class CatAPicker { | ||
cat CatA | ||
} | ||
|
||
class CatBPicker { | ||
cat CatB | ||
item int | ||
test TestURLAudioInput{ | ||
functions [AudioInput] | ||
args { | ||
aud{ | ||
url https://actions.google.com/sounds/v1/emergency/beeper_emergency_call.ogg | ||
} | ||
} | ||
} | ||
|
||
enum CatC { | ||
E | ||
F | ||
G | ||
H | ||
I | ||
} | ||
|
||
class CatCPicker { | ||
cat CatC | ||
item int | string | null | ||
data int? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.