-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest_pipeline.yaml
72 lines (63 loc) · 1.79 KB
/
test_pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: comprehensive_pipeline
steps:
- !Command
name: simple_command
command: fluent llama3-groq "hello world"
save_output: greeting
- !ShellCommand
name: complex_shell_command
command: |
for i in {1..3}; do
echo "Iteration $i"
done
save_output: loop_result
- !Condition
name: check_greeting
condition: "[ '${greeting}' = 'Hello, World!' ]"
if_true: echo "Greeting is correct"
if_false: echo "Greeting is incorrect"
- !PrintOutput
name: display_results
value: "Greeting: ${greeting}, Loop Result: ${loop_result}"
- !Map
name: process_items
input: "apple,banana,cherry"
command: echo "Processing ${ITEM}"
save_output: processed_fruits
- !HumanInTheLoop
name: get_user_input
prompt: "Please enter your favorite color:"
save_output: user_color
- !Command
name: create_story
command: fluent openai 'tell me a story about ${input}., just output the story'
save_output: story_data
- !ShellCommand
name: initialize_counter
command: echo "0"
save_output: counter
- !RepeatUntil
name: count_to_five
steps:
- !ShellCommand
name: increment_counter
command: |
fluent openai '' <<'EOF'
tell a joke about: ${counter}, just about the joke
EOF
save_output: counter
- !PrintOutput
name: display_counter
value: "Current count: ${counter}"
condition: "[ ${counter} -ge 5 ]"
- !PrintOutput
name: final_output
value: |
Pipeline Execution Summary:
---------------------------
Greeting: ${greeting}
Loop Result: ${loop_result}
Story: ${story_data}
Processed Fruits: ${processed_fruits}
User's Favorite Color: ${user_color}
Final Counter Value: ${counter}