You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/examples/04-dynamic-workflow-processor.ts
+17-12Lines changed: 17 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,8 @@ export const server = await mcpc(
34
34
// No predefined steps - will generate dynamically at runtime
35
35
},
36
36
37
-
description: `**Objective:** Process and analyze documents through a dynamically generated workflow that adapts to document type and processing requirements.
37
+
description:
38
+
`**Objective:** Process and analyze documents through a dynamically generated workflow that adapts to document type and processing requirements.
38
39
39
40
**Dynamic Workflow Generation:**
40
41
I analyze each document processing request and dynamically create an optimal workflow with these potential phases:
@@ -165,18 +166,21 @@ The exact workflow steps will be generated dynamically based on the specific doc
165
166
is_supported: isSupported,
166
167
format_matches: formatMatch,
167
168
supported_formats: supportedFormats,
168
-
validation_result:
169
-
isSupported&&formatMatch ? "VALID" : "INVALID",
169
+
validation_result: isSupported&&formatMatch
170
+
? "VALID"
171
+
: "INVALID",
170
172
recommendations: !isSupported
171
-
? `Format '${extension}' is not supported. Supported formats: ${supportedFormats.join(
172
-
", "
173
-
)}`
173
+
? `Format '${extension}' is not supported. Supported formats: ${
// No predefined steps - will generate dynamically at runtime
28
28
},
29
29
30
-
description: `**Objective:** Process and analyze documents through a dynamically generated workflow that adapts to document type and processing requirements.
30
+
description:
31
+
`**Objective:** Process and analyze documents through a dynamically generated workflow that adapts to document type and processing requirements.
31
32
32
33
**Dynamic Workflow Generation:**
33
34
I analyze each document processing request and dynamically create an optimal workflow with these potential phases:
@@ -168,18 +169,21 @@ export const server = await mcpc(
168
169
is_supported: isSupported,
169
170
format_matches: formatMatch,
170
171
supported_formats: supportedFormats,
171
-
validation_result:
172
-
isSupported&&formatMatch ? "VALID" : "INVALID",
172
+
validation_result: isSupported&&formatMatch
173
+
? "VALID"
174
+
: "INVALID",
173
175
recommendations: !isSupported
174
-
? `Format '${extension}' is not supported. Supported formats: ${supportedFormats.join(
175
-
", "
176
-
)}`
176
+
? `Format '${extension}' is not supported. Supported formats: ${
0 commit comments