Skip to content

Commit 65649b6

Browse files
committed
Merge branch 'release/0.9.0' into develop
2 parents a38cc5d + b3c6bb8 commit 65649b6

File tree

139 files changed

+424
-556
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+424
-556
lines changed

CHANGELOG.md

+16

README.md

+32-22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import core
2+
3+
flow main
4+
start pattern a
5+
when pattern b
6+
bot say "Pattern b has finished"
7+
else
8+
bot say "Pattern b has failed"
9+
10+
flow pattern a
11+
user said "Hello"
12+
bot say "Hello"
13+
14+
flow pattern b
15+
user said something
16+
bot say "Hi"
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import core
2+
13
flow main
24
start pattern a
35
when pattern b
@@ -12,12 +14,3 @@ flow pattern a
1214
flow pattern b
1315
user said something
1416
bot say "Hi"
15-
16-
flow bot say $text
17-
await UtteranceBotAction(script=$text)
18-
19-
flow user said $text
20-
match UtteranceUserAction.Finished(final_transcript=$text)
21-
22-
flow user said something
23-
match UtteranceUserAction.Finished()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import core
2+
3+
flow main
4+
bot say "How are you?"
5+
bot react to user feeling good or bot react to user feeling bad
6+
7+
flow bot react to user feeling good
8+
user said "Good" or user said "Great"
9+
bot say "Great"
10+
11+
flow bot react to user feeling bad
12+
user said "Bad" or user said "Terrible"
13+
bot say "Sorry to hear"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import core
2+
3+
flow main
4+
$number_of_users = 1
5+
if $number_of_users == 0
6+
await user became present
7+
elif $number_of_users > 1
8+
bot say "I am sorry, I can only interact with a single user!"
9+
else
10+
bot say "Welcome! Nice to meet you!"
11+
match RestartEvent()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import core
2+
3+
flow main
4+
bot say "How are you?"
5+
bot react to user wellbeing
6+
7+
flow bot react to user wellbeing
8+
when user said "Good" or user said "Great"
9+
bot say "Great"
10+
or when user said "Bad" or user said "Terrible"
11+
bot say "Sorry to hear"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import core
2+
3+
flow main
4+
bot count to 10
5+
6+
flow bot count to $number
7+
$current_number = 1
8+
while $current_number < $number
9+
bot say "{$current_number}"
10+
$current_number = $current_number + 1

examples/v2_x/language_reference/defining_flows/action_conflict_resolution/main.co

-30
This file was deleted.

examples/v2_x/language_reference/defining_flows/call_a_flow copy/main.co

-15
This file was deleted.

examples/v2_x/language_reference/defining_flows/concurrent_flows_hierarchy/main.co

-25
This file was deleted.

examples/v2_x/language_reference/defining_flows/flow_hierarchy copy/main.co

-16
This file was deleted.

examples/v2_x/language_reference/defining_flows/parallel_flows_hierarchy/main.co

-25
This file was deleted.

examples/v2_x/language_reference/defining_flows/start_a_flow/main.co

-11
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
flow main
2+
await a
3+
match RestartEvent()
4+
5+
flow a
6+
$info = flows_info($self.uid)
7+
print pretty_str($info)
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
colang_version: "2.x"
2-
3-
import_paths:
4-
- tests/test_configs/multi_modal_demo_v2_x/
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import core
2+
13
flow main
24
user said something as $flow
35
log $flow.transcript

examples/v2_x/language_reference/event_generation/event_groups/main.co

-4
This file was deleted.

examples/v2_x/language_reference/event_generation/event_references/main.co

-4
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
flow main
2+
send StartUtteranceBotAction(script="Smile") as $event_ref
3+
send StartGestureBotAction(gesture=$event_ref.script)
4+
match RestartEvent()

examples/v2_x/language_reference/llm/bot_intent_generation_example/config.yml

-129
This file was deleted.

0 commit comments

Comments
 (0)