feat: add CanvasReasonerActivity for auto-inferring workflow connections
ci / test (push) Failing after 6m2s

This commit is contained in:
Test
2026-09-05 00:54:22 -07:00
parent 00fc83c081
commit 2a3b080e29
7 changed files with 261 additions and 5 deletions
+72 -3
View File
@@ -593,11 +593,79 @@
"dependencies": [],
"notes": "Sequential processing of multiple prompts. Use for batch analysis, summarization, etc."
}
},
{
"name": "CanvasReasonerActivity",
"description": "Use LLM reasoning to infer and suggest connections between workflow activities",
"category": "workflow",
"inputs": {
"nodes": {
"type": "array",
"description": "Canvas workflow nodes to analyze",
"required": true,
"items": {
"type": "object",
"properties": {
"id": {"type": "string"},
"type": {"type": "string"},
"label": {"type": "string"}
}
}
},
"edges": {
"type": "array",
"description": "Existing edges in the workflow",
"required": false,
"items": {
"type": "object"
}
},
"preserve_existing": {
"type": "boolean",
"description": "If true, only suggest new edges; if false, redesign entire workflow",
"required": false,
"default": true
},
"auth_token": {
"type": "string",
"description": "JWT token for authenticated LLM calls",
"required": false
}
},
"outputs": {
"suggested_edges": {
"type": "array",
"description": "Edges suggested by LLM reasoning",
"items": {
"type": "object",
"properties": {
"source": {"type": "string"},
"target": {"type": "string"}
}
}
},
"reasoning": {
"type": "string",
"description": "LLM explanation of suggested connections"
},
"confidence": {
"type": "number",
"description": "Confidence score (0.0-1.0) of the suggestions"
}
},
"constraints": {
"defaultTimeout": "120s",
"isFlaky": true,
"recommendedRetries": 2,
"retryBackoff": 2.0,
"dependencies": [],
"notes": "Uses reasoning model to analyze workflow logic. Good for understanding data flow and connections between activities."
}
}
],
"metadata": {
"totalActivities": 12,
"lastUpdated": "2025-08-31T00:00:00Z",
"totalActivities": 13,
"lastUpdated": "2025-09-05T00:00:00Z",
"categories": {
"repository": 1,
"analysis": 1,
@@ -609,7 +677,8 @@
"storage": 1,
"memory": 1,
"authentication": 1,
"llm": 2
"llm": 2,
"workflow": 1
}
}
}