-
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
c436368
commit da9343a
Showing
9 changed files
with
104 additions
and
54 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
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
59 changes: 45 additions & 14 deletions
59
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,23 +1,54 @@ | ||
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 }} | ||
"# | ||
// {{ aud }} | ||
// "# | ||
// } | ||
|
||
|
||
|
||
// test TestURLAudioInput{ | ||
// functions [AudioInput] | ||
// args { | ||
// aud{ | ||
// url https://actions.google.com/sounds/v1/emergency/beeper_emergency_call.ogg | ||
// } | ||
// } | ||
// } | ||
|
||
|
||
enum CatA { | ||
A | ||
} | ||
|
||
enum CatB { | ||
C | ||
D | ||
} | ||
|
||
class CatAPicker { | ||
cat CatA | ||
} | ||
|
||
test TestURLAudioInput{ | ||
functions [AudioInput] | ||
args { | ||
aud{ | ||
url https://actions.google.com/sounds/v1/emergency/beeper_emergency_call.ogg | ||
} | ||
} | ||
class CatBPicker { | ||
cat CatB | ||
item int | ||
} | ||
|
||
enum CatC { | ||
E | ||
F | ||
G | ||
H | ||
I | ||
} | ||
|
||
class CatCPicker { | ||
cat CatC | ||
item int | string | null | ||
data int? | ||
} |