-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathminimal_error_test.yaml
More file actions
38 lines (33 loc) · 1.09 KB
/
minimal_error_test.yaml
File metadata and controls
38 lines (33 loc) · 1.09 KB
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
# Minimal Error Handling Test
# Test basic error handling with simple operations that we know will work
name: minimal_error_test
description: "Minimal test to demonstrate basic error handling patterns"
steps:
# Test 1: Simple successful operation
- id: success_test
action: "Generate simple test data"
parameters:
prompt: "Generate the number 42"
model: <AUTO>
# Test 2: Python operation that should succeed
- id: python_success
action: "Run simple Python code"
tool: python-executor
parameters:
code: |
print("This should work fine")
result = {"status": "success", "value": 42}
print(f"Result: {result}")
# Test 3: File operation with potential error
- id: file_write_test
action: "Write test file"
tool: filesystem
parameters:
action: write
path: "{{ output_path }}/test_output.txt"
content: "Error handling test successful"
on_error: "Failed to write file"
outputs:
test_result: "{{success_test.result}}"
python_result: "{{python_success.result}}"
file_result: "{{file_write_test.result}}"