mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
53 lines
1.7 KiB
JSON
53 lines
1.7 KiB
JSON
{
|
|
"name": "Stream Chaining Test Workflow",
|
|
"description": "Test workflow to verify stream chaining is working",
|
|
"type": "test",
|
|
"agents": [
|
|
{
|
|
"id": "generator",
|
|
"name": "Number Generator",
|
|
"type": "developer",
|
|
"capabilities": ["generation"]
|
|
},
|
|
{
|
|
"id": "processor",
|
|
"name": "Number Processor",
|
|
"type": "developer",
|
|
"capabilities": ["processing"]
|
|
},
|
|
{
|
|
"id": "summarizer",
|
|
"name": "Result Summarizer",
|
|
"type": "developer",
|
|
"capabilities": ["analysis"]
|
|
}
|
|
],
|
|
"tasks": [
|
|
{
|
|
"id": "task1",
|
|
"name": "Generate Initial Data",
|
|
"type": "generation",
|
|
"description": "Generate random numbers for testing",
|
|
"assignTo": "generator",
|
|
"claudePrompt": "Generate a list of 3 random numbers between 1 and 100. Output them as a simple JSON array like [42, 67, 89]. Be concise."
|
|
},
|
|
{
|
|
"id": "task2",
|
|
"name": "Process Numbers",
|
|
"type": "processing",
|
|
"description": "Double the numbers from previous task",
|
|
"assignTo": "processor",
|
|
"depends": ["task1"],
|
|
"claudePrompt": "You are receiving numbers from the previous agent via stream-json. Double each number and output the results as a JSON array. Only output the array, nothing else."
|
|
},
|
|
{
|
|
"id": "task3",
|
|
"name": "Summarize Results",
|
|
"type": "summarization",
|
|
"description": "Calculate sum of doubled numbers",
|
|
"assignTo": "summarizer",
|
|
"depends": ["task2"],
|
|
"claudePrompt": "You are receiving doubled numbers from the previous agent via stream-json. Calculate their sum and output: 'The sum of the doubled numbers is: X'"
|
|
}
|
|
]
|
|
} |