Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d843836fae |
@@ -1,81 +0,0 @@
|
|||||||
---
|
|
||||||
name: conditional-request-routing-workflow
|
|
||||||
version: 1.0.0
|
|
||||||
description: Collect a request, classify it via branching logic, and route to an approval
|
|
||||||
or rejection handler to produce a final result
|
|
||||||
inputs:
|
|
||||||
- name: request
|
|
||||||
type: string
|
|
||||||
description: The input text or request to be evaluated and routed
|
|
||||||
steps:
|
|
||||||
- node: Start
|
|
||||||
agent_type: input
|
|
||||||
description: Prompt user and capture the request into state field 'request'
|
|
||||||
next: Classify
|
|
||||||
- node: Classify
|
|
||||||
agent_type: branching
|
|
||||||
description: Evaluate the request and set 'decision' field, routing to Approve on
|
|
||||||
success or Reject on failure
|
|
||||||
input_fields:
|
|
||||||
- request
|
|
||||||
output_field: decision
|
|
||||||
next_node: Approve
|
|
||||||
on_failure: Reject
|
|
||||||
- node: Approve
|
|
||||||
agent_type: default
|
|
||||||
description: Format and output an approval message containing the request
|
|
||||||
input_fields:
|
|
||||||
- request
|
|
||||||
output_field: result
|
|
||||||
prompt: 'Request approved: {request}'
|
|
||||||
- node: Reject
|
|
||||||
agent_type: default
|
|
||||||
description: Format and output a rejection message containing the request
|
|
||||||
input_fields:
|
|
||||||
- request
|
|
||||||
output_field: result
|
|
||||||
prompt: 'Request rejected: {request}'
|
|
||||||
outputs:
|
|
||||||
- name: result
|
|
||||||
type: string
|
|
||||||
description: Final formatted message indicating the outcome (approved or rejected)
|
|
||||||
- name: decision
|
|
||||||
type: string
|
|
||||||
description: Routing decision produced by the branching node
|
|
||||||
tags: []
|
|
||||||
metadata:
|
|
||||||
source_repo: https://github.com/jwwelbor/AgentMap.git
|
|
||||||
extracted_at: ''
|
|
||||||
confidence: 0.92
|
|
||||||
---
|
|
||||||
|
|
||||||
# conditional-request-routing-workflow
|
|
||||||
|
|
||||||
Collect a request, classify it via branching logic, and route to an approval or rejection handler to produce a final result
|
|
||||||
|
|
||||||
## Steps
|
|
||||||
|
|
||||||
1. {'node': 'Start', 'agent_type': 'input', 'description': "Prompt user and capture the request into state field 'request'", 'next': 'Classify'}
|
|
||||||
2. {'node': 'Classify', 'agent_type': 'branching', 'description': "Evaluate the request and set 'decision' field, routing to Approve on success or Reject on failure", 'input_fields': ['request'], 'output_field': 'decision', 'next_node': 'Approve', 'on_failure': 'Reject'}
|
|
||||||
3. {'node': 'Approve', 'agent_type': 'default', 'description': 'Format and output an approval message containing the request', 'input_fields': ['request'], 'output_field': 'result', 'prompt': 'Request approved: {request}'}
|
|
||||||
4. {'node': 'Reject', 'agent_type': 'default', 'description': 'Format and output a rejection message containing the request', 'input_fields': ['request'], 'output_field': 'result', 'prompt': 'Request rejected: {request}'}
|
|
||||||
|
|
||||||
## Inputs
|
|
||||||
|
|
||||||
- {'name': 'request', 'type': 'string', 'description': 'The input text or request to be evaluated and routed'}
|
|
||||||
|
|
||||||
## Outputs
|
|
||||||
|
|
||||||
- {'name': 'result', 'type': 'string', 'description': 'Final formatted message indicating the outcome (approved or rejected)'}
|
|
||||||
- {'name': 'decision', 'type': 'string', 'description': 'Routing decision produced by the branching node'}
|
|
||||||
|
|
||||||
## Failure Modes
|
|
||||||
|
|
||||||
- Empty or missing request input prevents meaningful classification
|
|
||||||
- Branching node fails to resolve a valid route and defaults to rejection path
|
|
||||||
- Prompt template variable missing causes malformed output
|
|
||||||
|
|
||||||
## Source
|
|
||||||
|
|
||||||
Extracted from: [https://github.com/jwwelbor/AgentMap.git](https://github.com/jwwelbor/AgentMap.git)
|
|
||||||
Confidence: 0.92
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Commands: conditional-request-routing-workflow
|
|
||||||
|
|
||||||
## Available Commands
|
|
||||||
|
|
||||||
- `/skill conditional-request-routing-workflow` — Load this skill
|
|
||||||
- `/run conditional-request-routing-workflow` — Execute workflow
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# Examples: conditional-request-routing-workflow
|
|
||||||
|
|
||||||
## Usage Example
|
|
||||||
|
|
||||||
```python
|
|
||||||
# How to use this skill
|
|
||||||
# Inputs: {'name': 'request', 'type': 'string', 'description': 'The input text or request to be evaluated and routed'}
|
|
||||||
# Process: {'node': 'Start', 'agent_type': 'input', 'description': "Prompt user and capture the request into state field 'request'", 'next': 'Classify'} → {'node': 'Classify', 'agent_type': 'branching', 'description': "Evaluate the request and set 'decision' field, routing to Approve on success or Reject on failure", 'input_fields': ['request'], 'output_field': 'decision', 'next_node': 'Approve', 'on_failure': 'Reject'} → {'node': 'Approve', 'agent_type': 'default', 'description': 'Format and output an approval message containing the request', 'input_fields': ['request'], 'output_field': 'result', 'prompt': 'Request approved: {request}'}
|
|
||||||
# Outputs: {'name': 'result', 'type': 'string', 'description': 'Final formatted message indicating the outcome (approved or rejected)'}, {'name': 'decision', 'type': 'string', 'description': 'Routing decision produced by the branching node'}
|
|
||||||
```
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "conditional-request-routing-workflow",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"goal": "Collect a request, classify it via branching logic, and route to an approval or rejection handler to produce a final result",
|
|
||||||
"inputs": [
|
|
||||||
{
|
|
||||||
"name": "request",
|
|
||||||
"type": "string",
|
|
||||||
"description": "The input text or request to be evaluated and routed"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"node": "Start",
|
|
||||||
"agent_type": "input",
|
|
||||||
"description": "Prompt user and capture the request into state field 'request'",
|
|
||||||
"next": "Classify"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"node": "Classify",
|
|
||||||
"agent_type": "branching",
|
|
||||||
"description": "Evaluate the request and set 'decision' field, routing to Approve on success or Reject on failure",
|
|
||||||
"input_fields": [
|
|
||||||
"request"
|
|
||||||
],
|
|
||||||
"output_field": "decision",
|
|
||||||
"next_node": "Approve",
|
|
||||||
"on_failure": "Reject"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"node": "Approve",
|
|
||||||
"agent_type": "default",
|
|
||||||
"description": "Format and output an approval message containing the request",
|
|
||||||
"input_fields": [
|
|
||||||
"request"
|
|
||||||
],
|
|
||||||
"output_field": "result",
|
|
||||||
"prompt": "Request approved: {request}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"node": "Reject",
|
|
||||||
"agent_type": "default",
|
|
||||||
"description": "Format and output a rejection message containing the request",
|
|
||||||
"input_fields": [
|
|
||||||
"request"
|
|
||||||
],
|
|
||||||
"output_field": "result",
|
|
||||||
"prompt": "Request rejected: {request}"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"name": "result",
|
|
||||||
"type": "string",
|
|
||||||
"description": "Final formatted message indicating the outcome (approved or rejected)"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "decision",
|
|
||||||
"type": "string",
|
|
||||||
"description": "Routing decision produced by the branching node"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"failure_modes": [
|
|
||||||
"Empty or missing request input prevents meaningful classification",
|
|
||||||
"Branching node fails to resolve a valid route and defaults to rejection path",
|
|
||||||
"Prompt template variable missing causes malformed output"
|
|
||||||
],
|
|
||||||
"confidence": 0.92,
|
|
||||||
"explanation": "Extracted from the ReviewFlow CSV example in the AgentMap README. This is a declarative, CSV-defined LangGraph workflow demonstrating the reusable pattern of input -> branching classification -> conditional handling paths. It can be generalized for ticket triage, content moderation, or any route-by-condition use case.",
|
|
||||||
"source_repo": "https://github.com/jwwelbor/AgentMap.git",
|
|
||||||
"score": 1.0
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
---
|
||||||
|
name: text-concatenation-pipeline
|
||||||
|
version: 1.0.0
|
||||||
|
description: Combine two text inputs into a single output string using a Blacknode
|
||||||
|
node graph.
|
||||||
|
inputs:
|
||||||
|
- text_a (string)
|
||||||
|
- text_b (string)
|
||||||
|
steps:
|
||||||
|
- Instantiate a Text node with parameter value set to text_a
|
||||||
|
- Instantiate a Text node with parameter value set to text_b
|
||||||
|
- Instantiate a Concat node with no parameters
|
||||||
|
- Instantiate an Output node
|
||||||
|
- Connect output port 'value' of first Text node to input port 'a' of Concat node
|
||||||
|
- Connect output port 'value' of second Text node to input port 'b' of Concat node
|
||||||
|
- Connect output port 'value' of Concat node to input port 'value' of Output node
|
||||||
|
- Execute graph by cooking the Output node's 'value' port to obtain result
|
||||||
|
outputs:
|
||||||
|
- concatenated_text (string)
|
||||||
|
tags: []
|
||||||
|
metadata:
|
||||||
|
source_repo: https://github.com/temiroff/Blacknode.git
|
||||||
|
extracted_at: ''
|
||||||
|
confidence: 0.95
|
||||||
|
---
|
||||||
|
|
||||||
|
# text-concatenation-pipeline
|
||||||
|
|
||||||
|
Combine two text inputs into a single output string using a Blacknode node graph.
|
||||||
|
|
||||||
|
## Steps
|
||||||
|
|
||||||
|
1. Instantiate a Text node with parameter value set to text_a
|
||||||
|
2. Instantiate a Text node with parameter value set to text_b
|
||||||
|
3. Instantiate a Concat node with no parameters
|
||||||
|
4. Instantiate an Output node
|
||||||
|
5. Connect output port 'value' of first Text node to input port 'a' of Concat node
|
||||||
|
6. Connect output port 'value' of second Text node to input port 'b' of Concat node
|
||||||
|
7. Connect output port 'value' of Concat node to input port 'value' of Output node
|
||||||
|
8. Execute graph by cooking the Output node's 'value' port to obtain result
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
|
||||||
|
- text_a (string)
|
||||||
|
- text_b (string)
|
||||||
|
|
||||||
|
## Outputs
|
||||||
|
|
||||||
|
- concatenated_text (string)
|
||||||
|
|
||||||
|
## Failure Modes
|
||||||
|
|
||||||
|
- One or both text inputs missing or non-string
|
||||||
|
- Invalid node connections (port mismatch)
|
||||||
|
- Runtime error during graph execution
|
||||||
|
|
||||||
|
## Source
|
||||||
|
|
||||||
|
Extracted from: [https://github.com/temiroff/Blacknode.git](https://github.com/temiroff/Blacknode.git)
|
||||||
|
Confidence: 0.95
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# Commands: text-concatenation-pipeline
|
||||||
|
|
||||||
|
## Available Commands
|
||||||
|
|
||||||
|
- `/skill text-concatenation-pipeline` — Load this skill
|
||||||
|
- `/run text-concatenation-pipeline` — Execute workflow
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# Examples: text-concatenation-pipeline
|
||||||
|
|
||||||
|
## Usage Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
# How to use this skill
|
||||||
|
# Inputs: text_a (string), text_b (string)
|
||||||
|
# Process: Instantiate a Text node with parameter value set to text_a → Instantiate a Text node with parameter value set to text_b → Instantiate a Concat node with no parameters
|
||||||
|
# Outputs: concatenated_text (string)
|
||||||
|
```
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"name": "text-concatenation-pipeline",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"goal": "Combine two text inputs into a single output string using a Blacknode node graph.",
|
||||||
|
"inputs": [
|
||||||
|
"text_a (string)",
|
||||||
|
"text_b (string)"
|
||||||
|
],
|
||||||
|
"steps": [
|
||||||
|
"Instantiate a Text node with parameter value set to text_a",
|
||||||
|
"Instantiate a Text node with parameter value set to text_b",
|
||||||
|
"Instantiate a Concat node with no parameters",
|
||||||
|
"Instantiate an Output node",
|
||||||
|
"Connect output port 'value' of first Text node to input port 'a' of Concat node",
|
||||||
|
"Connect output port 'value' of second Text node to input port 'b' of Concat node",
|
||||||
|
"Connect output port 'value' of Concat node to input port 'value' of Output node",
|
||||||
|
"Execute graph by cooking the Output node's 'value' port to obtain result"
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
"concatenated_text (string)"
|
||||||
|
],
|
||||||
|
"failure_modes": [
|
||||||
|
"One or both text inputs missing or non-string",
|
||||||
|
"Invalid node connections (port mismatch)",
|
||||||
|
"Runtime error during graph execution"
|
||||||
|
],
|
||||||
|
"confidence": 0.95,
|
||||||
|
"explanation": "Extracted from examples/converted_text_pipeline.py and referenced templates/text-pipeline.json in the Blacknode repository. The workflow is a basic reusable pattern for string concatenation using the visual node editor's graph model.",
|
||||||
|
"source_repo": "https://github.com/temiroff/Blacknode.git",
|
||||||
|
"score": 1.0
|
||||||
|
}
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
# Tests: conditional-request-routing-workflow
|
# Tests: text-concatenation-pipeline
|
||||||
|
|
||||||
## Test Checklist
|
## Test Checklist
|
||||||
|
|
||||||
Reference in New Issue
Block a user