hexdag 0.5.0.dev1__tar.gz

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 (261) hide show
  1. hexdag-0.5.0.dev1/.gitignore +98 -0
  2. hexdag-0.5.0.dev1/LICENSE +190 -0
  3. hexdag-0.5.0.dev1/PKG-INFO +369 -0
  4. hexdag-0.5.0.dev1/README.md +279 -0
  5. hexdag-0.5.0.dev1/hexdag/__init__.py +116 -0
  6. hexdag-0.5.0.dev1/hexdag/__main__.py +30 -0
  7. hexdag-0.5.0.dev1/hexdag/adapters/executors/__init__.py +5 -0
  8. hexdag-0.5.0.dev1/hexdag/adapters/executors/local_executor.py +316 -0
  9. hexdag-0.5.0.dev1/hexdag/builtin/__init__.py +6 -0
  10. hexdag-0.5.0.dev1/hexdag/builtin/adapters/__init__.py +51 -0
  11. hexdag-0.5.0.dev1/hexdag/builtin/adapters/anthropic/__init__.py +5 -0
  12. hexdag-0.5.0.dev1/hexdag/builtin/adapters/anthropic/anthropic_adapter.py +151 -0
  13. hexdag-0.5.0.dev1/hexdag/builtin/adapters/database/__init__.py +6 -0
  14. hexdag-0.5.0.dev1/hexdag/builtin/adapters/database/csv/csv_adapter.py +249 -0
  15. hexdag-0.5.0.dev1/hexdag/builtin/adapters/database/pgvector/__init__.py +5 -0
  16. hexdag-0.5.0.dev1/hexdag/builtin/adapters/database/pgvector/pgvector_adapter.py +478 -0
  17. hexdag-0.5.0.dev1/hexdag/builtin/adapters/database/sqlalchemy/sqlalchemy_adapter.py +252 -0
  18. hexdag-0.5.0.dev1/hexdag/builtin/adapters/database/sqlite/__init__.py +5 -0
  19. hexdag-0.5.0.dev1/hexdag/builtin/adapters/database/sqlite/sqlite_adapter.py +410 -0
  20. hexdag-0.5.0.dev1/hexdag/builtin/adapters/local/README.md +59 -0
  21. hexdag-0.5.0.dev1/hexdag/builtin/adapters/local/__init__.py +7 -0
  22. hexdag-0.5.0.dev1/hexdag/builtin/adapters/local/local_observer_manager.py +696 -0
  23. hexdag-0.5.0.dev1/hexdag/builtin/adapters/memory/__init__.py +47 -0
  24. hexdag-0.5.0.dev1/hexdag/builtin/adapters/memory/file_memory_adapter.py +297 -0
  25. hexdag-0.5.0.dev1/hexdag/builtin/adapters/memory/in_memory_memory.py +216 -0
  26. hexdag-0.5.0.dev1/hexdag/builtin/adapters/memory/schemas.py +57 -0
  27. hexdag-0.5.0.dev1/hexdag/builtin/adapters/memory/session_memory.py +178 -0
  28. hexdag-0.5.0.dev1/hexdag/builtin/adapters/memory/sqlite_memory_adapter.py +215 -0
  29. hexdag-0.5.0.dev1/hexdag/builtin/adapters/memory/state_memory.py +280 -0
  30. hexdag-0.5.0.dev1/hexdag/builtin/adapters/mock/README.md +89 -0
  31. hexdag-0.5.0.dev1/hexdag/builtin/adapters/mock/__init__.py +15 -0
  32. hexdag-0.5.0.dev1/hexdag/builtin/adapters/mock/hexdag.toml +50 -0
  33. hexdag-0.5.0.dev1/hexdag/builtin/adapters/mock/mock_database.py +225 -0
  34. hexdag-0.5.0.dev1/hexdag/builtin/adapters/mock/mock_embedding.py +223 -0
  35. hexdag-0.5.0.dev1/hexdag/builtin/adapters/mock/mock_llm.py +177 -0
  36. hexdag-0.5.0.dev1/hexdag/builtin/adapters/mock/mock_tool_adapter.py +192 -0
  37. hexdag-0.5.0.dev1/hexdag/builtin/adapters/mock/mock_tool_router.py +232 -0
  38. hexdag-0.5.0.dev1/hexdag/builtin/adapters/openai/__init__.py +5 -0
  39. hexdag-0.5.0.dev1/hexdag/builtin/adapters/openai/openai_adapter.py +634 -0
  40. hexdag-0.5.0.dev1/hexdag/builtin/adapters/secret/__init__.py +7 -0
  41. hexdag-0.5.0.dev1/hexdag/builtin/adapters/secret/local_secret_adapter.py +248 -0
  42. hexdag-0.5.0.dev1/hexdag/builtin/adapters/unified_tool_router.py +280 -0
  43. hexdag-0.5.0.dev1/hexdag/builtin/macros/__init__.py +17 -0
  44. hexdag-0.5.0.dev1/hexdag/builtin/macros/conversation_agent.py +390 -0
  45. hexdag-0.5.0.dev1/hexdag/builtin/macros/llm_macro.py +151 -0
  46. hexdag-0.5.0.dev1/hexdag/builtin/macros/reasoning_agent.py +423 -0
  47. hexdag-0.5.0.dev1/hexdag/builtin/macros/tool_macro.py +380 -0
  48. hexdag-0.5.0.dev1/hexdag/builtin/nodes/__init__.py +38 -0
  49. hexdag-0.5.0.dev1/hexdag/builtin/nodes/_discovery.py +123 -0
  50. hexdag-0.5.0.dev1/hexdag/builtin/nodes/agent_node.py +696 -0
  51. hexdag-0.5.0.dev1/hexdag/builtin/nodes/base_node_factory.py +242 -0
  52. hexdag-0.5.0.dev1/hexdag/builtin/nodes/composite_node.py +926 -0
  53. hexdag-0.5.0.dev1/hexdag/builtin/nodes/data_node.py +201 -0
  54. hexdag-0.5.0.dev1/hexdag/builtin/nodes/expression_node.py +487 -0
  55. hexdag-0.5.0.dev1/hexdag/builtin/nodes/function_node.py +454 -0
  56. hexdag-0.5.0.dev1/hexdag/builtin/nodes/llm_node.py +491 -0
  57. hexdag-0.5.0.dev1/hexdag/builtin/nodes/loop_node.py +920 -0
  58. hexdag-0.5.0.dev1/hexdag/builtin/nodes/mapped_input.py +518 -0
  59. hexdag-0.5.0.dev1/hexdag/builtin/nodes/port_call_node.py +269 -0
  60. hexdag-0.5.0.dev1/hexdag/builtin/nodes/tool_call_node.py +195 -0
  61. hexdag-0.5.0.dev1/hexdag/builtin/nodes/tool_utils.py +390 -0
  62. hexdag-0.5.0.dev1/hexdag/builtin/prompts/__init__.py +68 -0
  63. hexdag-0.5.0.dev1/hexdag/builtin/prompts/base.py +422 -0
  64. hexdag-0.5.0.dev1/hexdag/builtin/prompts/chat_prompts.py +303 -0
  65. hexdag-0.5.0.dev1/hexdag/builtin/prompts/error_correction_prompts.py +320 -0
  66. hexdag-0.5.0.dev1/hexdag/builtin/prompts/tool_prompts.py +160 -0
  67. hexdag-0.5.0.dev1/hexdag/builtin/tools/builtin_tools.py +84 -0
  68. hexdag-0.5.0.dev1/hexdag/builtin/tools/database_tools.py +164 -0
  69. hexdag-0.5.0.dev1/hexdag/cli/__init__.py +17 -0
  70. hexdag-0.5.0.dev1/hexdag/cli/__main__.py +7 -0
  71. hexdag-0.5.0.dev1/hexdag/cli/commands/__init__.py +27 -0
  72. hexdag-0.5.0.dev1/hexdag/cli/commands/build_cmd.py +812 -0
  73. hexdag-0.5.0.dev1/hexdag/cli/commands/create_cmd.py +208 -0
  74. hexdag-0.5.0.dev1/hexdag/cli/commands/docs_cmd.py +293 -0
  75. hexdag-0.5.0.dev1/hexdag/cli/commands/generate_types_cmd.py +252 -0
  76. hexdag-0.5.0.dev1/hexdag/cli/commands/init_cmd.py +188 -0
  77. hexdag-0.5.0.dev1/hexdag/cli/commands/pipeline_cmd.py +494 -0
  78. hexdag-0.5.0.dev1/hexdag/cli/commands/plugin_dev_cmd.py +529 -0
  79. hexdag-0.5.0.dev1/hexdag/cli/commands/plugins_cmd.py +441 -0
  80. hexdag-0.5.0.dev1/hexdag/cli/commands/studio_cmd.py +101 -0
  81. hexdag-0.5.0.dev1/hexdag/cli/commands/validate_cmd.py +221 -0
  82. hexdag-0.5.0.dev1/hexdag/cli/main.py +84 -0
  83. hexdag-0.5.0.dev1/hexdag/core/__init__.py +83 -0
  84. hexdag-0.5.0.dev1/hexdag/core/config/__init__.py +20 -0
  85. hexdag-0.5.0.dev1/hexdag/core/config/loader.py +479 -0
  86. hexdag-0.5.0.dev1/hexdag/core/config/models.py +150 -0
  87. hexdag-0.5.0.dev1/hexdag/core/configurable.py +294 -0
  88. hexdag-0.5.0.dev1/hexdag/core/context/__init__.py +37 -0
  89. hexdag-0.5.0.dev1/hexdag/core/context/execution_context.py +378 -0
  90. hexdag-0.5.0.dev1/hexdag/core/docs/__init__.py +26 -0
  91. hexdag-0.5.0.dev1/hexdag/core/docs/extractors.py +678 -0
  92. hexdag-0.5.0.dev1/hexdag/core/docs/generators.py +890 -0
  93. hexdag-0.5.0.dev1/hexdag/core/docs/models.py +120 -0
  94. hexdag-0.5.0.dev1/hexdag/core/domain/__init__.py +10 -0
  95. hexdag-0.5.0.dev1/hexdag/core/domain/dag.py +1225 -0
  96. hexdag-0.5.0.dev1/hexdag/core/exceptions.py +234 -0
  97. hexdag-0.5.0.dev1/hexdag/core/expression_parser.py +569 -0
  98. hexdag-0.5.0.dev1/hexdag/core/logging.py +449 -0
  99. hexdag-0.5.0.dev1/hexdag/core/models/__init__.py +17 -0
  100. hexdag-0.5.0.dev1/hexdag/core/models/base.py +138 -0
  101. hexdag-0.5.0.dev1/hexdag/core/orchestration/__init__.py +46 -0
  102. hexdag-0.5.0.dev1/hexdag/core/orchestration/body_executor.py +481 -0
  103. hexdag-0.5.0.dev1/hexdag/core/orchestration/components/__init__.py +97 -0
  104. hexdag-0.5.0.dev1/hexdag/core/orchestration/components/adapter_lifecycle_manager.py +113 -0
  105. hexdag-0.5.0.dev1/hexdag/core/orchestration/components/checkpoint_manager.py +134 -0
  106. hexdag-0.5.0.dev1/hexdag/core/orchestration/components/execution_coordinator.py +360 -0
  107. hexdag-0.5.0.dev1/hexdag/core/orchestration/components/health_check_manager.py +176 -0
  108. hexdag-0.5.0.dev1/hexdag/core/orchestration/components/input_mapper.py +143 -0
  109. hexdag-0.5.0.dev1/hexdag/core/orchestration/components/lifecycle_manager.py +583 -0
  110. hexdag-0.5.0.dev1/hexdag/core/orchestration/components/node_executor.py +377 -0
  111. hexdag-0.5.0.dev1/hexdag/core/orchestration/components/secret_manager.py +202 -0
  112. hexdag-0.5.0.dev1/hexdag/core/orchestration/components/wave_executor.py +158 -0
  113. hexdag-0.5.0.dev1/hexdag/core/orchestration/constants.py +17 -0
  114. hexdag-0.5.0.dev1/hexdag/core/orchestration/events/README.md +312 -0
  115. hexdag-0.5.0.dev1/hexdag/core/orchestration/events/__init__.py +104 -0
  116. hexdag-0.5.0.dev1/hexdag/core/orchestration/events/batching.py +330 -0
  117. hexdag-0.5.0.dev1/hexdag/core/orchestration/events/decorators.py +139 -0
  118. hexdag-0.5.0.dev1/hexdag/core/orchestration/events/events.py +573 -0
  119. hexdag-0.5.0.dev1/hexdag/core/orchestration/events/observers/__init__.py +30 -0
  120. hexdag-0.5.0.dev1/hexdag/core/orchestration/events/observers/core_observers.py +690 -0
  121. hexdag-0.5.0.dev1/hexdag/core/orchestration/events/observers/models.py +111 -0
  122. hexdag-0.5.0.dev1/hexdag/core/orchestration/events/taxonomy.py +269 -0
  123. hexdag-0.5.0.dev1/hexdag/core/orchestration/hook_context.py +237 -0
  124. hexdag-0.5.0.dev1/hexdag/core/orchestration/hooks.py +437 -0
  125. hexdag-0.5.0.dev1/hexdag/core/orchestration/models.py +418 -0
  126. hexdag-0.5.0.dev1/hexdag/core/orchestration/orchestrator.py +910 -0
  127. hexdag-0.5.0.dev1/hexdag/core/orchestration/orchestrator_factory.py +275 -0
  128. hexdag-0.5.0.dev1/hexdag/core/orchestration/port_wrappers.py +327 -0
  129. hexdag-0.5.0.dev1/hexdag/core/orchestration/prompt/__init__.py +32 -0
  130. hexdag-0.5.0.dev1/hexdag/core/orchestration/prompt/template.py +332 -0
  131. hexdag-0.5.0.dev1/hexdag/core/pipeline_builder/__init__.py +21 -0
  132. hexdag-0.5.0.dev1/hexdag/core/pipeline_builder/component_instantiator.py +386 -0
  133. hexdag-0.5.0.dev1/hexdag/core/pipeline_builder/include_tag.py +265 -0
  134. hexdag-0.5.0.dev1/hexdag/core/pipeline_builder/pipeline_config.py +133 -0
  135. hexdag-0.5.0.dev1/hexdag/core/pipeline_builder/py_tag.py +223 -0
  136. hexdag-0.5.0.dev1/hexdag/core/pipeline_builder/tag_discovery.py +268 -0
  137. hexdag-0.5.0.dev1/hexdag/core/pipeline_builder/yaml_builder.py +1196 -0
  138. hexdag-0.5.0.dev1/hexdag/core/pipeline_builder/yaml_validator.py +569 -0
  139. hexdag-0.5.0.dev1/hexdag/core/ports/__init__.py +65 -0
  140. hexdag-0.5.0.dev1/hexdag/core/ports/api_call.py +133 -0
  141. hexdag-0.5.0.dev1/hexdag/core/ports/database.py +489 -0
  142. hexdag-0.5.0.dev1/hexdag/core/ports/embedding.py +215 -0
  143. hexdag-0.5.0.dev1/hexdag/core/ports/executor.py +237 -0
  144. hexdag-0.5.0.dev1/hexdag/core/ports/file_storage.py +117 -0
  145. hexdag-0.5.0.dev1/hexdag/core/ports/healthcheck.py +87 -0
  146. hexdag-0.5.0.dev1/hexdag/core/ports/llm.py +551 -0
  147. hexdag-0.5.0.dev1/hexdag/core/ports/memory.py +70 -0
  148. hexdag-0.5.0.dev1/hexdag/core/ports/observer_manager.py +130 -0
  149. hexdag-0.5.0.dev1/hexdag/core/ports/secret.py +145 -0
  150. hexdag-0.5.0.dev1/hexdag/core/ports/tool_router.py +94 -0
  151. hexdag-0.5.0.dev1/hexdag/core/ports_builder.py +623 -0
  152. hexdag-0.5.0.dev1/hexdag/core/protocols.py +273 -0
  153. hexdag-0.5.0.dev1/hexdag/core/resolver.py +304 -0
  154. hexdag-0.5.0.dev1/hexdag/core/schema/__init__.py +9 -0
  155. hexdag-0.5.0.dev1/hexdag/core/schema/generator.py +742 -0
  156. hexdag-0.5.0.dev1/hexdag/core/secrets.py +242 -0
  157. hexdag-0.5.0.dev1/hexdag/core/types.py +413 -0
  158. hexdag-0.5.0.dev1/hexdag/core/utils/async_warnings.py +206 -0
  159. hexdag-0.5.0.dev1/hexdag/core/utils/schema_conversion.py +78 -0
  160. hexdag-0.5.0.dev1/hexdag/core/utils/sql_validation.py +86 -0
  161. hexdag-0.5.0.dev1/hexdag/core/validation/secure_json.py +148 -0
  162. hexdag-0.5.0.dev1/hexdag/core/yaml_macro.py +517 -0
  163. hexdag-0.5.0.dev1/hexdag/mcp_server.py +3120 -0
  164. hexdag-0.5.0.dev1/hexdag/studio/__init__.py +10 -0
  165. hexdag-0.5.0.dev1/hexdag/studio/build_ui.py +92 -0
  166. hexdag-0.5.0.dev1/hexdag/studio/server/__init__.py +1 -0
  167. hexdag-0.5.0.dev1/hexdag/studio/server/main.py +100 -0
  168. hexdag-0.5.0.dev1/hexdag/studio/server/routes/__init__.py +9 -0
  169. hexdag-0.5.0.dev1/hexdag/studio/server/routes/execute.py +208 -0
  170. hexdag-0.5.0.dev1/hexdag/studio/server/routes/export.py +558 -0
  171. hexdag-0.5.0.dev1/hexdag/studio/server/routes/files.py +207 -0
  172. hexdag-0.5.0.dev1/hexdag/studio/server/routes/plugins.py +419 -0
  173. hexdag-0.5.0.dev1/hexdag/studio/server/routes/validate.py +220 -0
  174. hexdag-0.5.0.dev1/hexdag/studio/ui/index.html +13 -0
  175. hexdag-0.5.0.dev1/hexdag/studio/ui/package-lock.json +2992 -0
  176. hexdag-0.5.0.dev1/hexdag/studio/ui/package.json +31 -0
  177. hexdag-0.5.0.dev1/hexdag/studio/ui/postcss.config.js +6 -0
  178. hexdag-0.5.0.dev1/hexdag/studio/ui/public/hexdag.svg +5 -0
  179. hexdag-0.5.0.dev1/hexdag/studio/ui/src/App.tsx +251 -0
  180. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/Canvas.tsx +408 -0
  181. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/ContextMenu.tsx +187 -0
  182. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/FileBrowser.tsx +123 -0
  183. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/Header.tsx +181 -0
  184. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/HexdagNode.tsx +193 -0
  185. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/NodeInspector.tsx +512 -0
  186. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/NodePalette.tsx +262 -0
  187. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/NodePortsSection.tsx +403 -0
  188. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/PluginManager.tsx +347 -0
  189. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/PortsEditor.tsx +481 -0
  190. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/PythonEditor.tsx +195 -0
  191. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/ValidationPanel.tsx +105 -0
  192. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/YamlEditor.tsx +196 -0
  193. hexdag-0.5.0.dev1/hexdag/studio/ui/src/components/index.ts +8 -0
  194. hexdag-0.5.0.dev1/hexdag/studio/ui/src/index.css +92 -0
  195. hexdag-0.5.0.dev1/hexdag/studio/ui/src/main.tsx +10 -0
  196. hexdag-0.5.0.dev1/hexdag/studio/ui/src/types/index.ts +123 -0
  197. hexdag-0.5.0.dev1/hexdag/studio/ui/src/vite-env.d.ts +1 -0
  198. hexdag-0.5.0.dev1/hexdag/studio/ui/tailwind.config.js +29 -0
  199. hexdag-0.5.0.dev1/hexdag/studio/ui/tsconfig.json +37 -0
  200. hexdag-0.5.0.dev1/hexdag/studio/ui/tsconfig.node.json +13 -0
  201. hexdag-0.5.0.dev1/hexdag/studio/ui/vite.config.ts +35 -0
  202. hexdag-0.5.0.dev1/hexdag/visualization/__init__.py +69 -0
  203. hexdag-0.5.0.dev1/hexdag/visualization/dag_visualizer.py +1020 -0
  204. hexdag-0.5.0.dev1/hexdag_plugins/.gitignore +43 -0
  205. hexdag-0.5.0.dev1/hexdag_plugins/README.md +73 -0
  206. hexdag-0.5.0.dev1/hexdag_plugins/__init__.py +1 -0
  207. hexdag-0.5.0.dev1/hexdag_plugins/azure/LICENSE +21 -0
  208. hexdag-0.5.0.dev1/hexdag_plugins/azure/README.md +414 -0
  209. hexdag-0.5.0.dev1/hexdag_plugins/azure/__init__.py +21 -0
  210. hexdag-0.5.0.dev1/hexdag_plugins/azure/azure_blob_adapter.py +450 -0
  211. hexdag-0.5.0.dev1/hexdag_plugins/azure/azure_cosmos_adapter.py +383 -0
  212. hexdag-0.5.0.dev1/hexdag_plugins/azure/azure_keyvault_adapter.py +314 -0
  213. hexdag-0.5.0.dev1/hexdag_plugins/azure/azure_openai_adapter.py +415 -0
  214. hexdag-0.5.0.dev1/hexdag_plugins/azure/pyproject.toml +107 -0
  215. hexdag-0.5.0.dev1/hexdag_plugins/azure/tests/__init__.py +1 -0
  216. hexdag-0.5.0.dev1/hexdag_plugins/azure/tests/test_azure_blob_adapter.py +350 -0
  217. hexdag-0.5.0.dev1/hexdag_plugins/azure/tests/test_azure_cosmos_adapter.py +323 -0
  218. hexdag-0.5.0.dev1/hexdag_plugins/azure/tests/test_azure_keyvault_adapter.py +330 -0
  219. hexdag-0.5.0.dev1/hexdag_plugins/azure/tests/test_azure_openai_adapter.py +329 -0
  220. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/README.md +168 -0
  221. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/__init__.py +53 -0
  222. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/examples/01_simple_pandas_transform.py +270 -0
  223. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/examples/02_simple_pandas_only.py +149 -0
  224. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/examples/03_file_io_pipeline.py +109 -0
  225. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/examples/test_pandas_transform.py +84 -0
  226. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/hexdag.toml +25 -0
  227. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/hexdag_etl/__init__.py +48 -0
  228. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/hexdag_etl/nodes/__init__.py +13 -0
  229. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/hexdag_etl/nodes/api_extract.py +230 -0
  230. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/hexdag_etl/nodes/base_node_factory.py +181 -0
  231. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/hexdag_etl/nodes/file_io.py +415 -0
  232. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/hexdag_etl/nodes/outlook.py +492 -0
  233. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/hexdag_etl/nodes/pandas_transform.py +563 -0
  234. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/hexdag_etl/nodes/sql_extract_load.py +112 -0
  235. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/pyproject.toml +82 -0
  236. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/test_transform.py +54 -0
  237. hexdag-0.5.0.dev1/hexdag_plugins/hexdag_etl/tests/test_plugin_integration.py +62 -0
  238. hexdag-0.5.0.dev1/hexdag_plugins/mysql_adapter/LICENSE +21 -0
  239. hexdag-0.5.0.dev1/hexdag_plugins/mysql_adapter/README.md +224 -0
  240. hexdag-0.5.0.dev1/hexdag_plugins/mysql_adapter/__init__.py +6 -0
  241. hexdag-0.5.0.dev1/hexdag_plugins/mysql_adapter/mysql_adapter.py +408 -0
  242. hexdag-0.5.0.dev1/hexdag_plugins/mysql_adapter/pyproject.toml +93 -0
  243. hexdag-0.5.0.dev1/hexdag_plugins/mysql_adapter/tests/test_mysql_adapter.py +259 -0
  244. hexdag-0.5.0.dev1/hexdag_plugins/storage/README.md +184 -0
  245. hexdag-0.5.0.dev1/hexdag_plugins/storage/__init__.py +19 -0
  246. hexdag-0.5.0.dev1/hexdag_plugins/storage/file/__init__.py +5 -0
  247. hexdag-0.5.0.dev1/hexdag_plugins/storage/file/local.py +325 -0
  248. hexdag-0.5.0.dev1/hexdag_plugins/storage/ports/__init__.py +5 -0
  249. hexdag-0.5.0.dev1/hexdag_plugins/storage/ports/vector_store.py +236 -0
  250. hexdag-0.5.0.dev1/hexdag_plugins/storage/sql/__init__.py +7 -0
  251. hexdag-0.5.0.dev1/hexdag_plugins/storage/sql/base.py +187 -0
  252. hexdag-0.5.0.dev1/hexdag_plugins/storage/sql/mysql.py +27 -0
  253. hexdag-0.5.0.dev1/hexdag_plugins/storage/sql/postgresql.py +27 -0
  254. hexdag-0.5.0.dev1/hexdag_plugins/storage/tests/__init__.py +1 -0
  255. hexdag-0.5.0.dev1/hexdag_plugins/storage/tests/test_local_file_storage.py +161 -0
  256. hexdag-0.5.0.dev1/hexdag_plugins/storage/tests/test_sql_adapters.py +212 -0
  257. hexdag-0.5.0.dev1/hexdag_plugins/storage/vector/__init__.py +7 -0
  258. hexdag-0.5.0.dev1/hexdag_plugins/storage/vector/chromadb.py +223 -0
  259. hexdag-0.5.0.dev1/hexdag_plugins/storage/vector/in_memory.py +285 -0
  260. hexdag-0.5.0.dev1/hexdag_plugins/storage/vector/pgvector.py +502 -0
  261. hexdag-0.5.0.dev1/pyproject.toml +487 -0
@@ -0,0 +1,98 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+ MANIFEST
23
+
24
+ # Virtual environments
25
+ .env
26
+ .venv
27
+ env/
28
+ venv/
29
+ ENV/
30
+ env.bak/
31
+ venv.bak/
32
+
33
+ # IDEs
34
+ .vscode/
35
+ .idea/
36
+ *.swp
37
+ *.swo
38
+ *~
39
+
40
+ # Testing
41
+ .coverage
42
+ .pytest_cache/
43
+ .tox/
44
+ coverage.xml
45
+ *.cover
46
+ .hypothesis/
47
+ .mypy_cache/
48
+ .dmypy.json
49
+ dmypy.json
50
+
51
+ # OS
52
+ .DS_Store
53
+ Thumbs.db
54
+
55
+ # Logs
56
+ *.log
57
+ logs/
58
+
59
+ # Database
60
+ *.db
61
+ *.sqlite3
62
+
63
+ # Jupyter
64
+ .ipynb_checkpoints/
65
+
66
+ # Environment variables
67
+ .env.*
68
+ !.env.example
69
+
70
+ # uv
71
+ uv.lock
72
+
73
+ # Development
74
+ .pre-commit-config.yaml.bak
75
+ outputs/
76
+ sbom.json
77
+
78
+ # MkDocs
79
+ site/
80
+ docs/reference/*.md
81
+ docs/namespaces/*.md
82
+
83
+ # HexDAG config (only in root, not in subdirectories or examples)
84
+ /hexdag.toml
85
+
86
+ # Plugin build artifacts
87
+ hexdag_plugins/*/.ruff_cache/
88
+ hexdag_plugins/*/__pycache__/
89
+ hexdag_plugins/*/.mypy_cache/
90
+ hexdag_plugins/*/.pytest_cache/
91
+ hexdag_plugins/*/dist/
92
+ hexdag_plugins/*/build/
93
+ hexdag_plugins/*/*.egg-info/
94
+
95
+ # Studio UI (React/Vite)
96
+ hexdag/studio/ui/node_modules/
97
+ hexdag/studio/ui/dist/
98
+ hexdag/studio/ui/.vite/
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2025 hexDAG Team
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,369 @@
1
+ Metadata-Version: 2.4
2
+ Name: hexdag
3
+ Version: 0.5.0.dev1
4
+ Summary: Lightweight DAG orchestration framework with enterprise pipeline capabilities
5
+ Project-URL: Homepage, https://hexdag.ai
6
+ Project-URL: Repository, https://github.com/omniviser/hexdag
7
+ Project-URL: Documentation, https://hexdag.ai/docs
8
+ Author-email: hexDAG Team <developers@omniviser.ai>
9
+ License: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: async,dag,hexagonal-architecture,orchestration,pipeline,workflow
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Requires-Python: ~=3.12.0
19
+ Requires-Dist: jinja2>=3.1.0
20
+ Requires-Dist: loguru>=0.7.0
21
+ Requires-Dist: orjson>=3.9.0
22
+ Requires-Dist: pydantic~=2.0
23
+ Requires-Dist: pyyaml~=6.0
24
+ Requires-Dist: rich>=13.0.0
25
+ Requires-Dist: typer>=0.9.0
26
+ Provides-Extra: all
27
+ Requires-Dist: aiofiles>=23.0.0; extra == 'all'
28
+ Requires-Dist: aiomysql>=0.2.0; extra == 'all'
29
+ Requires-Dist: aiosqlite>=0.19.0; extra == 'all'
30
+ Requires-Dist: aiosqlite>=0.20.0; extra == 'all'
31
+ Requires-Dist: anthropic>=0.25.0; extra == 'all'
32
+ Requires-Dist: asyncpg>=0.29.0; extra == 'all'
33
+ Requires-Dist: chromadb>=0.4.0; extra == 'all'
34
+ Requires-Dist: fastapi>=0.109.0; extra == 'all'
35
+ Requires-Dist: graphviz<0.21,>=0.20.0; extra == 'all'
36
+ Requires-Dist: ipykernel>=6.25.0; extra == 'all'
37
+ Requires-Dist: jupyter>=1.0.0; extra == 'all'
38
+ Requires-Dist: matplotlib>=3.8.0; extra == 'all'
39
+ Requires-Dist: mcp>=1.0.0; extra == 'all'
40
+ Requires-Dist: nbconvert>=7.0.0; extra == 'all'
41
+ Requires-Dist: nbformat>=5.9.0; extra == 'all'
42
+ Requires-Dist: openai>=1.0.0; extra == 'all'
43
+ Requires-Dist: pandas>=2.1.0; extra == 'all'
44
+ Requires-Dist: pgvector>=0.3.0; extra == 'all'
45
+ Requires-Dist: sqlalchemy>=2.0.0; extra == 'all'
46
+ Requires-Dist: uvicorn>=0.27.0; extra == 'all'
47
+ Requires-Dist: watchfiles>=0.21.0; extra == 'all'
48
+ Provides-Extra: anthropic
49
+ Requires-Dist: anthropic>=0.25.0; extra == 'anthropic'
50
+ Provides-Extra: database
51
+ Requires-Dist: aiofiles>=23.0.0; extra == 'database'
52
+ Requires-Dist: aiosqlite>=0.19.0; extra == 'database'
53
+ Provides-Extra: mcp
54
+ Requires-Dist: mcp>=1.0.0; extra == 'mcp'
55
+ Provides-Extra: notebooks
56
+ Requires-Dist: ipykernel>=6.25.0; extra == 'notebooks'
57
+ Requires-Dist: jupyter>=1.0.0; extra == 'notebooks'
58
+ Requires-Dist: matplotlib>=3.8.0; extra == 'notebooks'
59
+ Requires-Dist: nbconvert>=7.0.0; extra == 'notebooks'
60
+ Requires-Dist: nbformat>=5.9.0; extra == 'notebooks'
61
+ Requires-Dist: pandas>=2.1.0; extra == 'notebooks'
62
+ Provides-Extra: openai
63
+ Requires-Dist: openai>=1.0.0; extra == 'openai'
64
+ Provides-Extra: storage-all
65
+ Requires-Dist: aiomysql>=0.2.0; extra == 'storage-all'
66
+ Requires-Dist: aiosqlite>=0.20.0; extra == 'storage-all'
67
+ Requires-Dist: asyncpg>=0.29.0; extra == 'storage-all'
68
+ Requires-Dist: chromadb>=0.4.0; extra == 'storage-all'
69
+ Requires-Dist: pgvector>=0.3.0; extra == 'storage-all'
70
+ Requires-Dist: sqlalchemy>=2.0.0; extra == 'storage-all'
71
+ Provides-Extra: storage-chromadb
72
+ Requires-Dist: chromadb>=0.4.0; extra == 'storage-chromadb'
73
+ Provides-Extra: storage-mysql
74
+ Requires-Dist: aiomysql>=0.2.0; extra == 'storage-mysql'
75
+ Requires-Dist: sqlalchemy>=2.0.0; extra == 'storage-mysql'
76
+ Provides-Extra: storage-postgresql
77
+ Requires-Dist: asyncpg>=0.29.0; extra == 'storage-postgresql'
78
+ Requires-Dist: pgvector>=0.3.0; extra == 'storage-postgresql'
79
+ Requires-Dist: sqlalchemy>=2.0.0; extra == 'storage-postgresql'
80
+ Provides-Extra: storage-sqlite
81
+ Requires-Dist: aiosqlite>=0.20.0; extra == 'storage-sqlite'
82
+ Requires-Dist: sqlalchemy>=2.0.0; extra == 'storage-sqlite'
83
+ Provides-Extra: studio
84
+ Requires-Dist: fastapi>=0.109.0; extra == 'studio'
85
+ Requires-Dist: uvicorn>=0.27.0; extra == 'studio'
86
+ Requires-Dist: watchfiles>=0.21.0; extra == 'studio'
87
+ Provides-Extra: viz
88
+ Requires-Dist: graphviz<0.21,>=0.20.0; extra == 'viz'
89
+ Description-Content-Type: text/markdown
90
+
91
+ # πŸ€– hexDAG - AI Agent Orchestration Framework
92
+
93
+ [![PyPI version](https://img.shields.io/pypi/v/hexdag.svg)](https://pypi.org/project/hexdag/)
94
+ [![Python 3.12](https://img.shields.io/badge/python-3.12.*-blue.svg)](https://www.python.org/downloads/)
95
+ [![uv: Python package manager](https://img.shields.io/badge/uv-fastest--python--installer-blueviolet?logo=python&logoColor=white)](https://github.com/astral-sh/uv)
96
+ [![Pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
97
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-yellow.svg)](https://opensource.org/licenses/Apache-2.0)
98
+
99
+ > **Enterprise-ready AI agent orchestration with low-code declarative workflows and powerful macro system**
100
+
101
+ hexDAG revolutionizes AI development by making agent orchestration and data science workflows accessible through declarative YAML configurations, reusable macro templates, and advanced conversation patterns, while maintaining the power and flexibility needed for enterprise deployments.
102
+
103
+ ## ✨ Why hexDAG?
104
+
105
+ Traditional AI frameworks force you to choose between simplicity and power. hexDAG delivers both through:
106
+
107
+ - **πŸ€– Agent-First Design**: Build complex multi-agent systems with simple YAML
108
+ - **πŸ“Š Data Science Ready**: Mix AI agents with traditional data processing seamlessly
109
+ - **🌊 Real-Time Streaming**: See agent thoughts and memory operations as they happen
110
+ - **πŸ”§ Low-Code Development**: Non-technical users can create sophisticated workflows
111
+ - **🏒 Enterprise Grade**: Production-ready with comprehensive monitoring and control
112
+ - **🎭 Macro System**: Reusable pipeline templates that expand into full workflows
113
+ - **πŸ’¬ Conversation Patterns**: Built-in support for multi-turn conversations with memory
114
+
115
+ ## 🎯 The Six Pillars
116
+
117
+ 1. **Async-First Architecture** - Non-blocking execution for maximum performance
118
+ 2. **Event-Driven Observability** - Real-time monitoring of agent actions
119
+ 3. **Pydantic Validation Everywhere** - Type safety and runtime validation
120
+ 4. **Hexagonal Architecture** - Clean separation of business logic and infrastructure
121
+ 5. **Composable Declarative Files** - Build complex workflows from simple components
122
+ 6. **DAG-Based Orchestration** - Intelligent dependency management and parallelization
123
+
124
+ ## πŸš€ Quick Start
125
+
126
+ ### Installation
127
+
128
+ ```bash
129
+ # Install from PyPI
130
+ pip install hexdag
131
+
132
+ # Or with uv (recommended)
133
+ uv pip install hexdag
134
+
135
+ # With optional dependencies
136
+ pip install hexdag[openai] # OpenAI LLM support
137
+ pip install hexdag[anthropic] # Anthropic Claude support
138
+ pip install hexdag[all] # All optional dependencies
139
+ ```
140
+
141
+ #### Development Installation
142
+
143
+ ```bash
144
+ # Clone and install for development
145
+ git clone https://github.com/omniviser/hexdag.git
146
+ cd hexdag
147
+ uv sync
148
+ ```
149
+
150
+ ### MCP Server for LLM Editors
151
+
152
+ hexDAG includes a built-in MCP (Model Context Protocol) server that exposes pipeline building capabilities to Claude Code, Cursor, and other LLM-powered editors:
153
+
154
+ ```bash
155
+ # Development: Install MCP dependencies
156
+ uv sync --extra mcp
157
+
158
+ # Production: Install from PyPI with MCP support
159
+ uv pip install "hexdag[mcp]"
160
+
161
+ # Configure in Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json)
162
+ {
163
+ "mcpServers": {
164
+ "hexdag": {
165
+ "command": "uv",
166
+ "args": ["run", "python", "-m", "hexdag", "--mcp"]
167
+ }
168
+ }
169
+ }
170
+ ```
171
+
172
+ The MCP server provides LLMs with tools to:
173
+ - List available nodes, adapters, tools, and macros from your registry
174
+ - Build and validate YAML pipelines interactively
175
+ - Get component schemas and documentation
176
+ - Auto-discover custom plugins from your `pyproject.toml`
177
+
178
+ See [examples/mcp/](examples/mcp/) for detailed configuration guides.
179
+
180
+ ### Your First Agent Workflow
181
+
182
+ Create a simple AI agent workflow with YAML:
183
+
184
+ ```yaml
185
+ # research_agent.yaml
186
+ name: research_workflow
187
+ description: AI-powered research assistant
188
+
189
+ nodes:
190
+ - type: agent
191
+ id: researcher
192
+ params:
193
+ initial_prompt_template: "Research the topic: {{topic}}"
194
+ max_steps: 5
195
+ available_tools: ["web_search", "summarize"]
196
+ depends_on: []
197
+
198
+ - type: agent
199
+ id: analyst
200
+ params:
201
+ initial_prompt_template: |
202
+ Analyze the research findings: {{researcher.results}}
203
+ Provide actionable insights.
204
+ max_steps: 3
205
+ depends_on: [researcher]
206
+
207
+ - type: function
208
+ id: formatter
209
+ params:
210
+ fn: format_report
211
+ input_mapping:
212
+ title: "researcher.topic"
213
+ findings: "researcher.results"
214
+ insights: "analyst.insights"
215
+ depends_on: [researcher, analyst]
216
+ ```
217
+
218
+ Run it with Python:
219
+
220
+ ```python
221
+ from hexdag import Orchestrator, YamlPipelineBuilder
222
+
223
+ # Load and execute the workflow
224
+ builder = YamlPipelineBuilder()
225
+ graph, metadata = builder.build_from_yaml_file("research_agent.yaml")
226
+
227
+ orchestrator = Orchestrator()
228
+ result = await orchestrator.run(graph, {"topic": "AI trends 2024"})
229
+
230
+ ## πŸ“š Documentation & Learning
231
+
232
+ ### πŸ““ Interactive Notebooks (Recommended Start)
233
+ Learn hexDAG through comprehensive, working Jupyter notebooks:
234
+
235
+ **Core Concepts:**
236
+ - **[01. Introduction](notebooks/01_introduction.ipynb)** - Your first pipeline (15 min)
237
+ - **[02. YAML Pipelines](notebooks/02_yaml_pipelines.ipynb)** - Declarative workflows (25 min)
238
+ - **[03. Practical Workflow](notebooks/03_practical_workflow.ipynb)** - Real-world patterns (30 min)
239
+
240
+ **Advanced Features:**
241
+ - **[06. Dynamic Reasoning Agent](notebooks/06_dynamic_reasoning_agent.ipynb)** - Advanced agent patterns
242
+ - **[Advanced Few-shot & Retry](notebooks/advanced_fewshot_and_retry.ipynb)** - Error handling and examples
243
+ - **[Composable LLM Architecture](notebooks/composable_llm_architecture.ipynb)** - Modular AI systems
244
+
245
+ **All notebooks execute successfully:** `βœ… All notebook(s) validated successfully!`
246
+
247
+ ### πŸ“š Complete Documentation
248
+ - **[πŸ“– Documentation Hub](docs/README.md)** - Complete navigation with learning paths
249
+ - **[πŸ€” Philosophy & Design](docs/PHILOSOPHY.md)** - Six pillars and design principles
250
+ - **[πŸ”§ Implementation Guide](docs/IMPLEMENTATION_GUIDE.md)** - Production-ready workflows
251
+ - **[⌨️ CLI Reference](docs/CLI_REFERENCE.md)** - Complete CLI documentation
252
+ - **[πŸ”Œ Plugin System](docs/PLUGIN_SYSTEM.md)** - Custom component development
253
+ - **[πŸ—ΊοΈ Roadmap](docs/ROADMAP.md)** - Future vision and features
254
+
255
+ ### πŸ“ Additional Resources
256
+ - **[Demo Directory](examples/demo/)** - Live demonstration scripts
257
+ - **[Integration Tests](tests/integration/)** - Production test scenarios
258
+
259
+ ## πŸŽͺ Interactive Notebooks
260
+
261
+ Explore comprehensive Jupyter notebooks for hands-on learning:
262
+
263
+ ```bash
264
+ # Start Jupyter to explore notebooks
265
+ jupyter notebook notebooks/
266
+
267
+ # Or run specific notebooks
268
+ jupyter notebook notebooks/01_introduction.ipynb # Getting started
269
+ jupyter notebook notebooks/02_yaml_pipelines.ipynb # YAML workflows
270
+ jupyter notebook notebooks/03_practical_workflow.ipynb # Real-world patterns
271
+ jupyter notebook notebooks/06_dynamic_reasoning_agent.ipynb # Advanced agents
272
+ ```
273
+
274
+ ### Running the Demo
275
+
276
+ ```bash
277
+ # Run the startup pitch demo
278
+ uv run python examples/demo/run_demo_pitch.py
279
+
280
+ # Or explore the YAML configuration
281
+ cat examples/demo/demo_startup_pitch.yaml
282
+ ```
283
+
284
+ ## πŸ› οΈ Development
285
+
286
+ ```bash
287
+ # Setup development environment
288
+ uv run pre-commit install
289
+
290
+ # Run tests
291
+ uv run pytest
292
+
293
+ # Code quality checks
294
+ uv run pre-commit run --all-files
295
+
296
+ # Build documentation
297
+ uv run docs-build # Build HTML documentation
298
+ uv run docs-clean # Clean build directory
299
+ uv run docs-rebuild # Clean and rebuild
300
+ uv run docs-check # Build with warnings as errors
301
+ uv run docs-autobuild # Auto-rebuild on file changes
302
+
303
+ # Documentation will be in docs/build/html/
304
+ ```
305
+
306
+ ## 🌟 Key Features
307
+
308
+ ### πŸ€– Multi-Agent Orchestration
309
+ - Sequential agent chains for complex reasoning
310
+ - Parallel specialist agents for diverse perspectives
311
+ - Hierarchical agent networks with supervisor patterns
312
+
313
+ ### πŸ“Š Data Science Integration
314
+ - Mix AI agents with traditional data processing
315
+ - Real-time streaming for Jupyter notebooks
316
+ - Built-in support for popular ML frameworks
317
+
318
+ ### 🌊 Real-Time Streaming
319
+ - WebSocket-based agent action streaming
320
+ - Memory operation visualization
321
+ - Interactive debugging and control
322
+
323
+ ### πŸ”§ Low-Code Development
324
+ - YAML-based workflow definitions
325
+ - Template system for reusable patterns
326
+ - Automatic field mapping between nodes
327
+ - Visual workflow editor (coming soon)
328
+
329
+ ### πŸ”„ Smart Data Mapping
330
+ - **Automatic Input Mapping**: Define how data flows between nodes with simple mappings
331
+ - **Nested Field Extraction**: Access deeply nested data with dot notation
332
+ - **Type Inference**: Automatic type detection from Pydantic models
333
+ - **Flexible Patterns**: Support for passthrough, rename, and prefixed mappings
334
+
335
+ ### 🎭 Powerful Macro System
336
+ - **Reusable Templates**: Define pipeline patterns once, use everywhere
337
+ - **Built-in Macros**: ConversationMacro, LLMMacro, ToolMacro, ReasoningAgentMacro
338
+ - **YAML Integration**: Seamlessly use macros in declarative pipelines
339
+ - **Dynamic Expansion**: Macros expand at runtime into full DAG subgraphs
340
+ - **Configuration Inheritance**: Override macro defaults per invocation
341
+
342
+ ## πŸ”’ Production Security
343
+
344
+ ### Docker Build Command
345
+
346
+ The `hexdag build` command generates containerized deployments from YAML pipelines.
347
+
348
+ ⚠️ **IMPORTANT**: This command is designed for **development and trusted pipelines only**.
349
+
350
+ **Production Safety:**
351
+ ```bash
352
+ # Disable build command in production environments
353
+ export HEXDAG_DISABLE_BUILD=1
354
+ ```
355
+
356
+ **For detailed documentation**, including security threat model, hardening checklist, and Docker Compose patterns, see the [CLI Reference](docs/CLI_REFERENCE.md#build---build-docker-containers).
357
+
358
+ ## 🀝 Community
359
+
360
+ - **Contributing**: See [CONTRIBUTING.md](CONTRIBUTING.md)
361
+
362
+
363
+ ## πŸ“„ License
364
+
365
+ Apache License 2.0 - see [LICENSE](LICENSE) for details.
366
+
367
+ ---
368
+
369
+ **Built with ❀️ for the AI community by the hexDAG team**