forked from lastmile-ai/mcp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAgent_Execution_Workflow_Engine.json
More file actions
138 lines (138 loc) · 6.29 KB
/
Agent_Execution_Workflow_Engine.json
File metadata and controls
138 lines (138 loc) · 6.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"description": "Abstract Components Overview",
"components": [
{
"name": "Execution Engine",
"description": "This is the core component responsible for the actual execution of tasks and activities. It provides an abstract interface (Executor) for running executable units, with concrete implementations like AsyncioExecutor for immediate asynchronous execution and TemporalExecutor for durable, long-running workflows. It manages the runtime environment for tasks and orchestrates their execution flow.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent/executor/executor.py",
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/executor/executor.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent/executor/temporal/TemporalExecutor.py",
"reference_file": "mcp_agent/executor/temporal/TemporalExecutor.py",
"reference_start_line": 0,
"reference_end_line": 0
}
]
},
{
"name": "Workflow Management",
"description": "This component defines the structure, state, and lifecycle of complex, multi-step processes. It provides the Workflow abstraction, allowing for the definition of sequences of tasks and decision points. InteractiveWorkflow specifically handles scenarios requiring human input or external interaction, enabling robust and adaptable agent workflows.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent/executor/workflow.py",
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/executor/workflow.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent/executor/temporal/interactive_workflow.py",
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/executor/temporal/interactive_workflow.py",
"reference_start_line": 0,
"reference_end_line": 0
}
]
},
{
"name": "Task/Activity Registry",
"description": "A centralized repository that allows for the registration and dynamic retrieval of executable tasks or \"activities.\" This component is crucial for the Execution Engine to discover and invoke the specific functions or methods that constitute an agent's capabilities or a workflow's steps. It promotes modularity by decoupling task definition from task execution.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent/executor/task_registry.py",
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/executor/task_registry.py",
"reference_start_line": 0,
"reference_end_line": 0
}
]
},
{
"name": "Signal Handling",
"description": "This component provides a robust mechanism for inter-component communication and handling external events, including human input. It enables workflows and tasks to asynchronously wait for, send, and receive signals, which is vital for interactive processes, state transitions, and coordination within the agent system. It includes a registry for managing various signal handlers.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent/executor/signal_registry.py",
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/executor/signal_registry.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent/executor/workflow_signal.py",
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/executor/workflow_signal.py",
"reference_start_line": 0,
"reference_end_line": 0
}
]
},
{
"name": "Decorator Registry",
"description": "This component serves as a dedicated registry for managing decorators that can be applied to tasks or workflows. It facilitates the application of cross-cutting concerns (e.g., logging, error handling, retry mechanisms, authentication) in a declarative manner, enhancing the extensibility and maintainability of the executable units without modifying their core logic.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent/executor/decorator_registry.py",
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/executor/decorator_registry.py",
"reference_start_line": 0,
"reference_end_line": 0
}
]
},
{
"name": "Workflow Registry",
"description": "This component is responsible for registering and providing access to defined workflow blueprints. It allows the system to dynamically discover and instantiate workflows based on their unique identifiers, supporting different underlying storage or persistence mechanisms (e.g., in-memory for transient workflows, Temporal for durable workflows).",
"referenced_source_code": [
{
"qualified_name": "mcp_agent/executor/workflow_registry.py",
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/executor/workflow_registry.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent/executor/temporal/workflow_registry.py",
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/executor/temporal/workflow_registry.py",
"reference_start_line": 0,
"reference_end_line": 0
}
]
}
],
"components_relations": [
{
"relation": "uses",
"src_name": "Execution Engine",
"dst_name": "Task/Activity Registry"
},
{
"relation": "uses",
"src_name": "Execution Engine",
"dst_name": "Workflow Management"
},
{
"relation": "uses",
"src_name": "Execution Engine",
"dst_name": "Signal Handling"
},
{
"relation": "uses",
"src_name": "Execution Engine",
"dst_name": "Workflow Registry"
},
{
"relation": "interacts with",
"src_name": "Workflow Management",
"dst_name": "Signal Handling"
},
{
"relation": "registers with",
"src_name": "Workflow Management",
"dst_name": "Workflow Registry"
},
{
"relation": "potentially uses",
"src_name": "Execution Engine",
"dst_name": "Decorator Registry"
}
]
}