feat: add CanvasReasonerActivity for auto-inferring workflow connections
ci / test (push) Failing after 6m2s
ci / test (push) Failing after 6m2s
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,6 +113,7 @@ func (cc *CanvasConverter) mapActivityType(canvasType string) string {
|
||||
"assume-role": "AssumeRoleActivity",
|
||||
"llm-inference": "LLMInferenceActivity",
|
||||
"llm-batch-inference": "LLMBatchInferenceActivity",
|
||||
"canvas-reasoner": "CanvasReasonerActivity",
|
||||
}
|
||||
|
||||
if mapped, ok := typeMap[canvasType]; ok {
|
||||
|
||||
@@ -28,6 +28,7 @@ func NewCanvasValidator() *CanvasValidator {
|
||||
"assume-role": true,
|
||||
"llm-inference": true,
|
||||
"llm-batch-inference": true,
|
||||
"canvas-reasoner": true,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user