@ai.ntellect/core 0.8.3 → 1.1.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.
- package/.mocharc.json +2 -1
- package/AGENTS.md +50 -0
- package/ARCHITECTURE.md +58 -0
- package/BENCHMARK.md +38 -0
- package/CHANGELOG.md +224 -0
- package/README.md +413 -199
- package/agent/agent-workflow.ts +569 -0
- package/agent/agent.ts +183 -0
- package/{modules/agent → agent}/base/executor.ts +11 -8
- package/{modules/agent → agent}/base/index.ts +2 -14
- package/agent/entity-resolver/confidence.ts +54 -0
- package/agent/entity-resolver/entity-index.ts +241 -0
- package/agent/entity-resolver/explore-strategy.ts +82 -0
- package/agent/entity-resolver/index.ts +22 -0
- package/agent/entity-resolver/resolver.ts +193 -0
- package/agent/entity-resolver/scorer.ts +211 -0
- package/agent/entity-resolver/types.ts +98 -0
- package/agent/generic-executor.ts +713 -0
- package/agent/handlers/cognitive-handler.ts +197 -0
- package/agent/handlers/index.ts +1 -0
- package/agent/handoff.ts +58 -0
- package/agent/llm-factory.ts +343 -0
- package/agent/orchestrator.ts +45 -0
- package/{modules/agent → agent}/prompt-builder.ts +1 -1
- package/agent/registry.ts +64 -0
- package/agent/tools/file-system.ts +471 -0
- package/agent/tools/index.ts +23 -0
- package/agent/tools/logger.ts +105 -0
- package/agent/tools/tool-resolver.ts +104 -0
- package/benchmark/cortexflow-workflow.ts +182 -0
- package/benchmark/langgraph-workflow.ts +201 -0
- package/benchmark/llm-client.ts +76 -0
- package/benchmark/run-benchmark.ts +222 -0
- package/cli-dev.ts +419 -0
- package/dist/agent/agent-workflow.d.ts +41 -0
- package/dist/agent/agent-workflow.d.ts.map +1 -0
- package/dist/agent/agent-workflow.js +560 -0
- package/dist/agent/agent-workflow.js.map +1 -0
- package/dist/agent/agent.d.ts +38 -0
- package/dist/agent/agent.d.ts.map +1 -0
- package/dist/agent/agent.js +149 -0
- package/dist/agent/agent.js.map +1 -0
- package/dist/{modules/agent → agent}/base/executor.d.ts +3 -3
- package/dist/agent/base/executor.d.ts.map +1 -0
- package/dist/{modules/agent → agent}/base/executor.js +8 -5
- package/dist/agent/base/executor.js.map +1 -0
- package/dist/{modules/agent → agent}/base/index.d.ts +1 -1
- package/dist/agent/base/index.d.ts.map +1 -0
- package/dist/{modules/agent → agent}/base/index.js +0 -12
- package/dist/agent/base/index.js.map +1 -0
- package/dist/agent/entity-resolver/confidence.d.ts +4 -0
- package/dist/agent/entity-resolver/confidence.d.ts.map +1 -0
- package/dist/agent/entity-resolver/confidence.js +47 -0
- package/dist/agent/entity-resolver/confidence.js.map +1 -0
- package/dist/agent/entity-resolver/entity-index.d.ts +40 -0
- package/dist/agent/entity-resolver/entity-index.d.ts.map +1 -0
- package/dist/agent/entity-resolver/entity-index.js +244 -0
- package/dist/agent/entity-resolver/entity-index.js.map +1 -0
- package/dist/agent/entity-resolver/explore-strategy.d.ts +13 -0
- package/dist/agent/entity-resolver/explore-strategy.d.ts.map +1 -0
- package/dist/agent/entity-resolver/explore-strategy.js +109 -0
- package/dist/agent/entity-resolver/explore-strategy.js.map +1 -0
- package/dist/agent/entity-resolver/index.d.ts +8 -0
- package/dist/agent/entity-resolver/index.d.ts.map +1 -0
- package/dist/agent/entity-resolver/index.js +16 -0
- package/dist/agent/entity-resolver/index.js.map +1 -0
- package/dist/agent/entity-resolver/resolver.d.ts +18 -0
- package/dist/agent/entity-resolver/resolver.d.ts.map +1 -0
- package/dist/agent/entity-resolver/resolver.js +158 -0
- package/dist/agent/entity-resolver/resolver.js.map +1 -0
- package/dist/agent/entity-resolver/scorer.d.ts +3 -0
- package/dist/agent/entity-resolver/scorer.d.ts.map +1 -0
- package/dist/agent/entity-resolver/scorer.js +182 -0
- package/dist/agent/entity-resolver/scorer.js.map +1 -0
- package/dist/agent/entity-resolver/types.d.ts +89 -0
- package/dist/agent/entity-resolver/types.d.ts.map +1 -0
- package/dist/agent/entity-resolver/types.js +3 -0
- package/dist/agent/entity-resolver/types.js.map +1 -0
- package/dist/{modules/agent → agent}/generic-executor.d.ts +37 -27
- package/dist/agent/generic-executor.d.ts.map +1 -0
- package/dist/agent/generic-executor.js +620 -0
- package/dist/agent/generic-executor.js.map +1 -0
- package/dist/agent/handlers/cognitive-handler.d.ts +44 -0
- package/dist/agent/handlers/cognitive-handler.d.ts.map +1 -0
- package/dist/agent/handlers/cognitive-handler.js +172 -0
- package/dist/agent/handlers/cognitive-handler.js.map +1 -0
- package/dist/agent/handlers/index.d.ts +2 -0
- package/dist/agent/handlers/index.d.ts.map +1 -0
- package/dist/agent/handlers/index.js +7 -0
- package/dist/agent/handlers/index.js.map +1 -0
- package/dist/agent/handoff.d.ts +12 -0
- package/dist/agent/handoff.d.ts.map +1 -0
- package/dist/agent/handoff.js +62 -0
- package/dist/agent/handoff.js.map +1 -0
- package/dist/agent/llm-factory.d.ts.map +1 -0
- package/dist/agent/llm-factory.js +297 -0
- package/dist/agent/llm-factory.js.map +1 -0
- package/dist/agent/orchestrator.d.ts +18 -0
- package/dist/agent/orchestrator.d.ts.map +1 -0
- package/dist/agent/orchestrator.js +44 -0
- package/dist/agent/orchestrator.js.map +1 -0
- package/dist/{modules/agent → agent}/prompt-builder.d.ts +1 -1
- package/dist/agent/prompt-builder.d.ts.map +1 -0
- package/dist/agent/prompt-builder.js.map +1 -0
- package/dist/agent/registry.d.ts +19 -0
- package/dist/agent/registry.d.ts.map +1 -0
- package/dist/agent/registry.js +48 -0
- package/dist/agent/registry.js.map +1 -0
- package/dist/agent/tools/file-system.d.ts +11 -0
- package/dist/agent/tools/file-system.d.ts.map +1 -0
- package/dist/agent/tools/file-system.js +528 -0
- package/dist/agent/tools/file-system.js.map +1 -0
- package/dist/agent/tools/index.d.ts +4 -0
- package/dist/agent/tools/index.d.ts.map +1 -0
- package/dist/agent/tools/index.js +20 -0
- package/dist/agent/tools/index.js.map +1 -0
- package/dist/agent/tools/logger.d.ts +33 -0
- package/dist/agent/tools/logger.d.ts.map +1 -0
- package/dist/agent/tools/logger.js +86 -0
- package/dist/agent/tools/logger.js.map +1 -0
- package/dist/agent/tools/tool-resolver.d.ts +7 -0
- package/dist/agent/tools/tool-resolver.d.ts.map +1 -0
- package/dist/agent/tools/tool-resolver.js +122 -0
- package/dist/agent/tools/tool-resolver.js.map +1 -0
- package/dist/execution/adapters/in-memory-checkpoint.d.ts +11 -0
- package/dist/execution/adapters/in-memory-checkpoint.d.ts.map +1 -0
- package/dist/execution/adapters/in-memory-checkpoint.js +54 -0
- package/dist/execution/adapters/in-memory-checkpoint.js.map +1 -0
- package/dist/execution/compiler.d.ts +8 -0
- package/dist/execution/compiler.d.ts.map +1 -0
- package/dist/execution/compiler.js +50 -0
- package/dist/execution/compiler.js.map +1 -0
- package/dist/execution/controller.d.ts.map +1 -0
- package/dist/execution/controller.js.map +1 -0
- package/dist/execution/event-manager.d.ts +29 -0
- package/dist/execution/event-manager.d.ts.map +1 -0
- package/dist/{graph → execution}/event-manager.js +4 -114
- package/dist/execution/event-manager.js.map +1 -0
- package/dist/{graph → execution}/index.d.ts +50 -2
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +638 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/execution/logger.d.ts.map +1 -0
- package/dist/execution/logger.js.map +1 -0
- package/dist/{graph → execution}/node.d.ts +6 -1
- package/dist/execution/node.d.ts.map +1 -0
- package/dist/{graph → execution}/node.js +83 -10
- package/dist/execution/node.js.map +1 -0
- package/dist/execution/observer.d.ts.map +1 -0
- package/dist/execution/observer.js.map +1 -0
- package/dist/execution/planner.d.ts +14 -0
- package/dist/execution/planner.d.ts.map +1 -0
- package/dist/execution/planner.js +43 -0
- package/dist/execution/planner.js.map +1 -0
- package/dist/execution/reducer.d.ts +19 -0
- package/dist/execution/reducer.d.ts.map +1 -0
- package/dist/execution/reducer.js +61 -0
- package/dist/execution/reducer.js.map +1 -0
- package/dist/execution/registry.d.ts +38 -0
- package/dist/execution/registry.d.ts.map +1 -0
- package/dist/execution/registry.js +63 -0
- package/dist/execution/registry.js.map +1 -0
- package/dist/execution/send-api.d.ts +24 -0
- package/dist/execution/send-api.d.ts.map +1 -0
- package/dist/execution/send-api.js +52 -0
- package/dist/execution/send-api.js.map +1 -0
- package/dist/execution/types.parallel.d.ts +61 -0
- package/dist/execution/types.parallel.d.ts.map +1 -0
- package/dist/execution/types.parallel.js +3 -0
- package/dist/execution/types.parallel.js.map +1 -0
- package/dist/execution/visualizer.d.ts.map +1 -0
- package/dist/execution/visualizer.js.map +1 -0
- package/dist/index.d.ts +27 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -8
- package/dist/index.js.map +1 -1
- package/dist/interfaces/index.d.ts +32 -1
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/index.js.map +1 -1
- package/dist/modules/cli/index.d.ts +13 -0
- package/dist/modules/cli/index.d.ts.map +1 -0
- package/dist/modules/cli/index.js +672 -0
- package/dist/modules/cli/index.js.map +1 -0
- package/dist/modules/nlp/engine.d.ts.map +1 -1
- package/dist/modules/nlp/engine.js +0 -1
- package/dist/modules/nlp/engine.js.map +1 -1
- package/dist/persistence/index.d.ts +12 -0
- package/dist/persistence/index.d.ts.map +1 -0
- package/dist/persistence/index.js +24 -0
- package/dist/persistence/index.js.map +1 -0
- package/dist/persistence/neo4j/driver.d.ts +26 -0
- package/dist/persistence/neo4j/driver.d.ts.map +1 -0
- package/dist/persistence/neo4j/driver.js +64 -0
- package/dist/persistence/neo4j/driver.js.map +1 -0
- package/dist/persistence/neo4j/entity-store.d.ts +15 -0
- package/dist/persistence/neo4j/entity-store.d.ts.map +1 -0
- package/dist/persistence/neo4j/entity-store.js +136 -0
- package/dist/persistence/neo4j/entity-store.js.map +1 -0
- package/dist/persistence/neo4j/execution-tracer.d.ts +19 -0
- package/dist/persistence/neo4j/execution-tracer.d.ts.map +1 -0
- package/dist/persistence/neo4j/execution-tracer.js +166 -0
- package/dist/persistence/neo4j/execution-tracer.js.map +1 -0
- package/dist/persistence/neo4j/memory-adapter.d.ts +35 -0
- package/dist/persistence/neo4j/memory-adapter.d.ts.map +1 -0
- package/dist/persistence/neo4j/memory-adapter.js +252 -0
- package/dist/persistence/neo4j/memory-adapter.js.map +1 -0
- package/dist/persistence/neo4j/petri-checkpoint-adapter.d.ts +22 -0
- package/dist/persistence/neo4j/petri-checkpoint-adapter.d.ts.map +1 -0
- package/dist/persistence/neo4j/petri-checkpoint-adapter.js +141 -0
- package/dist/persistence/neo4j/petri-checkpoint-adapter.js.map +1 -0
- package/dist/pipeline/agent-pipeline.d.ts +99 -0
- package/dist/pipeline/agent-pipeline.d.ts.map +1 -0
- package/dist/pipeline/agent-pipeline.js +356 -0
- package/dist/pipeline/agent-pipeline.js.map +1 -0
- package/dist/routing/checkpoint-adapter.d.ts +30 -0
- package/dist/routing/checkpoint-adapter.d.ts.map +1 -0
- package/dist/routing/checkpoint-adapter.js +83 -0
- package/dist/routing/checkpoint-adapter.js.map +1 -0
- package/dist/routing/documentation-generator.d.ts +47 -0
- package/dist/routing/documentation-generator.d.ts.map +1 -0
- package/dist/routing/documentation-generator.js +320 -0
- package/dist/routing/documentation-generator.js.map +1 -0
- package/dist/routing/index.d.ts +38 -0
- package/dist/routing/index.d.ts.map +1 -0
- package/dist/routing/index.js +375 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/routing/intent-classifier.d.ts +206 -0
- package/dist/routing/intent-classifier.d.ts.map +1 -0
- package/dist/routing/intent-classifier.js +267 -0
- package/dist/routing/intent-classifier.js.map +1 -0
- package/dist/routing/matrix.d.ts +6 -0
- package/dist/routing/matrix.d.ts.map +1 -0
- package/dist/routing/matrix.js +131 -0
- package/dist/routing/matrix.js.map +1 -0
- package/dist/routing/orchestrator.d.ts +87 -0
- package/dist/routing/orchestrator.d.ts.map +1 -0
- package/dist/routing/orchestrator.js +425 -0
- package/dist/routing/orchestrator.js.map +1 -0
- package/dist/routing/postgres-checkpoint-adapter.d.ts +32 -0
- package/dist/routing/postgres-checkpoint-adapter.d.ts.map +1 -0
- package/dist/routing/postgres-checkpoint-adapter.js +167 -0
- package/dist/routing/postgres-checkpoint-adapter.js.map +1 -0
- package/dist/routing/redis-checkpoint-adapter.d.ts +34 -0
- package/dist/routing/redis-checkpoint-adapter.d.ts.map +1 -0
- package/dist/routing/redis-checkpoint-adapter.js +170 -0
- package/dist/routing/redis-checkpoint-adapter.js.map +1 -0
- package/dist/routing/types.d.ts +49 -0
- package/dist/routing/types.d.ts.map +1 -0
- package/dist/routing/types.js +3 -0
- package/dist/routing/types.js.map +1 -0
- package/dist/types/agent.d.ts +144 -88
- package/dist/types/agent.d.ts.map +1 -1
- package/dist/types/agent.js +49 -0
- package/dist/types/agent.js.map +1 -1
- package/dist/types/index.d.ts +46 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/generate-action-schema.d.ts +2 -3
- package/dist/utils/generate-action-schema.d.ts.map +1 -1
- package/dist/utils/generate-action-schema.js +3 -1
- package/dist/utils/generate-action-schema.js.map +1 -1
- package/dist/utils/logger.d.ts +27 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +45 -0
- package/dist/utils/logger.js.map +1 -0
- package/docs/.gitbook/assets/image (1).png +0 -0
- package/docs/.gitbook/assets/image (2).png +0 -0
- package/docs/.gitbook/assets/image (3).png +0 -0
- package/docs/.gitbook/assets/image (4).png +0 -0
- package/docs/.gitbook/assets/image (5).png +0 -0
- package/docs/.gitbook/assets/image (6).png +0 -0
- package/docs/.gitbook/assets/image.png +0 -0
- package/docs/README.md +57 -0
- package/docs/SUMMARY.md +34 -0
- package/docs/cas-dusages.md +69 -0
- package/docs/cli/README.md +65 -0
- package/docs/concepts-cles.md +50 -0
- package/docs/core/architecture.md +87 -0
- package/docs/core/benchmark.md +59 -0
- package/docs/core/checkpoint.md +72 -0
- package/docs/core/documentation.md +55 -0
- package/docs/core/graphcontroller.md +63 -0
- package/docs/core/graphflow.md +137 -0
- package/docs/core/introduction.md +41 -0
- package/docs/core/les-evenements.md +95 -0
- package/docs/modules/agenda/README.md +63 -0
- package/docs/modules/agenda/interface-iagenda.md +170 -0
- package/docs/modules/agenda/les-adaptateurs/README.md +237 -0
- package/docs/modules/agenda/les-adaptateurs/nodecronadapter.md +91 -0
- package/docs/modules/introduction.md +55 -0
- package/docs/modules/les-adaptateurs.md +52 -0
- package/docs/modules/memoire/README.md +68 -0
- package/docs/modules/memoire/interface-imemory.md +183 -0
- package/docs/modules/memoire/les-adaptateurs/README.md +209 -0
- package/docs/modules/memoire/les-adaptateurs/inmemoryadapter.md +110 -0
- package/docs/modules/memoire/les-adaptateurs/meilisearchadapter.md +147 -0
- package/docs/modules/memoire/les-adaptateurs/redisadapter.md +212 -0
- package/docs/modules/nlp/README.md +44 -0
- package/docs/philosophie.md +51 -0
- package/docs/tutoriels/ajouter-des-conditions.md +150 -0
- package/docs/tutoriels/branching.md +194 -0
- package/docs/tutoriels/checkpoint-usage.md +99 -0
- package/docs/tutoriels/creer-agent-onchain.md +1041 -0
- package/docs/tutoriels/creer-un-agent.md +108 -0
- package/docs/tutoriels/creer-un-graphe-simple.md +92 -0
- package/docs/tutoriels/gerer-les-erreurs.md +124 -0
- package/docs/tutoriels/pour-commencer.md +73 -0
- package/docs/tutoriels/retry.md +166 -0
- package/execution/adapters/in-memory-checkpoint.ts +35 -0
- package/execution/compiler.ts +47 -0
- package/{graph → execution}/event-manager.ts +4 -117
- package/{graph → execution}/index.ts +376 -8
- package/{graph → execution}/node.ts +116 -12
- package/execution/planner.ts +40 -0
- package/execution/reducer.ts +73 -0
- package/execution/registry.ts +86 -0
- package/execution/send-api.ts +58 -0
- package/execution/types.parallel.ts +81 -0
- package/index.ts +35 -8
- package/interfaces/index.ts +37 -0
- package/modules/cli/index.ts +580 -0
- package/modules/nlp/engine.ts +0 -1
- package/package.json +50 -16
- package/persistence/index.ts +27 -0
- package/persistence/neo4j/driver.ts +34 -0
- package/persistence/neo4j/entity-store.ts +141 -0
- package/persistence/neo4j/execution-tracer.ts +194 -0
- package/persistence/neo4j/memory-adapter.ts +281 -0
- package/persistence/neo4j/petri-checkpoint-adapter.ts +153 -0
- package/pipeline/agent-pipeline.ts +426 -0
- package/routing/checkpoint-adapter.ts +79 -0
- package/routing/documentation-generator.ts +358 -0
- package/routing/index.ts +459 -0
- package/routing/intent-classifier.ts +360 -0
- package/routing/matrix.ts +138 -0
- package/routing/orchestrator.ts +498 -0
- package/routing/patterns/data-extraction.json +79 -0
- package/routing/patterns/human-approval.json +64 -0
- package/routing/patterns/rag-search.json +68 -0
- package/routing/postgres-checkpoint-adapter.ts +172 -0
- package/routing/redis-checkpoint-adapter.ts +187 -0
- package/routing/types.ts +59 -0
- package/routing/web-server.ts +260 -0
- package/scripts/generate-petri-docs.ts +70 -0
- package/scripts/get-gmail-token.js +65 -0
- package/scripts/get-gmail-token.ts +65 -0
- package/test/agent/agent.test.ts +92 -0
- package/test/agent/clone.test.ts +143 -0
- package/test/agent/cognitive-handler.test.ts +78 -0
- package/test/agent/entity-store.test.ts +80 -0
- package/test/agent/generic-executor.test.ts +230 -0
- package/test/agent/handoff.test.ts +163 -0
- package/test/agent/llm-factory.test.ts +40 -0
- package/test/agent/orchestrator.test.ts +156 -0
- package/test/agent/registry.test.ts +97 -0
- package/test/agent/tools.test.ts +267 -0
- package/test/execution/checkpoint.test.ts +811 -0
- package/test/{graph → execution}/controller.test.ts +2 -2
- package/test/{graph → execution}/event-manager.test.ts +1 -1
- package/test/{graph → execution}/index.test.ts +24 -15
- package/test/{graph → execution}/node.test.ts +3 -3
- package/test/{graph → execution}/observer.test.ts +2 -2
- package/test/execution/parallel.test.ts +135 -0
- package/test/execution/plan-llm-integration.test.ts +290 -0
- package/test/execution/plan-real-onchain.test.ts +226 -0
- package/test/execution/send-api.test.ts +121 -0
- package/test/modules/cli/index.test.ts +125 -0
- package/test/persistence/neo4j-execution-tracer.test.ts +96 -0
- package/test/persistence/neo4j-memory-adapter.test.ts +107 -0
- package/test/persistence/neo4j-petri-checkpoint.test.ts +89 -0
- package/test/pipeline/agent-pipeline.test.ts +118 -0
- package/test/routing/checkpoint-persistence.test.ts +58 -0
- package/test/routing/documentation-generator.test.ts +76 -0
- package/test/routing/integration.test.ts +261 -0
- package/test/routing/intent-classifier.test.ts +102 -0
- package/test/routing/petri.test.ts +156 -0
- package/test/routing/real-llm.test.ts +260 -0
- package/test-petri-features.ts +218 -0
- package/test-pipeline-api.ts +163 -0
- package/tsconfig.json +5 -2
- package/types/agent.ts +126 -4
- package/types/index.ts +66 -5
- package/utils/generate-action-schema.ts +5 -4
- package/utils/logger.ts +40 -0
- package/dist/graph/controller.d.ts.map +0 -1
- package/dist/graph/controller.js.map +0 -1
- package/dist/graph/event-manager.d.ts +0 -101
- package/dist/graph/event-manager.d.ts.map +0 -1
- package/dist/graph/event-manager.js.map +0 -1
- package/dist/graph/index.d.ts.map +0 -1
- package/dist/graph/index.js +0 -340
- package/dist/graph/index.js.map +0 -1
- package/dist/graph/logger.d.ts.map +0 -1
- package/dist/graph/logger.js.map +0 -1
- package/dist/graph/node.d.ts.map +0 -1
- package/dist/graph/node.js.map +0 -1
- package/dist/graph/observer.d.ts.map +0 -1
- package/dist/graph/observer.js.map +0 -1
- package/dist/graph/visualizer.d.ts.map +0 -1
- package/dist/graph/visualizer.js.map +0 -1
- package/dist/modules/agent/agent.d.ts +0 -35
- package/dist/modules/agent/agent.d.ts.map +0 -1
- package/dist/modules/agent/agent.js +0 -103
- package/dist/modules/agent/agent.js.map +0 -1
- package/dist/modules/agent/base/executor.d.ts.map +0 -1
- package/dist/modules/agent/base/executor.js.map +0 -1
- package/dist/modules/agent/base/index.d.ts.map +0 -1
- package/dist/modules/agent/base/index.js.map +0 -1
- package/dist/modules/agent/generic-assistant.d.ts +0 -20
- package/dist/modules/agent/generic-assistant.d.ts.map +0 -1
- package/dist/modules/agent/generic-assistant.js +0 -89
- package/dist/modules/agent/generic-assistant.js.map +0 -1
- package/dist/modules/agent/generic-executor.d.ts.map +0 -1
- package/dist/modules/agent/generic-executor.js +0 -189
- package/dist/modules/agent/generic-executor.js.map +0 -1
- package/dist/modules/agent/llm-factory.d.ts.map +0 -1
- package/dist/modules/agent/llm-factory.js +0 -56
- package/dist/modules/agent/llm-factory.js.map +0 -1
- package/dist/modules/agent/prompt-builder.d.ts.map +0 -1
- package/dist/modules/agent/prompt-builder.js.map +0 -1
- package/dist/modules/memory/adapters/in-memory/index.d.ts +0 -120
- package/dist/modules/memory/adapters/in-memory/index.d.ts.map +0 -1
- package/dist/modules/memory/adapters/in-memory/index.js +0 -212
- package/dist/modules/memory/adapters/in-memory/index.js.map +0 -1
- package/dist/modules/memory/adapters/meilisearch/index.d.ts +0 -110
- package/dist/modules/memory/adapters/meilisearch/index.d.ts.map +0 -1
- package/dist/modules/memory/adapters/meilisearch/index.js +0 -324
- package/dist/modules/memory/adapters/meilisearch/index.js.map +0 -1
- package/dist/modules/memory/adapters/redis/index.d.ts +0 -82
- package/dist/modules/memory/adapters/redis/index.d.ts.map +0 -1
- package/dist/modules/memory/adapters/redis/index.js +0 -160
- package/dist/modules/memory/adapters/redis/index.js.map +0 -1
- package/dist/modules/memory/index.d.ts +0 -67
- package/dist/modules/memory/index.d.ts.map +0 -1
- package/dist/modules/memory/index.js +0 -104
- package/dist/modules/memory/index.js.map +0 -1
- package/modules/agent/agent.ts +0 -107
- package/modules/agent/generic-assistant.ts +0 -92
- package/modules/agent/generic-executor.ts +0 -252
- package/modules/agent/llm-factory.ts +0 -47
- package/modules/memory/adapters/in-memory/index.ts +0 -208
- package/modules/memory/adapters/meilisearch/index.ts +0 -364
- package/modules/memory/adapters/redis/index.ts +0 -165
- package/modules/memory/index.ts +0 -93
- package/test/modules/memory/adapters/in-memory.test.ts +0 -153
- package/test/modules/memory/adapters/meilisearch.test.ts +0 -287
- package/test/modules/memory/base.test.ts +0 -230
- /package/dist/{modules/agent → agent}/llm-factory.d.ts +0 -0
- /package/dist/{modules/agent → agent}/prompt-builder.js +0 -0
- /package/dist/{graph → execution}/controller.d.ts +0 -0
- /package/dist/{graph → execution}/controller.js +0 -0
- /package/dist/{graph → execution}/logger.d.ts +0 -0
- /package/dist/{graph → execution}/logger.js +0 -0
- /package/dist/{graph → execution}/observer.d.ts +0 -0
- /package/dist/{graph → execution}/observer.js +0 -0
- /package/dist/{graph → execution}/visualizer.d.ts +0 -0
- /package/dist/{graph → execution}/visualizer.js +0 -0
- /package/{graph → execution}/controller.ts +0 -0
- /package/{graph → execution}/logger.ts +0 -0
- /package/{graph → execution}/observer.ts +0 -0
- /package/{graph → execution}/visualizer.ts +0 -0
package/.mocharc.json
CHANGED
package/AGENTS.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
## Project
|
|
4
|
+
- `@ai.ntellect/core` v0.12.0 — pnpm v10.33.0
|
|
5
|
+
- **Thesis**: LLM as **Classifier** → **Routing** (Petri Net) → **Execution** (GraphFlow)
|
|
6
|
+
- `pnpm install` runs `prepare` script (`tsc`), so build is automatic on install
|
|
7
|
+
|
|
8
|
+
## Commands
|
|
9
|
+
```sh
|
|
10
|
+
pnpm run build # tsc → dist/
|
|
11
|
+
pnpm test # Mocha via ts-node (5s timeout, .mocharc.json)
|
|
12
|
+
pnpm run test:all # test/**/*.test.ts
|
|
13
|
+
pnpm test --grep "suite" # focused suite
|
|
14
|
+
pnpm run test:watch # watch mode
|
|
15
|
+
pnpm run test:watch:execution # watch only execution tests
|
|
16
|
+
```
|
|
17
|
+
**Real LLM**: `pnpm test --grep "CortexFlow Real LLM"` (needs Ollama `llama3:latest` at `:11434`)
|
|
18
|
+
|
|
19
|
+
## Architecture (Bounded Contexts)
|
|
20
|
+
```
|
|
21
|
+
index.ts → public API barrel
|
|
22
|
+
execution/ → GraphFlow (typed nodes, events, checkpoints, planner, compiler)
|
|
23
|
+
routing/ → PetriNet, CortexFlowOrchestrator, IntentClassifier
|
|
24
|
+
agent/ → Agent, GenericExecutor, handlers, tools
|
|
25
|
+
persistence/ → barrel re-exporting Memory + checkpoint adapters
|
|
26
|
+
pipeline/ → AgentPipeline (trigger → stages → gate)
|
|
27
|
+
modules/ → remaining plugins: agenda, cli, embedding, memory, nlp
|
|
28
|
+
interfaces/ → contract interfaces
|
|
29
|
+
types/ → Zod schemas (use z.unknown(), NOT z.any())
|
|
30
|
+
app/ → Next.js frontend (independent, not part of core build)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Path Alias
|
|
34
|
+
`@/*` → `./*` (tsconfig paths). Safe to use in core source.
|
|
35
|
+
|
|
36
|
+
### TS Config Notes
|
|
37
|
+
- `routing/web-server.ts` is explicitly excluded from build (missing express/socket.io types)
|
|
38
|
+
- `test/` and `examples/` are excluded from tsc (ts-node handles them at runtime)
|
|
39
|
+
|
|
40
|
+
## CLI Tools
|
|
41
|
+
- **Agent REPL**: `pnpm cli -p <provider> -m <model>` (openai, ollama, groq, openrouter, google)
|
|
42
|
+
- **Debugger**: `npx ts-node cli-dev.ts [workflow.json]`
|
|
43
|
+
|
|
44
|
+
## Constraints
|
|
45
|
+
- Use native `fetch` (Node 18+). **No axios.**
|
|
46
|
+
- Use Zod v4+ syntax. Prefer `z.unknown()` over `z.any()`.
|
|
47
|
+
- `.env` auto-loaded by CLI; test suite does NOT preload dotenv
|
|
48
|
+
|
|
49
|
+
## Pre-existing Test Quirks
|
|
50
|
+
- Real LLM Ollama tests (`test/routing/real-llm.test.ts`) are flaky — Ollama occasionally returns `UNKNOWN` instead of the expected intent. Not caused by code changes.
|
package/ARCHITECTURE.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# @ai.ntellect/core — Architecture
|
|
2
|
+
|
|
3
|
+
## Core Architecture
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
User Message
|
|
7
|
+
↓
|
|
8
|
+
IntentClassifier (1 LLM call — classify intent)
|
|
9
|
+
↓
|
|
10
|
+
PetriNet (deterministic token-based routing — no LLM)
|
|
11
|
+
↓
|
|
12
|
+
GraphFlow (node execution — tools, APIs, optional dynamic plan)
|
|
13
|
+
↓
|
|
14
|
+
Zod Validation (typed state at every step)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Key Components
|
|
18
|
+
|
|
19
|
+
| Component | Role |
|
|
20
|
+
|-----------|------|
|
|
21
|
+
| `CortexFlowOrchestrator` | Top-level coordinator: intent → Petri net → GraphFlow |
|
|
22
|
+
| `PetriNet` | Formally-verified state machine (deadlock detection, boundedness) |
|
|
23
|
+
| `IntentClassifier` | Single-LLM-call intent resolution with confidence thresholding |
|
|
24
|
+
| `GraphFlow` | Graph container: name, schema, context, nodes |
|
|
25
|
+
| `GraphNode` | Execution engine: runs nodes, handles transitions |
|
|
26
|
+
| `GraphEventManager` | Event system: RxJS Subjects + EventEmitter |
|
|
27
|
+
| `GraphObserver` | Reactive API: subscribe to state/events |
|
|
28
|
+
| `CheckpointAdapter` | Persistence: save/resume state |
|
|
29
|
+
| `ToolRegistry` | Registry of GraphFlow tools available to transitions |
|
|
30
|
+
| `AgentPipeline` | Declarative workflow pipelines with triggers, human gates, retry logic |
|
|
31
|
+
|
|
32
|
+
## Design Principles
|
|
33
|
+
|
|
34
|
+
### 1. LLM as Planner, Not Runtime
|
|
35
|
+
The LLM makes **one decision** (intent classification), then the Petri Net handles all routing deterministically. This prevents context bloat in long sessions.
|
|
36
|
+
|
|
37
|
+
### 2. Formal Verification
|
|
38
|
+
Petri Nets enable static analysis before deployment:
|
|
39
|
+
- **Deadlock detection** — identify blocking states before runtime
|
|
40
|
+
- **Boundedness check** — verify token counts stay bounded
|
|
41
|
+
- **Reachability analysis** — enumerate all reachable states
|
|
42
|
+
|
|
43
|
+
These checks run via `matrix.ts` at build time.
|
|
44
|
+
|
|
45
|
+
### 3. Typed State Everywhere
|
|
46
|
+
Zod schemas validate context at every node transition. If types don't match, the workflow fails fast.
|
|
47
|
+
|
|
48
|
+
### 4. Deterministic Routing
|
|
49
|
+
Once intent is classified, all routing is token-based through the Petri Net — no additional LLM calls for routing decisions.
|
|
50
|
+
|
|
51
|
+
## Why Petri Nets?
|
|
52
|
+
|
|
53
|
+
Unlike state machines or simple graphs, Petri Nets provide:
|
|
54
|
+
- **Concurrency modeling** — tokens can exist in multiple places simultaneously
|
|
55
|
+
- **Static analysis** — mathematical properties can be verified
|
|
56
|
+
- **Formal semantics** — unambiguous behavior definition
|
|
57
|
+
|
|
58
|
+
This makes them ideal for workflows where correctness matters more than flexibility.
|
package/BENCHMARK.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @ai.ntellect/core — Benchmarks
|
|
2
|
+
|
|
3
|
+
## Scenario
|
|
4
|
+
Fetch 5 emails → batch-classify urgency → draft replies for urgent ones → archive the rest.
|
|
5
|
+
|
|
6
|
+
Run with:
|
|
7
|
+
```sh
|
|
8
|
+
pnpm run benchmark # requires Ollama + llama3:latest, or GROQ_API_KEY in .env
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Results below are measured, not projected. A warmup call is made before each timer starts to exclude model loading.
|
|
12
|
+
|
|
13
|
+
CortexFlow uses a `HybridIntentClassifier` — keyword rules resolve unambiguous commands in microseconds; the LLM is only called when the message is genuinely ambiguous. All other routing is handled by the Petri Net with no additional LLM calls.
|
|
14
|
+
|
|
15
|
+
### Ollama local — llama3:latest
|
|
16
|
+
|
|
17
|
+
| | CortexFlow | LangGraph naive | LangGraph optimised |
|
|
18
|
+
|---|---|---|---|
|
|
19
|
+
| LLM calls | **2** | 7 | 2 |
|
|
20
|
+
| Total time | **4.1s** | 3.7s | 4.2s |
|
|
21
|
+
| vs naive | **0.9× speed** (71% fewer LLM calls) | baseline | 0.9× slower |
|
|
22
|
+
|
|
23
|
+
**CortexFlow reduces LLM calls by 71% vs LangGraph naive, with full traceability and formal Petri Net verification.**
|
|
24
|
+
|
|
25
|
+
### Groq API — llama-3.1-8b-instant
|
|
26
|
+
|
|
27
|
+
| | CortexFlow | LangGraph naive | LangGraph optimised |
|
|
28
|
+
|---|---|---|---|
|
|
29
|
+
| LLM calls | **1** | 7 | 2 |
|
|
30
|
+
| Total time | **1 650 ms** | 2 192 ms | 1 668 ms |
|
|
31
|
+
| vs naive | **1.33× faster** | baseline | 1.31× faster |
|
|
32
|
+
|
|
33
|
+
**LLM call reduction vs naive: −86% on both backends.**
|
|
34
|
+
|
|
35
|
+
## Interpretation
|
|
36
|
+
- CortexFlow trades a small speed overhead on local Ollama for 71% fewer LLM calls and formal verification
|
|
37
|
+
- On fast API backends (Groq), CortexFlow is faster than LangGraph naive while using 86% fewer LLM calls
|
|
38
|
+
- All routing beyond intent classification is deterministic and LLM-free, avoiding context bloat in long sessions
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [1.1.0] - 2026-06-17
|
|
6
|
+
|
|
7
|
+
### 🚀 Added
|
|
8
|
+
- **Graph Observability & Persistence (Neo4j)**: First-class support for Neo4j as an observability and persistence backend.
|
|
9
|
+
- `Neo4jExecutionTracer`: Zero-invasion event listener that visually maps `GraphFlow` execution paths (`Execution` -> `NodeRun`).
|
|
10
|
+
- `Neo4jMemoryAdapter`: Supports standard vector memory along with complex semantic graph relations (`RELATES_TO`).
|
|
11
|
+
- `Neo4jEntityStore`: Persistent agent entity resolution indexing file structures and intent history.
|
|
12
|
+
- `Neo4jPetriCheckpointAdapter`: Persist `PetriNet` checkpoints directly into the graph.
|
|
13
|
+
|
|
14
|
+
### 🧹 Refactored & Simplified
|
|
15
|
+
- **CognitiveHandler Consolidation**: `DynamicGoalHandler` and `DynamicNextHandler` have been fused into a single lightweight `CognitiveHandler` used by the `GenericExecutor`.
|
|
16
|
+
- **EntityIndex Simplification**: Consolidated the redundant lookup maps inside `EntityIndex` down to a single synchronized store with write-behind support for the new EntityStore pattern.
|
|
17
|
+
- **Event Manager Cleanup**: Removed duplicated RxJS event streams (`nodeStreams`) and dead loops in `execution/event-manager.ts` while maintaining public API compatibility for `GraphFlow`.
|
|
18
|
+
- **Package Size Optimization**: Moved heavy dependencies only used in examples (`viem`, `googleapis`, `@nktkas/hyperliquid`, `@langchain/*`) to `devDependencies`. Neo4j driver added as an optional `peerDependency`.
|
|
19
|
+
|
|
20
|
+
## [Unreleased]
|
|
21
|
+
|
|
22
|
+
### 🚀 Added
|
|
23
|
+
|
|
24
|
+
* **Petri Core Public API**
|
|
25
|
+
`PetriNet`, `CortexFlowOrchestrator`, `IntentClassifier`, `HybridIntentClassifier`, and checkpoint adapters (Redis, PostgreSQL) are now exported from the root `index.ts`.
|
|
26
|
+
→ Makes the deterministic routing thesis accessible to consumers of the package.
|
|
27
|
+
|
|
28
|
+
* **Extracted Cognitive Handlers**
|
|
29
|
+
`DynamicGoalHandler` and `DynamicNextHandler` extracted from the monolithic `GenericExecutor` into focused, independently testable classes in `agent/handlers/`.
|
|
30
|
+
→ Enables unit-testing goal computation and next-state routing without instantiating the full executor.
|
|
31
|
+
|
|
32
|
+
* **Extracted Agent Workflow Builder**
|
|
33
|
+
`buildAgentWorkflow()` extracted from `Agent.setupWorkflow()` into `agent/agent-workflow.ts`.
|
|
34
|
+
→ Makes the cognitive node graph (defineGoal → think → execute → reply) testable and reusable without the `Agent` class.
|
|
35
|
+
|
|
36
|
+
* **Persistence Barrel**
|
|
37
|
+
`persistence/index.ts` re-exports `Memory`, `InMemoryCheckpointAdapter`, and Petri checkpoint adapters as a unified storage layer.
|
|
38
|
+
→ Simplifies imports when using both memory and checkpoint adapters together.
|
|
39
|
+
|
|
40
|
+
### 🔧 Changed
|
|
41
|
+
|
|
42
|
+
* **Agent Refactored to Pure Orchestrator**
|
|
43
|
+
`Agent` class now delegates to `GenericExecutor` (handlers) and `buildAgentWorkflow()` instead of defining inline closure-heavy nodes.
|
|
44
|
+
→ Each responsibility (goal, next-state, action execution) is handled by a focused module.
|
|
45
|
+
|
|
46
|
+
* **Dead Code Elimination**
|
|
47
|
+
Removed `routing/agent-pipeline.ts` (duplicate of `pipeline/agent-pipeline.ts` — confirmed zero imports).
|
|
48
|
+
→ Eliminates the architectural ambiguity of having two competing `AgentPipeline` abstractions.
|
|
49
|
+
|
|
50
|
+
* **Orphaned Patterns Removed**
|
|
51
|
+
Removed `execution/worker-pool.ts`, `execution/workers/cpu-worker.ts`, `execution/subgraph.ts`, and `agent/generic-assistant.ts` — all confirmed dead code with zero imports across the codebase.
|
|
52
|
+
→ Reduces maintenance surface and clarifies what the core engine actually needs.
|
|
53
|
+
|
|
54
|
+
* **Bounded Contexts Restructure**
|
|
55
|
+
Renamed directories to match domain boundaries:
|
|
56
|
+
- `graph/` → `execution/` (GraphFlow engine)
|
|
57
|
+
- `petri/` → `routing/` (PetriNet, CortexFlow)
|
|
58
|
+
- `modules/agent/` → `agent/` (promoted to root-level bounded context)
|
|
59
|
+
All imports updated across the codebase, test directories renamed accordingly. Public API (`index.ts` exports) and package consumers are unaffected.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## [0.12.0] - 2026-05-03
|
|
64
|
+
|
|
65
|
+
### 🚀 Added
|
|
66
|
+
|
|
67
|
+
* **CortexFlow Orchestration**
|
|
68
|
+
Stop LLMs from deciding your execution path.
|
|
69
|
+
$\rightarrow$ Eliminates routing hallucinations and uncontrolled tool selection.
|
|
70
|
+
|
|
71
|
+
* **Hybrid Intent Classification**
|
|
72
|
+
Cut latency and eliminate classification guesswork with keyword-first detection and LLM fallback.
|
|
73
|
+
$\rightarrow$ Increases reliability in production workloads.
|
|
74
|
+
|
|
75
|
+
* **Multi-Intent Execution**
|
|
76
|
+
One message, multiple workflows.
|
|
77
|
+
$\rightarrow$ Enables compound flows (e.g. fetch $\rightarrow$ process $\rightarrow$ notify) without repeated chatting.
|
|
78
|
+
|
|
79
|
+
* **Formal Verification for Workflows**
|
|
80
|
+
Mathematically prove your agent can't deadlock.
|
|
81
|
+
$\rightarrow$ Prevents invalid execution graphs before runtime.
|
|
82
|
+
|
|
83
|
+
* **Persistent Execution State**
|
|
84
|
+
Stop losing state on crashes with Redis and PostgreSQL checkpoint adapters.
|
|
85
|
+
$\rightarrow$ Enables long-running, fault-tolerant agents.
|
|
86
|
+
|
|
87
|
+
* **Petri Pattern Library**
|
|
88
|
+
Stop starting from scratch. Prebuilt templates for Human-Approval, RAG, and Structured Data Extraction.
|
|
89
|
+
$\rightarrow$ Accelerates the building of common agent patterns.
|
|
90
|
+
|
|
91
|
+
* **Benchmark Suite**
|
|
92
|
+
The Proof: CortexFlow vs LangGraph.
|
|
93
|
+
$\rightarrow$ Demonstrates significant reduction in LLM calls and lower latency.
|
|
94
|
+
|
|
95
|
+
* **Production-Centric Documentation**
|
|
96
|
+
Complete overhaul of the `/docs` folder and README.
|
|
97
|
+
$\rightarrow$ Shifts focus from technical manual to product-centric "Control Layer" guide.
|
|
98
|
+
|
|
99
|
+
### 🔧 Changed
|
|
100
|
+
|
|
101
|
+
* **Architecture Positioning**
|
|
102
|
+
Framework redefined as: **“A control layer for LLM systems”** rather than a general-purpose agent framework.
|
|
103
|
+
$\rightarrow$ Clearly differentiates the system from probabilistic autonomous agents.
|
|
104
|
+
|
|
105
|
+
* **Zod Upgrade**
|
|
106
|
+
Migrated to latest schema validation patterns for stricter runtime guarantees.
|
|
107
|
+
|
|
108
|
+
### 🐛 Fixed
|
|
109
|
+
|
|
110
|
+
* Improved stability in benchmark execution under high concurrency.
|
|
111
|
+
* Fixed inconsistent Petri transition edge cases under concurrent token updates.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## [0.11.0] - 2026-05-02
|
|
116
|
+
|
|
117
|
+
### 🚀 Added
|
|
118
|
+
|
|
119
|
+
* **Plan $\rightarrow$ Compile $\rightarrow$ Execute Pattern**
|
|
120
|
+
Implemented a pattern where the LLM generates a Zod-validated plan, which is then compiled into a deterministic GraphFlow.
|
|
121
|
+
$\rightarrow$ Ensures the LLM handles the "What" (planning) while the system handles the "How" (execution).
|
|
122
|
+
|
|
123
|
+
* **Advanced Verification Suite**
|
|
124
|
+
Integrated real-world LLM tests (via Groq) and on-chain tests (via Sepolia).
|
|
125
|
+
$\rightarrow$ Guarantees reliability in actual production environments.
|
|
126
|
+
|
|
127
|
+
### 🔧 Changed
|
|
128
|
+
|
|
129
|
+
* **AI-Optimized Instructions**
|
|
130
|
+
Updated `AGENTS.md` with high-signal guidance for AI agents contributing to the repo.
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## [0.10.0] - 2026-04-30
|
|
135
|
+
|
|
136
|
+
### 🚀 Added
|
|
137
|
+
|
|
138
|
+
* **Checkpoint & Time-Travel System**
|
|
139
|
+
Implemented save/resume functionality with the ability to jump back to any state.
|
|
140
|
+
$\rightarrow$ Enables bulletproof debugging and long-term workflow persistence.
|
|
141
|
+
|
|
142
|
+
* **Interactive Steering CLI**
|
|
143
|
+
Added a REPL with slash commands for real-time agent oversight.
|
|
144
|
+
$\rightarrow$ Allows developers to approve, reject, or modify agent state mid-execution.
|
|
145
|
+
|
|
146
|
+
* **Multi-Graph Orchestration**
|
|
147
|
+
Introduced `GraphController` to manage multiple GraphFlows in parallel or sequence.
|
|
148
|
+
$\rightarrow$ Allows building complex, modular systems from simple, testable graphs.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## [0.8.0] - 2025-04-13
|
|
153
|
+
|
|
154
|
+
### 🚀 Added
|
|
155
|
+
|
|
156
|
+
* **Configurable Cognitive Agents**
|
|
157
|
+
Introduced an `Agent` class with cognitive loops and tool integration.
|
|
158
|
+
$\rightarrow$ Bridges the gap between pure workflows and interactive assistants.
|
|
159
|
+
|
|
160
|
+
* **Low-Latency NLP Engine**
|
|
161
|
+
Integrated `@nlpjs/basic` for intent detection without needing an LLM call.
|
|
162
|
+
$\rightarrow$ Drastically reduces cost and latency for simple classification tasks.
|
|
163
|
+
|
|
164
|
+
* **Standardized Prompting & LLM Factory**
|
|
165
|
+
Implemented `PromptBuilder` and `LLMFactory` for consistent model handling.
|
|
166
|
+
$\rightarrow$ Simplifies switching between providers (OpenAI, Groq, Ollama).
|
|
167
|
+
|
|
168
|
+
### 🔧 Changed
|
|
169
|
+
|
|
170
|
+
* **Event Correlation Logic**
|
|
171
|
+
Enhanced `waitForCorrelatedEvents` for precision in multi-user environments.
|
|
172
|
+
$\rightarrow$ Prevents event "leakage" between different workflow instances.
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## [0.6.0] - 2025-02-04
|
|
177
|
+
|
|
178
|
+
### 🚀 Added
|
|
179
|
+
|
|
180
|
+
* **Reactive State Observation**
|
|
181
|
+
Implemented `GraphObserver` using RxJS for real-time state tracking.
|
|
182
|
+
$\rightarrow$ Enables building live dashboards and monitoring tools for agents.
|
|
183
|
+
|
|
184
|
+
* **Concurrent Execution Model**
|
|
185
|
+
Added Fork-Join parallelism and event-driven nodes to `GraphFlow`.
|
|
186
|
+
$\rightarrow$ Allows agents to perform multiple tasks simultaneously and wait for external triggers.
|
|
187
|
+
|
|
188
|
+
* **Enterprise Persistence**
|
|
189
|
+
Integrated Redis and Meilisearch adapters for shared, persistent state.
|
|
190
|
+
$\rightarrow$ Moves the system from "in-memory" to "distributed production" ready.
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## [0.3.0] - 2025-01-20
|
|
195
|
+
|
|
196
|
+
### 🚀 Added
|
|
197
|
+
|
|
198
|
+
* **Advanced Memory Management**
|
|
199
|
+
Implemented `AgentRuntime` with dynamic action processing.
|
|
200
|
+
$\rightarrow$ Improves how agents remember and utilize previous tool outputs.
|
|
201
|
+
|
|
202
|
+
* **Action Scheduling**
|
|
203
|
+
Added the ability to schedule and cancel future actions.
|
|
204
|
+
$\rightarrow$ Enables agents to handle time-delayed tasks and reminders.
|
|
205
|
+
|
|
206
|
+
### 🔧 Changed
|
|
207
|
+
|
|
208
|
+
* **Result Interpretation**
|
|
209
|
+
Replaced `Synthesizer` with a more robust `Interpreter` class.
|
|
210
|
+
$\rightarrow$ Improves the quality and structure of final AI responses.
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## [0.0.x - 0.1.x] - 2025-01-15 to 2025-01-20
|
|
215
|
+
|
|
216
|
+
### 🚀 Added
|
|
217
|
+
|
|
218
|
+
* **Core Engine Foundations**
|
|
219
|
+
Initial implementation of `GraphFlow` and the event-driven execution model.
|
|
220
|
+
$\rightarrow$ Established the baseline for typed, deterministic workflow management.
|
|
221
|
+
|
|
222
|
+
* **Agent & Memory Basics**
|
|
223
|
+
Introduced basic `Agent` classes and in-memory storage adapters.
|
|
224
|
+
$\rightarrow$ Provided the first functional tool-using AI assistants.
|