Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 179babea68 |
@@ -1,73 +0,0 @@
|
|||||||
---
|
|
||||||
name: conditional-input-routing
|
|
||||||
version: 1.0.0
|
|
||||||
description: Collect user input, classify or branch on its content, and route to appropriate
|
|
||||||
success or failure handling paths to produce a final result
|
|
||||||
inputs:
|
|
||||||
- name: request
|
|
||||||
type: string
|
|
||||||
description: User-provided input or request to be evaluated
|
|
||||||
steps:
|
|
||||||
- name: Start
|
|
||||||
action: input agent captures initial request into state
|
|
||||||
agent_type: input
|
|
||||||
output_field: request
|
|
||||||
- name: Classify
|
|
||||||
action: branching agent evaluates request and routes to next_node or on_failure
|
|
||||||
agent_type: branching
|
|
||||||
input_fields: request
|
|
||||||
output_field: decision
|
|
||||||
next_node: Approve
|
|
||||||
on_failure: Reject
|
|
||||||
- name: Approve
|
|
||||||
action: default agent processes approved request and sets result
|
|
||||||
agent_type: default
|
|
||||||
input_fields: request
|
|
||||||
output_field: result
|
|
||||||
prompt: 'Request approved: {request}'
|
|
||||||
- name: Reject
|
|
||||||
action: default agent processes rejected request and sets result
|
|
||||||
agent_type: default
|
|
||||||
input_fields: request
|
|
||||||
output_field: result
|
|
||||||
prompt: 'Request rejected: {request}'
|
|
||||||
outputs:
|
|
||||||
- name: result
|
|
||||||
type: string
|
|
||||||
description: Final output from either the approve or reject branch
|
|
||||||
tags: []
|
|
||||||
metadata:
|
|
||||||
source_repo: https://github.com/jwwelbor/AgentMap.git
|
|
||||||
extracted_at: ''
|
|
||||||
confidence: 0.9
|
|
||||||
---
|
|
||||||
|
|
||||||
# conditional-input-routing
|
|
||||||
|
|
||||||
Collect user input, classify or branch on its content, and route to appropriate success or failure handling paths to produce a final result
|
|
||||||
|
|
||||||
## Steps
|
|
||||||
|
|
||||||
1. {'name': 'Start', 'action': 'input agent captures initial request into state', 'agent_type': 'input', 'output_field': 'request'}
|
|
||||||
2. {'name': 'Classify', 'action': 'branching agent evaluates request and routes to next_node or on_failure', 'agent_type': 'branching', 'input_fields': 'request', 'output_field': 'decision', 'next_node': 'Approve', 'on_failure': 'Reject'}
|
|
||||||
3. {'name': 'Approve', 'action': 'default agent processes approved request and sets result', 'agent_type': 'default', 'input_fields': 'request', 'output_field': 'result', 'prompt': 'Request approved: {request}'}
|
|
||||||
4. {'name': 'Reject', 'action': 'default agent processes rejected request and sets result', 'agent_type': 'default', 'input_fields': 'request', 'output_field': 'result', 'prompt': 'Request rejected: {request}'}
|
|
||||||
|
|
||||||
## Inputs
|
|
||||||
|
|
||||||
- {'name': 'request', 'type': 'string', 'description': 'User-provided input or request to be evaluated'}
|
|
||||||
|
|
||||||
## Outputs
|
|
||||||
|
|
||||||
- {'name': 'result', 'type': 'string', 'description': 'Final output from either the approve or reject branch'}
|
|
||||||
|
|
||||||
## Failure Modes
|
|
||||||
|
|
||||||
- Input node fails to capture request (handled by on_failure if defined)
|
|
||||||
- Branching condition not met and no on_failure path defined
|
|
||||||
- Missing input_fields in state causing agent execution error
|
|
||||||
|
|
||||||
## Source
|
|
||||||
|
|
||||||
Extracted from: [https://github.com/jwwelbor/AgentMap.git](https://github.com/jwwelbor/AgentMap.git)
|
|
||||||
Confidence: 0.9
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Commands: conditional-input-routing
|
|
||||||
|
|
||||||
## Available Commands
|
|
||||||
|
|
||||||
- `/skill conditional-input-routing` — Load this skill
|
|
||||||
- `/run conditional-input-routing` — Execute workflow
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# Examples: conditional-input-routing
|
|
||||||
|
|
||||||
## Usage Example
|
|
||||||
|
|
||||||
```python
|
|
||||||
# How to use this skill
|
|
||||||
# Inputs: {'name': 'request', 'type': 'string', 'description': 'User-provided input or request to be evaluated'}
|
|
||||||
# Process: {'name': 'Start', 'action': 'input agent captures initial request into state', 'agent_type': 'input', 'output_field': 'request'} → {'name': 'Classify', 'action': 'branching agent evaluates request and routes to next_node or on_failure', 'agent_type': 'branching', 'input_fields': 'request', 'output_field': 'decision', 'next_node': 'Approve', 'on_failure': 'Reject'} → {'name': 'Approve', 'action': 'default agent processes approved request and sets result', 'agent_type': 'default', 'input_fields': 'request', 'output_field': 'result', 'prompt': 'Request approved: {request}'}
|
|
||||||
# Outputs: {'name': 'result', 'type': 'string', 'description': 'Final output from either the approve or reject branch'}
|
|
||||||
```
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "conditional-input-routing",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"goal": "Collect user input, classify or branch on its content, and route to appropriate success or failure handling paths to produce a final result",
|
|
||||||
"inputs": [
|
|
||||||
{
|
|
||||||
"name": "request",
|
|
||||||
"type": "string",
|
|
||||||
"description": "User-provided input or request to be evaluated"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"name": "Start",
|
|
||||||
"action": "input agent captures initial request into state",
|
|
||||||
"agent_type": "input",
|
|
||||||
"output_field": "request"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Classify",
|
|
||||||
"action": "branching agent evaluates request and routes to next_node or on_failure",
|
|
||||||
"agent_type": "branching",
|
|
||||||
"input_fields": "request",
|
|
||||||
"output_field": "decision",
|
|
||||||
"next_node": "Approve",
|
|
||||||
"on_failure": "Reject"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Approve",
|
|
||||||
"action": "default agent processes approved request and sets result",
|
|
||||||
"agent_type": "default",
|
|
||||||
"input_fields": "request",
|
|
||||||
"output_field": "result",
|
|
||||||
"prompt": "Request approved: {request}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Reject",
|
|
||||||
"action": "default agent processes rejected request and sets result",
|
|
||||||
"agent_type": "default",
|
|
||||||
"input_fields": "request",
|
|
||||||
"output_field": "result",
|
|
||||||
"prompt": "Request rejected: {request}"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"name": "result",
|
|
||||||
"type": "string",
|
|
||||||
"description": "Final output from either the approve or reject branch"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"failure_modes": [
|
|
||||||
"Input node fails to capture request (handled by on_failure if defined)",
|
|
||||||
"Branching condition not met and no on_failure path defined",
|
|
||||||
"Missing input_fields in state causing agent execution error"
|
|
||||||
],
|
|
||||||
"confidence": 0.9,
|
|
||||||
"explanation": "Extracted from AgentMap's documented conditional workflow example (ReviewFlow). This CSV-declared pattern of input to branching to dual-path handling is reusable for any approval, triage, or routing scenario without writing orchestration code.",
|
|
||||||
"source_repo": "https://github.com/jwwelbor/AgentMap.git",
|
|
||||||
"score": 1.0
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
---
|
||||||
|
name: conditional-review-workflow
|
||||||
|
version: 1.0.0
|
||||||
|
description: Process a user request through branching logic to approve or reject it,
|
||||||
|
producing a routed decision result
|
||||||
|
inputs:
|
||||||
|
- 'request: string - The user''s request or input collected at runtime via the input
|
||||||
|
agent'
|
||||||
|
steps:
|
||||||
|
- 'Start: Input agent collects the user request and stores it in the ''request'' state
|
||||||
|
field, then routes to Classify node'
|
||||||
|
- 'Classify: Branching agent evaluates the ''request'' field and routes to Approve
|
||||||
|
node on success or Reject node on failure (on_failure)'
|
||||||
|
- 'Approve: Default agent formats an approval message using the request and stores
|
||||||
|
it in the ''result'' output field'
|
||||||
|
- 'Reject: Default agent formats a rejection message using the request and stores
|
||||||
|
it in the ''result'' output field'
|
||||||
|
outputs:
|
||||||
|
- 'result: string - Final message indicating whether the request was approved or rejected,
|
||||||
|
containing the original request'
|
||||||
|
tags: []
|
||||||
|
metadata:
|
||||||
|
source_repo: https://github.com/jwwelbor/AgentMap.git
|
||||||
|
extracted_at: ''
|
||||||
|
confidence: 0.85
|
||||||
|
---
|
||||||
|
|
||||||
|
# conditional-review-workflow
|
||||||
|
|
||||||
|
Process a user request through branching logic to approve or reject it, producing a routed decision result
|
||||||
|
|
||||||
|
## Steps
|
||||||
|
|
||||||
|
1. Start: Input agent collects the user request and stores it in the 'request' state field, then routes to Classify node
|
||||||
|
2. Classify: Branching agent evaluates the 'request' field and routes to Approve node on success or Reject node on failure (on_failure)
|
||||||
|
3. Approve: Default agent formats an approval message using the request and stores it in the 'result' output field
|
||||||
|
4. Reject: Default agent formats a rejection message using the request and stores it in the 'result' output field
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
|
||||||
|
- request: string - The user's request or input collected at runtime via the input agent
|
||||||
|
|
||||||
|
## Outputs
|
||||||
|
|
||||||
|
- result: string - Final message indicating whether the request was approved or rejected, containing the original request
|
||||||
|
|
||||||
|
## Failure Modes
|
||||||
|
|
||||||
|
- Input collection failure - user provides no or invalid input (no explicit on_failure defined for Start node in example)
|
||||||
|
- Branching classification failure - if branching agent cannot evaluate, it routes to Reject via on_failure configuration
|
||||||
|
- LLM provider unavailability - if branching or agents rely on LLM backends that are misconfigured or offline
|
||||||
|
|
||||||
|
## Source
|
||||||
|
|
||||||
|
Extracted from: [https://github.com/jwwelbor/AgentMap.git](https://github.com/jwwelbor/AgentMap.git)
|
||||||
|
Confidence: 0.85
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# Commands: conditional-review-workflow
|
||||||
|
|
||||||
|
## Available Commands
|
||||||
|
|
||||||
|
- `/skill conditional-review-workflow` — Load this skill
|
||||||
|
- `/run conditional-review-workflow` — Execute workflow
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# Examples: conditional-review-workflow
|
||||||
|
|
||||||
|
## Usage Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
# How to use this skill
|
||||||
|
# Inputs: request: string - The user's request or input collected at runtime via the input agent
|
||||||
|
# Process: Start: Input agent collects the user request and stores it in the 'request' state field, then routes to Classify node → Classify: Branching agent evaluates the 'request' field and routes to Approve node on success or Reject node on failure (on_failure) → Approve: Default agent formats an approval message using the request and stores it in the 'result' output field
|
||||||
|
# Outputs: result: string - Final message indicating whether the request was approved or rejected, containing the original request
|
||||||
|
```
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"name": "conditional-review-workflow",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"goal": "Process a user request through branching logic to approve or reject it, producing a routed decision result",
|
||||||
|
"inputs": [
|
||||||
|
"request: string - The user's request or input collected at runtime via the input agent"
|
||||||
|
],
|
||||||
|
"steps": [
|
||||||
|
"Start: Input agent collects the user request and stores it in the 'request' state field, then routes to Classify node",
|
||||||
|
"Classify: Branching agent evaluates the 'request' field and routes to Approve node on success or Reject node on failure (on_failure)",
|
||||||
|
"Approve: Default agent formats an approval message using the request and stores it in the 'result' output field",
|
||||||
|
"Reject: Default agent formats a rejection message using the request and stores it in the 'result' output field"
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
"result: string - Final message indicating whether the request was approved or rejected, containing the original request"
|
||||||
|
],
|
||||||
|
"failure_modes": [
|
||||||
|
"Input collection failure - user provides no or invalid input (no explicit on_failure defined for Start node in example)",
|
||||||
|
"Branching classification failure - if branching agent cannot evaluate, it routes to Reject via on_failure configuration",
|
||||||
|
"LLM provider unavailability - if branching or agents rely on LLM backends that are misconfigured or offline"
|
||||||
|
],
|
||||||
|
"confidence": 0.85,
|
||||||
|
"explanation": "Extracted from AgentMap's documented CSV workflow example (ReviewFlow). This is a reusable conditional routing pattern that can be adapted for any approval/rejection, triage, or binary-decision scenario by modifying the branching prompt and agent types. The CSV-based declarative format makes it portable across the AgentMap framework.",
|
||||||
|
"source_repo": "https://github.com/jwwelbor/AgentMap.git",
|
||||||
|
"score": 1.0
|
||||||
|
}
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
# Tests: conditional-input-routing
|
# Tests: conditional-review-workflow
|
||||||
|
|
||||||
## Test Checklist
|
## Test Checklist
|
||||||
|
|
||||||
Reference in New Issue
Block a user