@graph-compose/core 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +323 -0
  2. package/dist/index.d.ts +6 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +24 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/tsconfig.tsbuildinfo +1 -0
  7. package/dist/types/behaviors/conditions.d.ts +54 -0
  8. package/dist/types/behaviors/conditions.d.ts.map +1 -0
  9. package/dist/types/behaviors/conditions.js +103 -0
  10. package/dist/types/behaviors/conditions.js.map +1 -0
  11. package/dist/types/behaviors/index.d.ts +3 -0
  12. package/dist/types/behaviors/index.d.ts.map +1 -0
  13. package/dist/types/behaviors/index.js +19 -0
  14. package/dist/types/behaviors/index.js.map +1 -0
  15. package/dist/types/behaviors/notifications.d.ts +157 -0
  16. package/dist/types/behaviors/notifications.d.ts.map +1 -0
  17. package/dist/types/behaviors/notifications.js +89 -0
  18. package/dist/types/behaviors/notifications.js.map +1 -0
  19. package/dist/types/config/activity.d.ts +58 -0
  20. package/dist/types/config/activity.d.ts.map +1 -0
  21. package/dist/types/config/activity.js +53 -0
  22. package/dist/types/config/activity.js.map +1 -0
  23. package/dist/types/config/http.d.ts +20 -0
  24. package/dist/types/config/http.d.ts.map +1 -0
  25. package/dist/types/config/http.js +66 -0
  26. package/dist/types/config/http.js.map +1 -0
  27. package/dist/types/config/index.d.ts +5 -0
  28. package/dist/types/config/index.d.ts.map +1 -0
  29. package/dist/types/config/index.js +21 -0
  30. package/dist/types/config/index.js.map +1 -0
  31. package/dist/types/config/protocols.d.ts +3 -0
  32. package/dist/types/config/protocols.d.ts.map +1 -0
  33. package/dist/types/config/protocols.js +14 -0
  34. package/dist/types/config/protocols.js.map +1 -0
  35. package/dist/types/config/workflow.d.ts +10 -0
  36. package/dist/types/config/workflow.d.ts.map +1 -0
  37. package/dist/types/config/workflow.js +12 -0
  38. package/dist/types/config/workflow.js.map +1 -0
  39. package/dist/types/context/index.d.ts +4 -0
  40. package/dist/types/context/index.d.ts.map +1 -0
  41. package/dist/types/context/index.js +8 -0
  42. package/dist/types/context/index.js.map +1 -0
  43. package/dist/types/contracts/agents.d.ts +87 -0
  44. package/dist/types/contracts/agents.d.ts.map +1 -0
  45. package/dist/types/contracts/agents.js +94 -0
  46. package/dist/types/contracts/agents.js.map +1 -0
  47. package/dist/types/contracts/index.d.ts +3 -0
  48. package/dist/types/contracts/index.d.ts.map +1 -0
  49. package/dist/types/contracts/index.js +19 -0
  50. package/dist/types/contracts/index.js.map +1 -0
  51. package/dist/types/contracts/tools.d.ts +72 -0
  52. package/dist/types/contracts/tools.d.ts.map +1 -0
  53. package/dist/types/contracts/tools.js +101 -0
  54. package/dist/types/contracts/tools.js.map +1 -0
  55. package/dist/types/index.d.ts +10 -0
  56. package/dist/types/index.d.ts.map +1 -0
  57. package/dist/types/index.js +26 -0
  58. package/dist/types/index.js.map +1 -0
  59. package/dist/types/nodes/agents.d.ts +149 -0
  60. package/dist/types/nodes/agents.d.ts.map +1 -0
  61. package/dist/types/nodes/agents.js +48 -0
  62. package/dist/types/nodes/agents.js.map +1 -0
  63. package/dist/types/nodes/common/base-node-schema.d.ts +109 -0
  64. package/dist/types/nodes/common/base-node-schema.d.ts.map +1 -0
  65. package/dist/types/nodes/common/base-node-schema.js +55 -0
  66. package/dist/types/nodes/common/base-node-schema.js.map +1 -0
  67. package/dist/types/nodes/common/index.d.ts +2 -0
  68. package/dist/types/nodes/common/index.d.ts.map +1 -0
  69. package/dist/types/nodes/common/index.js +18 -0
  70. package/dist/types/nodes/common/index.js.map +1 -0
  71. package/dist/types/nodes/destination.d.ts +148 -0
  72. package/dist/types/nodes/destination.d.ts.map +1 -0
  73. package/dist/types/nodes/destination.js +30 -0
  74. package/dist/types/nodes/destination.js.map +1 -0
  75. package/dist/types/nodes/error-boundary.d.ts +126 -0
  76. package/dist/types/nodes/error-boundary.d.ts.map +1 -0
  77. package/dist/types/nodes/error-boundary.js +24 -0
  78. package/dist/types/nodes/error-boundary.js.map +1 -0
  79. package/dist/types/nodes/http.d.ts +194 -0
  80. package/dist/types/nodes/http.d.ts.map +1 -0
  81. package/dist/types/nodes/http.js +28 -0
  82. package/dist/types/nodes/http.js.map +1 -0
  83. package/dist/types/nodes/index.d.ts +734 -0
  84. package/dist/types/nodes/index.d.ts.map +1 -0
  85. package/dist/types/nodes/index.js +48 -0
  86. package/dist/types/nodes/index.js.map +1 -0
  87. package/dist/types/nodes/iterator.d.ts +126 -0
  88. package/dist/types/nodes/iterator.d.ts.map +1 -0
  89. package/dist/types/nodes/iterator.js +21 -0
  90. package/dist/types/nodes/iterator.js.map +1 -0
  91. package/dist/types/nodes/tools.d.ts +1321 -0
  92. package/dist/types/nodes/tools.d.ts.map +1 -0
  93. package/dist/types/nodes/tools.js +65 -0
  94. package/dist/types/nodes/tools.js.map +1 -0
  95. package/dist/types/primitives/index.d.ts +2 -0
  96. package/dist/types/primitives/index.d.ts.map +1 -0
  97. package/dist/types/primitives/index.js +18 -0
  98. package/dist/types/primitives/index.js.map +1 -0
  99. package/dist/types/primitives/shared.d.ts +21 -0
  100. package/dist/types/primitives/shared.d.ts.map +1 -0
  101. package/dist/types/primitives/shared.js +113 -0
  102. package/dist/types/primitives/shared.js.map +1 -0
  103. package/dist/types/results/agent.d.ts +156 -0
  104. package/dist/types/results/agent.d.ts.map +1 -0
  105. package/dist/types/results/agent.js +54 -0
  106. package/dist/types/results/agent.js.map +1 -0
  107. package/dist/types/results/base.d.ts +4 -0
  108. package/dist/types/results/base.d.ts.map +1 -0
  109. package/dist/types/results/base.js +12 -0
  110. package/dist/types/results/base.js.map +1 -0
  111. package/dist/types/results/index.d.ts +7 -0
  112. package/dist/types/results/index.d.ts.map +1 -0
  113. package/dist/types/results/index.js +23 -0
  114. package/dist/types/results/index.js.map +1 -0
  115. package/dist/types/results/node.d.ts +38 -0
  116. package/dist/types/results/node.d.ts.map +1 -0
  117. package/dist/types/results/node.js +26 -0
  118. package/dist/types/results/node.js.map +1 -0
  119. package/dist/types/results/shared.d.ts +36 -0
  120. package/dist/types/results/shared.d.ts.map +1 -0
  121. package/dist/types/results/shared.js +31 -0
  122. package/dist/types/results/shared.js.map +1 -0
  123. package/dist/types/results/source.d.ts +53 -0
  124. package/dist/types/results/source.d.ts.map +1 -0
  125. package/dist/types/results/source.js +64 -0
  126. package/dist/types/results/source.js.map +1 -0
  127. package/dist/types/results/tool.d.ts +170 -0
  128. package/dist/types/results/tool.d.ts.map +1 -0
  129. package/dist/types/results/tool.js +110 -0
  130. package/dist/types/results/tool.js.map +1 -0
  131. package/dist/types/state/index.d.ts +2 -0
  132. package/dist/types/state/index.d.ts.map +1 -0
  133. package/dist/types/state/index.js +18 -0
  134. package/dist/types/state/index.js.map +1 -0
  135. package/dist/types/state/workflow-state.d.ts +63 -0
  136. package/dist/types/state/workflow-state.d.ts.map +1 -0
  137. package/dist/types/state/workflow-state.js +52 -0
  138. package/dist/types/state/workflow-state.js.map +1 -0
  139. package/dist/types/validation/schema.d.ts +14 -0
  140. package/dist/types/validation/schema.d.ts.map +1 -0
  141. package/dist/types/validation/schema.js +37 -0
  142. package/dist/types/validation/schema.js.map +1 -0
  143. package/dist/types/workflow.d.ts +2179 -0
  144. package/dist/types/workflow.d.ts.map +1 -0
  145. package/dist/types/workflow.js +132 -0
  146. package/dist/types/workflow.js.map +1 -0
  147. package/dist/utils/index.d.ts +2 -0
  148. package/dist/utils/index.d.ts.map +1 -0
  149. package/dist/utils/index.js +18 -0
  150. package/dist/utils/index.js.map +1 -0
  151. package/dist/utils/template/index.d.ts +39 -0
  152. package/dist/utils/template/index.d.ts.map +1 -0
  153. package/dist/utils/template/index.js +151 -0
  154. package/dist/utils/template/index.js.map +1 -0
  155. package/package.json +73 -0
@@ -0,0 +1,87 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * This is the response that the agent must use in order to use a tool.
4
+ */
5
+ export declare const AgentToolUsageSchema: z.ZodObject<{
6
+ /** Indicates this is a tool usage action */
7
+ type: z.ZodLiteral<"tool">;
8
+ /** ID of the tool to use */
9
+ toolId: z.ZodString;
10
+ /** Configuration for the tool execution */
11
+ toolPayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: "tool";
14
+ toolId: string;
15
+ toolPayload: Record<string, unknown>;
16
+ }, {
17
+ type: "tool";
18
+ toolId: string;
19
+ toolPayload: Record<string, unknown>;
20
+ }>;
21
+ /**
22
+ * This is the response that an agent must send in order to end the current agent flow.
23
+ */
24
+ export declare const AgentCompletionResponseSchema: z.ZodObject<{
25
+ /** Indicates this is the final action */
26
+ type: z.ZodLiteral<"complete">;
27
+ /** Final output from the agent */
28
+ final_result: z.ZodAny;
29
+ }, "strip", z.ZodTypeAny, {
30
+ type: "complete";
31
+ final_result?: any;
32
+ }, {
33
+ type: "complete";
34
+ final_result?: any;
35
+ }>;
36
+ export declare const AgentResponseSchema: z.ZodObject<{
37
+ /** The next action the agent wants to take */
38
+ next_action: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
39
+ /** Indicates this is a tool usage action */
40
+ type: z.ZodLiteral<"tool">;
41
+ /** ID of the tool to use */
42
+ toolId: z.ZodString;
43
+ /** Configuration for the tool execution */
44
+ toolPayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ type: "tool";
47
+ toolId: string;
48
+ toolPayload: Record<string, unknown>;
49
+ }, {
50
+ type: "tool";
51
+ toolId: string;
52
+ toolPayload: Record<string, unknown>;
53
+ }>, z.ZodObject<{
54
+ /** Indicates this is the final action */
55
+ type: z.ZodLiteral<"complete">;
56
+ /** Final output from the agent */
57
+ final_result: z.ZodAny;
58
+ }, "strip", z.ZodTypeAny, {
59
+ type: "complete";
60
+ final_result?: any;
61
+ }, {
62
+ type: "complete";
63
+ final_result?: any;
64
+ }>]>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ next_action: {
67
+ type: "tool";
68
+ toolId: string;
69
+ toolPayload: Record<string, unknown>;
70
+ } | {
71
+ type: "complete";
72
+ final_result?: any;
73
+ };
74
+ }, {
75
+ next_action: {
76
+ type: "tool";
77
+ toolId: string;
78
+ toolPayload: Record<string, unknown>;
79
+ } | {
80
+ type: "complete";
81
+ final_result?: any;
82
+ };
83
+ }>;
84
+ export type AgentToolUsageResponse = z.infer<typeof AgentToolUsageSchema>;
85
+ export type AgentCompletionResponse = z.infer<typeof AgentCompletionResponseSchema>;
86
+ export type AgentResponse = z.infer<typeof AgentResponseSchema>;
87
+ //# sourceMappingURL=agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/types/contracts/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,oBAAoB;IAE7B,4CAA4C;;IAK5C,4BAA4B;;IAK5B,2CAA2C;;;;;;;;;;EAqB3C,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,6BAA6B;IAEtC,yCAAyC;;IAMzC,kCAAkC;;;;;;;;EAoBlC,CAAC;AAEL,eAAO,MAAM,mBAAmB;IAE5B,8CAA8C;;QApE9C,4CAA4C;;QAK5C,4BAA4B;;QAK5B,2CAA2C;;;;;;;;;;;QA4B3C,yCAAyC;;QAMzC,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2ClC,CAAC;AAGL,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentResponseSchema = exports.AgentCompletionResponseSchema = exports.AgentToolUsageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * This is the response that the agent must use in order to use a tool.
7
+ */
8
+ exports.AgentToolUsageSchema = zod_1.z
9
+ .object({
10
+ /** Indicates this is a tool usage action */
11
+ type: zod_1.z.literal("tool").openapi({
12
+ description: "Indicates this is a tool usage action",
13
+ example: "tool",
14
+ }),
15
+ /** ID of the tool to use */
16
+ toolId: zod_1.z.string().openapi({
17
+ description: "The ID of the tool to use",
18
+ example: "search",
19
+ }),
20
+ /** Configuration for the tool execution */
21
+ toolPayload: zod_1.z.record(zod_1.z.unknown()).openapi({
22
+ description: "This information will be added to the tool payload and sent to the tool API",
23
+ example: {
24
+ query: "Latest AI frameworks in 2024",
25
+ filters: { date: "2024", category: "machine learning" },
26
+ },
27
+ }),
28
+ })
29
+ .openapi({
30
+ title: "Agent Tool Usage",
31
+ description: "Agent wants to use a tool to gather more information",
32
+ example: {
33
+ type: "tool",
34
+ toolId: "search",
35
+ toolPayload: {
36
+ query: "Latest AI frameworks in 2024",
37
+ filters: { date: "2024", category: "machine learning" },
38
+ },
39
+ },
40
+ });
41
+ /**
42
+ * This is the response that an agent must send in order to end the current agent flow.
43
+ */
44
+ exports.AgentCompletionResponseSchema = zod_1.z
45
+ .object({
46
+ /** Indicates this is the final action */
47
+ type: zod_1.z.literal("complete").openapi({
48
+ description: "Indicates this is the final action, and the workflow can continue to other nodes",
49
+ example: "complete",
50
+ }),
51
+ /** Final output from the agent */
52
+ final_result: zod_1.z.any().openapi({
53
+ description: "The final output from the agent",
54
+ example: {
55
+ recommendation: "PyTorch 2.0 shows significant improvements...",
56
+ confidence: 0.95,
57
+ },
58
+ }),
59
+ })
60
+ .openapi({
61
+ title: "Agent Completion",
62
+ description: "Agent has completed its task and is returning final results",
63
+ example: {
64
+ type: "complete",
65
+ final_result: {
66
+ recommendation: "PyTorch 2.0 shows significant improvements...",
67
+ confidence: 0.95,
68
+ },
69
+ },
70
+ "x-tags": ["Agents"],
71
+ });
72
+ exports.AgentResponseSchema = zod_1.z
73
+ .object({
74
+ /** The next action the agent wants to take */
75
+ next_action: zod_1.z.discriminatedUnion("type", [
76
+ exports.AgentToolUsageSchema,
77
+ exports.AgentCompletionResponseSchema,
78
+ ]),
79
+ })
80
+ .openapi({
81
+ title: "Agent Response",
82
+ description: "Response from an agent indicating what it wants to do next",
83
+ example: {
84
+ next_action: {
85
+ type: "tool",
86
+ toolId: "search",
87
+ toolPayload: {
88
+ query: "Latest AI frameworks in 2024",
89
+ filters: { date: "2024" },
90
+ },
91
+ },
92
+ },
93
+ });
94
+ //# sourceMappingURL=agents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/types/contracts/agents.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,oBAAoB,GAAG,OAAC;KAClC,MAAM,CAAC;IACN,4CAA4C;IAC5C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;QAC9B,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,MAAM;KAChB,CAAC;IACF,4BAA4B;IAC5B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QACzB,WAAW,EAAE,2BAA2B;QACxC,OAAO,EAAE,QAAQ;KAClB,CAAC;IACF,2CAA2C;IAC3C,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC;QACzC,WAAW,EACT,6EAA6E;QAC/E,OAAO,EAAE;YACP,KAAK,EAAE,8BAA8B;YACrC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE;SACxD;KACF,CAAC;CACH,CAAC;KACD,OAAO,CAAC;IACP,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,sDAAsD;IACnE,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;QAChB,WAAW,EAAE;YACX,KAAK,EAAE,8BAA8B;YACrC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE;SACxD;KACF;CACF,CAAC,CAAC;AAEL;;GAEG;AACU,QAAA,6BAA6B,GAAG,OAAC;KAC3C,MAAM,CAAC;IACN,yCAAyC;IACzC,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC;QAClC,WAAW,EACT,kFAAkF;QACpF,OAAO,EAAE,UAAU;KACpB,CAAC;IACF,kCAAkC;IAClC,YAAY,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC;QAC5B,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE;YACP,cAAc,EAAE,+CAA+C;YAC/D,UAAU,EAAE,IAAI;SACjB;KACF,CAAC;CACH,CAAC;KACD,OAAO,CAAC;IACP,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,6DAA6D;IAC1E,OAAO,EAAE;QACP,IAAI,EAAE,UAAU;QAChB,YAAY,EAAE;YACZ,cAAc,EAAE,+CAA+C;YAC/D,UAAU,EAAE,IAAI;SACjB;KACF;IACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;CACrB,CAAC,CAAC;AAEQ,QAAA,mBAAmB,GAAG,OAAC;KACjC,MAAM,CAAC;IACN,8CAA8C;IAC9C,WAAW,EAAE,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;QACxC,4BAAoB;QACpB,qCAA6B;KAC9B,CAAC;CACH,CAAC;KACD,OAAO,CAAC;IACP,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,4DAA4D;IACzE,OAAO,EAAE;QACP,WAAW,EAAE;YACX,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE;gBACX,KAAK,EAAE,8BAA8B;gBACrC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;aAC1B;SACF;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./agents";
2
+ export * from "./tools";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./agents"), exports);
18
+ __exportStar(require("./tools"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
@@ -0,0 +1,72 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Error information returned from a tool execution
4
+ * Note: This is the expected structure in the response body, not the HTTP response itself.
5
+ * When implementing a tool API:
6
+ * 1. Set the appropriate HTTP status code (e.g., res.status(429))
7
+ * 2. Return this error structure in the response body
8
+ */
9
+ export declare const ToolErrorSchema: z.ZodObject<{
10
+ /** HTTP status code or custom error code */
11
+ code: z.ZodNumber;
12
+ /** Human readable error message */
13
+ message: z.ZodString;
14
+ /** Optional detailed error context */
15
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ code: number;
18
+ message: string;
19
+ details?: Record<string, unknown> | undefined;
20
+ }, {
21
+ code: number;
22
+ message: string;
23
+ details?: Record<string, unknown> | undefined;
24
+ }>;
25
+ /**
26
+ * Response payload returned from a tool
27
+ * Note: For error cases:
28
+ * 1. Set the appropriate HTTP status code (e.g., res.status(429))
29
+ * 2. Return { success: false, error: { code: 429, message: "...", details: {...} } }
30
+ */
31
+ export declare const ToolHttpResponseSchema: z.ZodObject<{
32
+ /** Whether the tool execution was successful */
33
+ success: z.ZodBoolean;
34
+ /** The result data from the tool if successful */
35
+ result: z.ZodOptional<z.ZodUnknown>;
36
+ /** Error information if the tool execution failed */
37
+ error: z.ZodOptional<z.ZodObject<{
38
+ /** HTTP status code or custom error code */
39
+ code: z.ZodNumber;
40
+ /** Human readable error message */
41
+ message: z.ZodString;
42
+ /** Optional detailed error context */
43
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ code: number;
46
+ message: string;
47
+ details?: Record<string, unknown> | undefined;
48
+ }, {
49
+ code: number;
50
+ message: string;
51
+ details?: Record<string, unknown> | undefined;
52
+ }>>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ success: boolean;
55
+ result?: unknown;
56
+ error?: {
57
+ code: number;
58
+ message: string;
59
+ details?: Record<string, unknown> | undefined;
60
+ } | undefined;
61
+ }, {
62
+ success: boolean;
63
+ result?: unknown;
64
+ error?: {
65
+ code: number;
66
+ message: string;
67
+ details?: Record<string, unknown> | undefined;
68
+ } | undefined;
69
+ }>;
70
+ export type ToolHttpResponse = z.infer<typeof ToolHttpResponseSchema>;
71
+ export type ToolError = z.infer<typeof ToolErrorSchema>;
72
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/types/contracts/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;IAExB,4CAA4C;;IAM5C,mCAAmC;;IAKnC,sCAAsC;;;;;;;;;;EA4BtC,CAAC;AAEL;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;IACjC,gDAAgD;;IAMhD,kDAAkD;;IAmClD,qDAAqD;;QAzFnD,4CAA4C;;QAM5C,mCAAmC;;QAKnC,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFxC,CAAC;AAGH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ToolHttpResponseSchema = exports.ToolErrorSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * Error information returned from a tool execution
7
+ * Note: This is the expected structure in the response body, not the HTTP response itself.
8
+ * When implementing a tool API:
9
+ * 1. Set the appropriate HTTP status code (e.g., res.status(429))
10
+ * 2. Return this error structure in the response body
11
+ */
12
+ exports.ToolErrorSchema = zod_1.z
13
+ .object({
14
+ /** HTTP status code or custom error code */
15
+ code: zod_1.z.number().openapi({
16
+ description: "Error code (should match the HTTP status code when applicable)",
17
+ example: 429,
18
+ }),
19
+ /** Human readable error message */
20
+ message: zod_1.z.string().openapi({
21
+ description: "Human readable error message",
22
+ example: "Rate limit exceeded - try again in 60 seconds",
23
+ }),
24
+ /** Optional detailed error context */
25
+ details: zod_1.z
26
+ .record(zod_1.z.unknown())
27
+ .optional()
28
+ .openapi({
29
+ description: "Additional error context that may be helpful for the agent or future user of this data.",
30
+ example: {
31
+ retry_after: 60,
32
+ rate_limit: {
33
+ limit: 100,
34
+ remaining: 0,
35
+ reset: 1709544060000,
36
+ },
37
+ },
38
+ }),
39
+ })
40
+ .openapi({
41
+ title: "Tool Error",
42
+ description: "Error information returned in the response body when a tool execution fails. Note: This should be returned along with the appropriate HTTP status code.",
43
+ example: {
44
+ code: 429,
45
+ message: "Rate limit exceeded",
46
+ details: {
47
+ retry_after: 60,
48
+ },
49
+ },
50
+ });
51
+ /**
52
+ * Response payload returned from a tool
53
+ * Note: For error cases:
54
+ * 1. Set the appropriate HTTP status code (e.g., res.status(429))
55
+ * 2. Return { success: false, error: { code: 429, message: "...", details: {...} } }
56
+ */
57
+ exports.ToolHttpResponseSchema = zod_1.z.object({
58
+ /** Whether the tool execution was successful */
59
+ success: zod_1.z.boolean().openapi({
60
+ description: "Indicates if the tool executed successfully. For HTTP errors, this should be false and the error field should be populated",
61
+ example: true,
62
+ }),
63
+ /** The result data from the tool if successful */
64
+ result: zod_1.z
65
+ .unknown()
66
+ .optional()
67
+ .openapi({
68
+ example: {
69
+ query: "Latest developments in AI",
70
+ results: [
71
+ {
72
+ title: "GPT-4 Turbo Released with Enhanced Capabilities",
73
+ snippet: "OpenAI announces GPT-4 Turbo with improved context handling and specialized domain knowledge",
74
+ url: "https://example.com/gpt4-turbo-release",
75
+ date: "2024-03-01",
76
+ source: "AI News Weekly",
77
+ },
78
+ {
79
+ title: "Breakthrough in Computer Vision Models",
80
+ snippet: "Researchers achieve new state-of-the-art performance in object detection with 98% accuracy",
81
+ url: "https://example.com/vision-breakthrough",
82
+ date: "2024-02-28",
83
+ source: "Tech Research Journal",
84
+ },
85
+ ],
86
+ metadata: {
87
+ total_results: 156,
88
+ search_time_ms: 234,
89
+ filters_applied: {
90
+ date_range: "past_month",
91
+ sort: "relevance",
92
+ },
93
+ },
94
+ },
95
+ }),
96
+ /** Error information if the tool execution failed */
97
+ error: exports.ToolErrorSchema.optional().openapi({
98
+ description: "Error information (required if success is false). Should match the HTTP status code when applicable.",
99
+ }),
100
+ });
101
+ //# sourceMappingURL=tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/types/contracts/tools.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;;;;;GAMG;AACU,QAAA,eAAe,GAAG,OAAC;KAC7B,MAAM,CAAC;IACN,4CAA4C;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QACvB,WAAW,EACT,gEAAgE;QAClE,OAAO,EAAE,GAAG;KACb,CAAC;IACF,mCAAmC;IACnC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QAC1B,WAAW,EAAE,8BAA8B;QAC3C,OAAO,EAAE,+CAA+C;KACzD,CAAC;IACF,sCAAsC;IACtC,OAAO,EAAE,OAAC;SACP,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACnB,QAAQ,EAAE;SACV,OAAO,CAAC;QACP,WAAW,EACT,yFAAyF;QAC3F,OAAO,EAAE;YACP,WAAW,EAAE,EAAE;YACf,UAAU,EAAE;gBACV,KAAK,EAAE,GAAG;gBACV,SAAS,EAAE,CAAC;gBACZ,KAAK,EAAE,aAAa;aACrB;SACF;KACF,CAAC;CACL,CAAC;KACD,OAAO,CAAC;IACP,KAAK,EAAE,YAAY;IACnB,WAAW,EACT,yJAAyJ;IAC3J,OAAO,EAAE;QACP,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE;YACP,WAAW,EAAE,EAAE;SAChB;KACF;CACF,CAAC,CAAC;AAEL;;;;;GAKG;AACU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,gDAAgD;IAChD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QAC3B,WAAW,EACT,4HAA4H;QAC9H,OAAO,EAAE,IAAI;KACd,CAAC;IACF,kDAAkD;IAClD,MAAM,EAAE,OAAC;SACN,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,OAAO,CAAC;QACP,OAAO,EAAE;YACP,KAAK,EAAE,2BAA2B;YAClC,OAAO,EAAE;gBACP;oBACE,KAAK,EAAE,iDAAiD;oBACxD,OAAO,EACL,8FAA8F;oBAChG,GAAG,EAAE,wCAAwC;oBAC7C,IAAI,EAAE,YAAY;oBAClB,MAAM,EAAE,gBAAgB;iBACzB;gBACD;oBACE,KAAK,EAAE,wCAAwC;oBAC/C,OAAO,EACL,4FAA4F;oBAC9F,GAAG,EAAE,yCAAyC;oBAC9C,IAAI,EAAE,YAAY;oBAClB,MAAM,EAAE,uBAAuB;iBAChC;aACF;YACD,QAAQ,EAAE;gBACR,aAAa,EAAE,GAAG;gBAClB,cAAc,EAAE,GAAG;gBACnB,eAAe,EAAE;oBACf,UAAU,EAAE,YAAY;oBACxB,IAAI,EAAE,WAAW;iBAClB;aACF;SACF;KACF,CAAC;IACJ,qDAAqD;IACrD,KAAK,EAAE,uBAAe,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QACxC,WAAW,EACT,sGAAsG;KACzG,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from "./behaviors";
2
+ export * from "./config";
3
+ export * from "./context";
4
+ export * from "./contracts";
5
+ export * from "./nodes";
6
+ export * from "./primitives";
7
+ export * from "./results";
8
+ export * from "./state";
9
+ export * from "./workflow";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./behaviors"), exports);
18
+ __exportStar(require("./config"), exports);
19
+ __exportStar(require("./context"), exports);
20
+ __exportStar(require("./contracts"), exports);
21
+ __exportStar(require("./nodes"), exports);
22
+ __exportStar(require("./primitives"), exports);
23
+ __exportStar(require("./results"), exports);
24
+ __exportStar(require("./state"), exports);
25
+ __exportStar(require("./workflow"), exports);
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,2CAAyB;AACzB,4CAA0B;AAC1B,8CAA4B;AAC5B,0CAAwB;AACxB,+CAA6B;AAC7B,4CAA0B;AAC1B,0CAAwB;AACxB,6CAA2B"}
@@ -0,0 +1,149 @@
1
+ import { z } from "zod";
2
+ export declare const AgentNodeSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ iterationContext: z.ZodOptional<z.ZodObject<{
5
+ originalNodeId: z.ZodString;
6
+ iteratorNodeId: z.ZodString;
7
+ index: z.ZodNumber;
8
+ }, "strip", z.ZodTypeAny, {
9
+ originalNodeId: string;
10
+ iteratorNodeId: string;
11
+ index: number;
12
+ }, {
13
+ originalNodeId: string;
14
+ iteratorNodeId: string;
15
+ index: number;
16
+ }>>;
17
+ activityConfig: z.ZodOptional<z.ZodObject<{
18
+ retryPolicy: z.ZodOptional<z.ZodObject<{
19
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
20
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
21
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
22
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ backoffCoefficient?: number | undefined;
25
+ initialInterval?: string | undefined;
26
+ maximumAttempts?: number | undefined;
27
+ maximumInterval?: string | undefined;
28
+ }, {
29
+ backoffCoefficient?: number | undefined;
30
+ initialInterval?: string | undefined;
31
+ maximumAttempts?: number | undefined;
32
+ maximumInterval?: string | undefined;
33
+ }>>;
34
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
35
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ retryPolicy?: {
38
+ backoffCoefficient?: number | undefined;
39
+ initialInterval?: string | undefined;
40
+ maximumAttempts?: number | undefined;
41
+ maximumInterval?: string | undefined;
42
+ } | undefined;
43
+ startToCloseTimeout?: string | undefined;
44
+ scheduleToCloseTimeout?: string | undefined;
45
+ }, {
46
+ retryPolicy?: {
47
+ backoffCoefficient?: number | undefined;
48
+ initialInterval?: string | undefined;
49
+ maximumAttempts?: number | undefined;
50
+ maximumInterval?: string | undefined;
51
+ } | undefined;
52
+ startToCloseTimeout?: string | undefined;
53
+ scheduleToCloseTimeout?: string | undefined;
54
+ }>>;
55
+ } & {
56
+ type: z.ZodLiteral<"agent">;
57
+ http: z.ZodObject<{
58
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
59
+ url: z.ZodEffects<z.ZodString, string, string>;
60
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>]>>>;
61
+ body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
62
+ } & {
63
+ config: z.ZodDefault<z.ZodObject<{
64
+ max_iterations: z.ZodDefault<z.ZodNumber>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ max_iterations: number;
67
+ }, {
68
+ max_iterations?: number | undefined;
69
+ }>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ url: string;
72
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
73
+ config: {
74
+ max_iterations: number;
75
+ };
76
+ headers?: Record<string, string | Record<string, any>> | undefined;
77
+ body?: string | Record<string, any> | undefined;
78
+ }, {
79
+ url: string;
80
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
81
+ headers?: Record<string, string | Record<string, any>> | undefined;
82
+ body?: string | Record<string, any> | undefined;
83
+ config?: {
84
+ max_iterations?: number | undefined;
85
+ } | undefined;
86
+ }>;
87
+ dependencies: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
88
+ tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ type: "agent";
91
+ id: string;
92
+ http: {
93
+ url: string;
94
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
95
+ config: {
96
+ max_iterations: number;
97
+ };
98
+ headers?: Record<string, string | Record<string, any>> | undefined;
99
+ body?: string | Record<string, any> | undefined;
100
+ };
101
+ dependencies: string[];
102
+ tools: string[];
103
+ iterationContext?: {
104
+ originalNodeId: string;
105
+ iteratorNodeId: string;
106
+ index: number;
107
+ } | undefined;
108
+ activityConfig?: {
109
+ retryPolicy?: {
110
+ backoffCoefficient?: number | undefined;
111
+ initialInterval?: string | undefined;
112
+ maximumAttempts?: number | undefined;
113
+ maximumInterval?: string | undefined;
114
+ } | undefined;
115
+ startToCloseTimeout?: string | undefined;
116
+ scheduleToCloseTimeout?: string | undefined;
117
+ } | undefined;
118
+ }, {
119
+ type: "agent";
120
+ id: string;
121
+ http: {
122
+ url: string;
123
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
124
+ headers?: Record<string, string | Record<string, any>> | undefined;
125
+ body?: string | Record<string, any> | undefined;
126
+ config?: {
127
+ max_iterations?: number | undefined;
128
+ } | undefined;
129
+ };
130
+ iterationContext?: {
131
+ originalNodeId: string;
132
+ iteratorNodeId: string;
133
+ index: number;
134
+ } | undefined;
135
+ activityConfig?: {
136
+ retryPolicy?: {
137
+ backoffCoefficient?: number | undefined;
138
+ initialInterval?: string | undefined;
139
+ maximumAttempts?: number | undefined;
140
+ maximumInterval?: string | undefined;
141
+ } | undefined;
142
+ startToCloseTimeout?: string | undefined;
143
+ scheduleToCloseTimeout?: string | undefined;
144
+ } | undefined;
145
+ dependencies?: string[] | undefined;
146
+ tools?: string[] | undefined;
147
+ }>;
148
+ export type AgentNode = z.infer<typeof AgentNodeSchema>;
149
+ //# sourceMappingURL=agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/types/nodes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4C1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentNodeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const http_1 = require("../config/http");
6
+ const base_node_schema_1 = require("./common/base-node-schema");
7
+ // Agent Node Schema
8
+ exports.AgentNodeSchema = base_node_schema_1.BaseNodeSchema.extend({
9
+ type: zod_1.z.literal("agent").openapi({
10
+ description: "Specifies the node type as \`agent\`. Other available types include \`http\`, \`error_boundary\`, \`source_iterator\`, and \`destination\`.",
11
+ example: "agent",
12
+ }),
13
+ http: http_1.HTTPConfigSchema.extend({
14
+ config: zod_1.z
15
+ .object({
16
+ max_iterations: zod_1.z.number().default(5).openapi({
17
+ description: "Maximum number of iterations that the agent can run. An agent runs until it returns a completion schema response. You will be responsible for ensure the agent returns a `complete` response before this limit. You will receive an iteration",
18
+ example: 5,
19
+ default: 5,
20
+ }),
21
+ })
22
+ .default({
23
+ max_iterations: 5,
24
+ }),
25
+ }),
26
+ dependencies: zod_1.z
27
+ .array(zod_1.z.string())
28
+ .optional()
29
+ .default([])
30
+ .openapi({
31
+ description: "The dependencies of the agent. The dependencies must be the ids of the nodes that the agent depends on.",
32
+ example: ["node1", "node2"],
33
+ }),
34
+ tools: zod_1.z
35
+ .array(zod_1.z.string())
36
+ .optional()
37
+ .default([])
38
+ .openapi({
39
+ description: "The tools available to the agent. The tool names must be unique within the workflow and have no dashes or spaces. The tool needs to be defined in the global tools section.",
40
+ example: ["tool1", "tool2"],
41
+ }),
42
+ }).openapi({
43
+ ref: "AgentNode",
44
+ title: "AgentNode",
45
+ description: "A node that can make use of HTTP Tools and Graph Tools. They are the only node type that can dynamically make use of other nodes,",
46
+ "x-tags": ["Nodes"],
47
+ });
48
+ //# sourceMappingURL=agents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/types/nodes/agents.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAAkD;AAClD,gEAA2D;AAE3D,oBAAoB;AACP,QAAA,eAAe,GAAG,iCAAc,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;QAC/B,WAAW,EACT,6IAA6I;QAC/I,OAAO,EAAE,OAAO;KACjB,CAAC;IACF,IAAI,EAAE,uBAAgB,CAAC,MAAM,CAAC;QAC5B,MAAM,EAAE,OAAC;aACN,MAAM,CAAC;YACN,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;gBAC5C,WAAW,EACT,+OAA+O;gBACjP,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;aACX,CAAC;SACH,CAAC;aACD,OAAO,CAAC;YACP,cAAc,EAAE,CAAC;SAClB,CAAC;KACL,CAAC;IACF,YAAY,EAAE,OAAC;SACZ,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,CAAC;SACX,OAAO,CAAC;QACP,WAAW,EACT,yGAAyG;QAC3G,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAC5B,CAAC;IACJ,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,CAAC;SACX,OAAO,CAAC;QACP,WAAW,EACT,6KAA6K;QAC/K,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAC5B,CAAC;CACL,CAAC,CAAC,OAAO,CAAC;IACT,GAAG,EAAE,WAAW;IAChB,KAAK,EAAE,WAAW;IAClB,WAAW,EACT,mIAAmI;IACrI,QAAQ,EAAE,CAAC,OAAO,CAAC;CACpB,CAAC,CAAC"}