@relkit/langchain 0.0.0-stage → 0.7.11
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/LICENSE +21 -0
- package/README.md +48 -2
- package/dist/client-contract-metadata.d.ts +31 -0
- package/dist/client-contract-metadata.d.ts.map +1 -0
- package/dist/client-contract-metadata.js +129 -0
- package/dist/client-contract-metadata.js.map +1 -0
- package/dist/client-contract-metadata.types.d.ts +59 -0
- package/dist/client-contract-metadata.types.d.ts.map +1 -0
- package/dist/client-contract-metadata.types.js +3 -0
- package/dist/client-contract-metadata.types.js.map +1 -0
- package/dist/client-contract-schema.d.ts +66 -0
- package/dist/client-contract-schema.d.ts.map +1 -0
- package/dist/client-contract-schema.js +153 -0
- package/dist/client-contract-schema.js.map +1 -0
- package/dist/continuation-validation.d.ts +9 -0
- package/dist/continuation-validation.d.ts.map +1 -0
- package/dist/continuation-validation.js +9 -0
- package/dist/continuation-validation.js.map +1 -0
- package/dist/deepagent-bucket-backend.d.ts +33 -0
- package/dist/deepagent-bucket-backend.d.ts.map +1 -0
- package/dist/deepagent-bucket-backend.js +47 -0
- package/dist/deepagent-bucket-backend.js.map +1 -0
- package/dist/deepagent-bucket-backend.types.d.ts +6 -0
- package/dist/deepagent-bucket-backend.types.d.ts.map +1 -0
- package/dist/deepagent-bucket-backend.types.js +2 -0
- package/dist/deepagent-bucket-backend.types.js.map +1 -0
- package/dist/deepagent-bucket-client.types.d.ts +25 -0
- package/dist/deepagent-bucket-client.types.d.ts.map +1 -0
- package/dist/deepagent-bucket-client.types.js +3 -0
- package/dist/deepagent-bucket-client.types.js.map +1 -0
- package/dist/deepagent-bucket-delete.d.ts +28 -0
- package/dist/deepagent-bucket-delete.d.ts.map +1 -0
- package/dist/deepagent-bucket-delete.js +64 -0
- package/dist/deepagent-bucket-delete.js.map +1 -0
- package/dist/deepagent-bucket-error.d.ts +17 -0
- package/dist/deepagent-bucket-error.d.ts.map +1 -0
- package/dist/deepagent-bucket-error.js +17 -0
- package/dist/deepagent-bucket-error.js.map +1 -0
- package/dist/deepagent-bucket-file-data.d.ts +40 -0
- package/dist/deepagent-bucket-file-data.d.ts.map +1 -0
- package/dist/deepagent-bucket-file-data.js +115 -0
- package/dist/deepagent-bucket-file-data.js.map +1 -0
- package/dist/deepagent-bucket-file-index.d.ts +34 -0
- package/dist/deepagent-bucket-file-index.d.ts.map +1 -0
- package/dist/deepagent-bucket-file-index.js +82 -0
- package/dist/deepagent-bucket-file-index.js.map +1 -0
- package/dist/deepagent-bucket-files.d.ts +5 -0
- package/dist/deepagent-bucket-files.d.ts.map +1 -0
- package/dist/deepagent-bucket-files.js +4 -0
- package/dist/deepagent-bucket-files.js.map +1 -0
- package/dist/deepagent-bucket-files.types.d.ts +8 -0
- package/dist/deepagent-bucket-files.types.d.ts.map +1 -0
- package/dist/deepagent-bucket-files.types.js +3 -0
- package/dist/deepagent-bucket-files.types.js.map +1 -0
- package/dist/deepagent-bucket-format.d.ts +59 -0
- package/dist/deepagent-bucket-format.d.ts.map +1 -0
- package/dist/deepagent-bucket-format.js +72 -0
- package/dist/deepagent-bucket-format.js.map +1 -0
- package/dist/deepagent-bucket-glob.d.ts +26 -0
- package/dist/deepagent-bucket-glob.d.ts.map +1 -0
- package/dist/deepagent-bucket-glob.js +66 -0
- package/dist/deepagent-bucket-glob.js.map +1 -0
- package/dist/deepagent-bucket-grep.d.ts +32 -0
- package/dist/deepagent-bucket-grep.d.ts.map +1 -0
- package/dist/deepagent-bucket-grep.js +73 -0
- package/dist/deepagent-bucket-grep.js.map +1 -0
- package/dist/deepagent-bucket-path.d.ts +67 -0
- package/dist/deepagent-bucket-path.d.ts.map +1 -0
- package/dist/deepagent-bucket-path.js +121 -0
- package/dist/deepagent-bucket-path.js.map +1 -0
- package/dist/deepagent-bucket-read.d.ts +65 -0
- package/dist/deepagent-bucket-read.d.ts.map +1 -0
- package/dist/deepagent-bucket-read.js +77 -0
- package/dist/deepagent-bucket-read.js.map +1 -0
- package/dist/deepagent-bucket-scope.d.ts +43 -0
- package/dist/deepagent-bucket-scope.d.ts.map +1 -0
- package/dist/deepagent-bucket-scope.js +40 -0
- package/dist/deepagent-bucket-scope.js.map +1 -0
- package/dist/deepagent-bucket-search.d.ts +22 -0
- package/dist/deepagent-bucket-search.d.ts.map +1 -0
- package/dist/deepagent-bucket-search.js +60 -0
- package/dist/deepagent-bucket-search.js.map +1 -0
- package/dist/deepagent-bucket-service.d.ts +17 -0
- package/dist/deepagent-bucket-service.d.ts.map +1 -0
- package/dist/deepagent-bucket-service.js +16 -0
- package/dist/deepagent-bucket-service.js.map +1 -0
- package/dist/deepagent-bucket-transfer.d.ts +52 -0
- package/dist/deepagent-bucket-transfer.d.ts.map +1 -0
- package/dist/deepagent-bucket-transfer.js +73 -0
- package/dist/deepagent-bucket-transfer.js.map +1 -0
- package/dist/deepagent-bucket-write.d.ts +55 -0
- package/dist/deepagent-bucket-write.d.ts.map +1 -0
- package/dist/deepagent-bucket-write.js +88 -0
- package/dist/deepagent-bucket-write.js.map +1 -0
- package/dist/define-agent-build.d.ts +12 -0
- package/dist/define-agent-build.d.ts.map +1 -0
- package/dist/define-agent-build.js +60 -0
- package/dist/define-agent-build.js.map +1 -0
- package/dist/define-agent-deep.d.ts +30 -0
- package/dist/define-agent-deep.d.ts.map +1 -0
- package/dist/define-agent-deep.js +125 -0
- package/dist/define-agent-deep.js.map +1 -0
- package/dist/define-agent-deep.types.d.ts +23 -0
- package/dist/define-agent-deep.types.d.ts.map +1 -0
- package/dist/define-agent-deep.types.js +3 -0
- package/dist/define-agent-deep.types.js.map +1 -0
- package/dist/define-agent-native-middleware.d.ts +34 -0
- package/dist/define-agent-native-middleware.d.ts.map +1 -0
- package/dist/define-agent-native-middleware.js +83 -0
- package/dist/define-agent-native-middleware.js.map +1 -0
- package/dist/define-agent-native-model.d.ts +16 -0
- package/dist/define-agent-native-model.d.ts.map +1 -0
- package/dist/define-agent-native-model.js +23 -0
- package/dist/define-agent-native-model.js.map +1 -0
- package/dist/define-agent-native-tools.d.ts +30 -0
- package/dist/define-agent-native-tools.d.ts.map +1 -0
- package/dist/define-agent-native-tools.js +72 -0
- package/dist/define-agent-native-tools.js.map +1 -0
- package/dist/define-agent-native.d.ts +6 -0
- package/dist/define-agent-native.d.ts.map +1 -0
- package/dist/define-agent-native.js +5 -0
- package/dist/define-agent-native.js.map +1 -0
- package/dist/define-agent-native.types.d.ts +36 -0
- package/dist/define-agent-native.types.d.ts.map +1 -0
- package/dist/define-agent-native.types.js +3 -0
- package/dist/define-agent-native.types.js.map +1 -0
- package/dist/define-agent-validation.d.ts +45 -0
- package/dist/define-agent-validation.d.ts.map +1 -0
- package/dist/define-agent-validation.js +92 -0
- package/dist/define-agent-validation.js.map +1 -0
- package/dist/define-agent.d.ts +41 -0
- package/dist/define-agent.d.ts.map +1 -0
- package/dist/define-agent.js +59 -0
- package/dist/define-agent.js.map +1 -0
- package/dist/define-agent.types.d.ts +54 -0
- package/dist/define-agent.types.d.ts.map +1 -0
- package/dist/define-agent.types.js +3 -0
- package/dist/define-agent.types.js.map +1 -0
- package/dist/define-graph-build.d.ts +12 -0
- package/dist/define-graph-build.d.ts.map +1 -0
- package/dist/define-graph-build.js +86 -0
- package/dist/define-graph-build.js.map +1 -0
- package/dist/define-graph-error.d.ts +17 -0
- package/dist/define-graph-error.d.ts.map +1 -0
- package/dist/define-graph-error.js +17 -0
- package/dist/define-graph-error.js.map +1 -0
- package/dist/define-graph-node.d.ts +42 -0
- package/dist/define-graph-node.d.ts.map +1 -0
- package/dist/define-graph-node.js +97 -0
- package/dist/define-graph-node.js.map +1 -0
- package/dist/define-graph-node.types.d.ts +38 -0
- package/dist/define-graph-node.types.d.ts.map +1 -0
- package/dist/define-graph-node.types.js +3 -0
- package/dist/define-graph-node.types.js.map +1 -0
- package/dist/define-graph.d.ts +44 -0
- package/dist/define-graph.d.ts.map +1 -0
- package/dist/define-graph.js +72 -0
- package/dist/define-graph.js.map +1 -0
- package/dist/define-graph.types.d.ts +69 -0
- package/dist/define-graph.types.d.ts.map +1 -0
- package/dist/define-graph.types.js +3 -0
- package/dist/define-graph.types.js.map +1 -0
- package/dist/define-persistence-guards.d.ts +32 -0
- package/dist/define-persistence-guards.d.ts.map +1 -0
- package/dist/define-persistence-guards.js +55 -0
- package/dist/define-persistence-guards.js.map +1 -0
- package/dist/define-persistence.d.ts +33 -0
- package/dist/define-persistence.d.ts.map +1 -0
- package/dist/define-persistence.js +112 -0
- package/dist/define-persistence.js.map +1 -0
- package/dist/define-persistence.types.d.ts +30 -0
- package/dist/define-persistence.types.d.ts.map +1 -0
- package/dist/define-persistence.types.js +3 -0
- package/dist/define-persistence.types.js.map +1 -0
- package/dist/graph-compile-error.d.ts +17 -0
- package/dist/graph-compile-error.d.ts.map +1 -0
- package/dist/graph-compile-error.js +17 -0
- package/dist/graph-compile-error.js.map +1 -0
- package/dist/graph-compile.d.ts +32 -0
- package/dist/graph-compile.d.ts.map +1 -0
- package/dist/graph-compile.js +94 -0
- package/dist/graph-compile.js.map +1 -0
- package/dist/graph-continuation-error.d.ts +17 -0
- package/dist/graph-continuation-error.d.ts.map +1 -0
- package/dist/graph-continuation-error.js +17 -0
- package/dist/graph-continuation-error.js.map +1 -0
- package/dist/graph-continuation-validation.d.ts +22 -0
- package/dist/graph-continuation-validation.d.ts.map +1 -0
- package/dist/graph-continuation-validation.js +67 -0
- package/dist/graph-continuation-validation.js.map +1 -0
- package/dist/graph-continuation-waiting.d.ts +23 -0
- package/dist/graph-continuation-waiting.d.ts.map +1 -0
- package/dist/graph-continuation-waiting.js +53 -0
- package/dist/graph-continuation-waiting.js.map +1 -0
- package/dist/graph-continuation.d.ts +43 -0
- package/dist/graph-continuation.d.ts.map +1 -0
- package/dist/graph-continuation.js +82 -0
- package/dist/graph-continuation.js.map +1 -0
- package/dist/graph-continuation.types.d.ts +11 -0
- package/dist/graph-continuation.types.d.ts.map +1 -0
- package/dist/graph-continuation.types.js +3 -0
- package/dist/graph-continuation.types.js.map +1 -0
- package/dist/graph-definition.d.ts +36 -0
- package/dist/graph-definition.d.ts.map +1 -0
- package/dist/graph-definition.js +90 -0
- package/dist/graph-definition.js.map +1 -0
- package/dist/graph-edge-destinations.d.ts +42 -0
- package/dist/graph-edge-destinations.d.ts.map +1 -0
- package/dist/graph-edge-destinations.js +100 -0
- package/dist/graph-edge-destinations.js.map +1 -0
- package/dist/graph-edge-mutations.d.ts +19 -0
- package/dist/graph-edge-mutations.d.ts.map +1 -0
- package/dist/graph-edge-mutations.js +62 -0
- package/dist/graph-edge-mutations.js.map +1 -0
- package/dist/graph-edge-mutations.types.d.ts +9 -0
- package/dist/graph-edge-mutations.types.d.ts.map +1 -0
- package/dist/graph-edge-mutations.types.js +2 -0
- package/dist/graph-edge-mutations.types.js.map +1 -0
- package/dist/graph-edges.d.ts +24 -0
- package/dist/graph-edges.d.ts.map +1 -0
- package/dist/graph-edges.js +37 -0
- package/dist/graph-edges.js.map +1 -0
- package/dist/graph-edges.types.d.ts +47 -0
- package/dist/graph-edges.types.d.ts.map +1 -0
- package/dist/graph-edges.types.js +3 -0
- package/dist/graph-edges.types.js.map +1 -0
- package/dist/graph-execution-symbol.d.ts +3 -0
- package/dist/graph-execution-symbol.d.ts.map +1 -0
- package/dist/graph-execution-symbol.js +3 -0
- package/dist/graph-execution-symbol.js.map +1 -0
- package/dist/graph-interruption.d.ts +84 -0
- package/dist/graph-interruption.d.ts.map +1 -0
- package/dist/graph-interruption.js +119 -0
- package/dist/graph-interruption.js.map +1 -0
- package/dist/graph-interruption.types.d.ts +16 -0
- package/dist/graph-interruption.types.d.ts.map +1 -0
- package/dist/graph-interruption.types.js +3 -0
- package/dist/graph-interruption.types.js.map +1 -0
- package/dist/graph-node-schema-validation.d.ts +9 -0
- package/dist/graph-node-schema-validation.d.ts.map +1 -0
- package/dist/graph-node-schema-validation.js +16 -0
- package/dist/graph-node-schema-validation.js.map +1 -0
- package/dist/graph-node-symbol.d.ts +3 -0
- package/dist/graph-node-symbol.d.ts.map +1 -0
- package/dist/graph-node-symbol.js +3 -0
- package/dist/graph-node-symbol.js.map +1 -0
- package/dist/graph-node-validation-error.d.ts +17 -0
- package/dist/graph-node-validation-error.d.ts.map +1 -0
- package/dist/graph-node-validation-error.js +17 -0
- package/dist/graph-node-validation-error.js.map +1 -0
- package/dist/graph-node-validation-value.d.ts +64 -0
- package/dist/graph-node-validation-value.d.ts.map +1 -0
- package/dist/graph-node-validation-value.js +117 -0
- package/dist/graph-node-validation-value.js.map +1 -0
- package/dist/graph-node-validation.d.ts +65 -0
- package/dist/graph-node-validation.d.ts.map +1 -0
- package/dist/graph-node-validation.js +113 -0
- package/dist/graph-node-validation.js.map +1 -0
- package/dist/graph-persistence-release.d.ts +16 -0
- package/dist/graph-persistence-release.d.ts.map +1 -0
- package/dist/graph-persistence-release.js +43 -0
- package/dist/graph-persistence-release.js.map +1 -0
- package/dist/graph-persistence.d.ts +39 -0
- package/dist/graph-persistence.d.ts.map +1 -0
- package/dist/graph-persistence.js +111 -0
- package/dist/graph-persistence.js.map +1 -0
- package/dist/graph-persistence.types.d.ts +21 -0
- package/dist/graph-persistence.types.d.ts.map +1 -0
- package/dist/graph-persistence.types.js +3 -0
- package/dist/graph-persistence.types.js.map +1 -0
- package/dist/graph-runtime-error.d.ts +17 -0
- package/dist/graph-runtime-error.d.ts.map +1 -0
- package/dist/graph-runtime-error.js +17 -0
- package/dist/graph-runtime-error.js.map +1 -0
- package/dist/graph-runtime-execution.d.ts +28 -0
- package/dist/graph-runtime-execution.d.ts.map +1 -0
- package/dist/graph-runtime-execution.js +69 -0
- package/dist/graph-runtime-execution.js.map +1 -0
- package/dist/graph-runtime-identity.d.ts +15 -0
- package/dist/graph-runtime-identity.d.ts.map +1 -0
- package/dist/graph-runtime-identity.js +14 -0
- package/dist/graph-runtime-identity.js.map +1 -0
- package/dist/graph-runtime-identity.types.d.ts +5 -0
- package/dist/graph-runtime-identity.types.d.ts.map +1 -0
- package/dist/graph-runtime-identity.types.js +2 -0
- package/dist/graph-runtime-identity.types.js.map +1 -0
- package/dist/graph-runtime-stream-state.d.ts +8 -0
- package/dist/graph-runtime-stream-state.d.ts.map +1 -0
- package/dist/graph-runtime-stream-state.js +67 -0
- package/dist/graph-runtime-stream-state.js.map +1 -0
- package/dist/graph-runtime-stream.d.ts +16 -0
- package/dist/graph-runtime-stream.d.ts.map +1 -0
- package/dist/graph-runtime-stream.js +49 -0
- package/dist/graph-runtime-stream.js.map +1 -0
- package/dist/graph-runtime-stream.types.d.ts +13 -0
- package/dist/graph-runtime-stream.types.d.ts.map +1 -0
- package/dist/graph-runtime-stream.types.js +2 -0
- package/dist/graph-runtime-stream.types.js.map +1 -0
- package/dist/graph-runtime.d.ts +21 -0
- package/dist/graph-runtime.d.ts.map +1 -0
- package/dist/graph-runtime.js +74 -0
- package/dist/graph-runtime.js.map +1 -0
- package/dist/graph-runtime.types.d.ts +8 -0
- package/dist/graph-runtime.types.d.ts.map +1 -0
- package/dist/graph-runtime.types.js +3 -0
- package/dist/graph-runtime.types.js.map +1 -0
- package/dist/graph-state-schema.d.ts +35 -0
- package/dist/graph-state-schema.d.ts.map +1 -0
- package/dist/graph-state-schema.js +65 -0
- package/dist/graph-state-schema.js.map +1 -0
- package/dist/graph-subgraph-symbol.d.ts +5 -0
- package/dist/graph-subgraph-symbol.d.ts.map +1 -0
- package/dist/graph-subgraph-symbol.js +5 -0
- package/dist/graph-subgraph-symbol.js.map +1 -0
- package/dist/graph-subgraph.d.ts +46 -0
- package/dist/graph-subgraph.d.ts.map +1 -0
- package/dist/graph-subgraph.js +82 -0
- package/dist/graph-subgraph.js.map +1 -0
- package/dist/graph-subgraph.types.d.ts +20 -0
- package/dist/graph-subgraph.types.d.ts.map +1 -0
- package/dist/graph-subgraph.types.js +3 -0
- package/dist/graph-subgraph.types.js.map +1 -0
- package/dist/graph-workflow-error.d.ts +17 -0
- package/dist/graph-workflow-error.d.ts.map +1 -0
- package/dist/graph-workflow-error.js +17 -0
- package/dist/graph-workflow-error.js.map +1 -0
- package/dist/graph-workflow.d.ts +37 -0
- package/dist/graph-workflow.d.ts.map +1 -0
- package/dist/graph-workflow.js +86 -0
- package/dist/graph-workflow.js.map +1 -0
- package/dist/graph-workflow.types.d.ts +41 -0
- package/dist/graph-workflow.types.d.ts.map +1 -0
- package/dist/graph-workflow.types.js +3 -0
- package/dist/graph-workflow.types.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/native-agent-interruption-error.d.ts +17 -0
- package/dist/native-agent-interruption-error.d.ts.map +1 -0
- package/dist/native-agent-interruption-error.js +17 -0
- package/dist/native-agent-interruption-error.js.map +1 -0
- package/dist/native-agent-interruption-schema.d.ts +66 -0
- package/dist/native-agent-interruption-schema.d.ts.map +1 -0
- package/dist/native-agent-interruption-schema.js +141 -0
- package/dist/native-agent-interruption-schema.js.map +1 -0
- package/dist/native-agent-interruption-schema.types.d.ts +16 -0
- package/dist/native-agent-interruption-schema.types.d.ts.map +1 -0
- package/dist/native-agent-interruption-schema.types.js +3 -0
- package/dist/native-agent-interruption-schema.types.js.map +1 -0
- package/dist/native-agent-interruption-validation.d.ts +19 -0
- package/dist/native-agent-interruption-validation.d.ts.map +1 -0
- package/dist/native-agent-interruption-validation.js +107 -0
- package/dist/native-agent-interruption-validation.js.map +1 -0
- package/dist/native-agent-interruption.d.ts +55 -0
- package/dist/native-agent-interruption.d.ts.map +1 -0
- package/dist/native-agent-interruption.js +85 -0
- package/dist/native-agent-interruption.js.map +1 -0
- package/dist/native-agent-interruption.types.d.ts +5 -0
- package/dist/native-agent-interruption.types.d.ts.map +1 -0
- package/dist/native-agent-interruption.types.js +2 -0
- package/dist/native-agent-interruption.types.js.map +1 -0
- package/dist/persistence-error.d.ts +17 -0
- package/dist/persistence-error.d.ts.map +1 -0
- package/dist/persistence-error.js +17 -0
- package/dist/persistence-error.js.map +1 -0
- package/dist/persistence-symbol.d.ts +3 -0
- package/dist/persistence-symbol.d.ts.map +1 -0
- package/dist/persistence-symbol.js +3 -0
- package/dist/persistence-symbol.js.map +1 -0
- package/dist/runtime-approval-decision.d.ts +13 -0
- package/dist/runtime-approval-decision.d.ts.map +1 -0
- package/dist/runtime-approval-decision.js +21 -0
- package/dist/runtime-approval-decision.js.map +1 -0
- package/dist/runtime-dependencies.d.ts +7 -0
- package/dist/runtime-dependencies.d.ts.map +1 -0
- package/dist/runtime-dependencies.js +10 -0
- package/dist/runtime-dependencies.js.map +1 -0
- package/dist/runtime-effect-error.d.ts +18 -0
- package/dist/runtime-effect-error.d.ts.map +1 -0
- package/dist/runtime-effect-error.js +19 -0
- package/dist/runtime-effect-error.js.map +1 -0
- package/dist/runtime-errors.d.ts +11 -0
- package/dist/runtime-errors.d.ts.map +1 -0
- package/dist/runtime-errors.js +15 -0
- package/dist/runtime-errors.js.map +1 -0
- package/dist/runtime-failure-diagnostics.d.ts +10 -0
- package/dist/runtime-failure-diagnostics.d.ts.map +1 -0
- package/dist/runtime-failure-diagnostics.js +61 -0
- package/dist/runtime-failure-diagnostics.js.map +1 -0
- package/dist/runtime-integration.d.ts +10 -0
- package/dist/runtime-integration.d.ts.map +1 -0
- package/dist/runtime-integration.js +9 -0
- package/dist/runtime-integration.js.map +1 -0
- package/dist/runtime-invoke.d.ts +27 -0
- package/dist/runtime-invoke.d.ts.map +1 -0
- package/dist/runtime-invoke.js +77 -0
- package/dist/runtime-invoke.js.map +1 -0
- package/dist/runtime-loop-context.types.d.ts +22 -0
- package/dist/runtime-loop-context.types.d.ts.map +1 -0
- package/dist/runtime-loop-context.types.js +2 -0
- package/dist/runtime-loop-context.types.js.map +1 -0
- package/dist/runtime-loop-execution.d.ts +4 -0
- package/dist/runtime-loop-execution.d.ts.map +1 -0
- package/dist/runtime-loop-execution.js +61 -0
- package/dist/runtime-loop-execution.js.map +1 -0
- package/dist/runtime-loop-state.d.ts +13 -0
- package/dist/runtime-loop-state.d.ts.map +1 -0
- package/dist/runtime-loop-state.js +57 -0
- package/dist/runtime-loop-state.js.map +1 -0
- package/dist/runtime-loop-telemetry.d.ts +5 -0
- package/dist/runtime-loop-telemetry.d.ts.map +1 -0
- package/dist/runtime-loop-telemetry.js +62 -0
- package/dist/runtime-loop-telemetry.js.map +1 -0
- package/dist/runtime-loop-values.d.ts +52 -0
- package/dist/runtime-loop-values.d.ts.map +1 -0
- package/dist/runtime-loop-values.js +85 -0
- package/dist/runtime-loop-values.js.map +1 -0
- package/dist/runtime-loop.d.ts +36 -0
- package/dist/runtime-loop.d.ts.map +1 -0
- package/dist/runtime-loop.js +45 -0
- package/dist/runtime-loop.js.map +1 -0
- package/dist/runtime-loop.types.d.ts +8 -0
- package/dist/runtime-loop.types.d.ts.map +1 -0
- package/dist/runtime-loop.types.js +3 -0
- package/dist/runtime-loop.types.js.map +1 -0
- package/dist/runtime-model-error.d.ts +17 -0
- package/dist/runtime-model-error.d.ts.map +1 -0
- package/dist/runtime-model-error.js +17 -0
- package/dist/runtime-model-error.js.map +1 -0
- package/dist/runtime-model.d.ts +31 -0
- package/dist/runtime-model.d.ts.map +1 -0
- package/dist/runtime-model.js +126 -0
- package/dist/runtime-model.js.map +1 -0
- package/dist/runtime-model.types.d.ts +22 -0
- package/dist/runtime-model.types.d.ts.map +1 -0
- package/dist/runtime-model.types.js +3 -0
- package/dist/runtime-model.types.js.map +1 -0
- package/dist/runtime-native-agent-build.d.ts +40 -0
- package/dist/runtime-native-agent-build.d.ts.map +1 -0
- package/dist/runtime-native-agent-build.js +77 -0
- package/dist/runtime-native-agent-build.js.map +1 -0
- package/dist/runtime-native-agent.d.ts +30 -0
- package/dist/runtime-native-agent.d.ts.map +1 -0
- package/dist/runtime-native-agent.js +84 -0
- package/dist/runtime-native-agent.js.map +1 -0
- package/dist/runtime-native-agent.types.d.ts +21 -0
- package/dist/runtime-native-agent.types.d.ts.map +1 -0
- package/dist/runtime-native-agent.types.js +3 -0
- package/dist/runtime-native-agent.types.js.map +1 -0
- package/dist/runtime-native-event-tools.d.ts +28 -0
- package/dist/runtime-native-event-tools.d.ts.map +1 -0
- package/dist/runtime-native-event-tools.js +88 -0
- package/dist/runtime-native-event-tools.js.map +1 -0
- package/dist/runtime-native-events-helpers.d.ts +30 -0
- package/dist/runtime-native-events-helpers.d.ts.map +1 -0
- package/dist/runtime-native-events-helpers.js +74 -0
- package/dist/runtime-native-events-helpers.js.map +1 -0
- package/dist/runtime-native-events.d.ts +45 -0
- package/dist/runtime-native-events.d.ts.map +1 -0
- package/dist/runtime-native-events.js +89 -0
- package/dist/runtime-native-events.js.map +1 -0
- package/dist/runtime-native-limits.d.ts +18 -0
- package/dist/runtime-native-limits.d.ts.map +1 -0
- package/dist/runtime-native-limits.js +59 -0
- package/dist/runtime-native-limits.js.map +1 -0
- package/dist/runtime-native-messages.d.ts +24 -0
- package/dist/runtime-native-messages.d.ts.map +1 -0
- package/dist/runtime-native-messages.js +83 -0
- package/dist/runtime-native-messages.js.map +1 -0
- package/dist/runtime-native-messages.types.d.ts +7 -0
- package/dist/runtime-native-messages.types.d.ts.map +1 -0
- package/dist/runtime-native-messages.types.js +2 -0
- package/dist/runtime-native-messages.types.js.map +1 -0
- package/dist/runtime-native-public-state.d.ts +22 -0
- package/dist/runtime-native-public-state.d.ts.map +1 -0
- package/dist/runtime-native-public-state.js +44 -0
- package/dist/runtime-native-public-state.js.map +1 -0
- package/dist/runtime-native-public-tools.d.ts +15 -0
- package/dist/runtime-native-public-tools.d.ts.map +1 -0
- package/dist/runtime-native-public-tools.js +39 -0
- package/dist/runtime-native-public-tools.js.map +1 -0
- package/dist/runtime-native-public.d.ts +28 -0
- package/dist/runtime-native-public.d.ts.map +1 -0
- package/dist/runtime-native-public.js +165 -0
- package/dist/runtime-native-public.js.map +1 -0
- package/dist/runtime-native-public.types.d.ts +5 -0
- package/dist/runtime-native-public.types.d.ts.map +1 -0
- package/dist/runtime-native-public.types.js +3 -0
- package/dist/runtime-native-public.types.js.map +1 -0
- package/dist/runtime-native-response-format.d.ts +15 -0
- package/dist/runtime-native-response-format.d.ts.map +1 -0
- package/dist/runtime-native-response-format.js +46 -0
- package/dist/runtime-native-response-format.js.map +1 -0
- package/dist/runtime-native-subagents.d.ts +47 -0
- package/dist/runtime-native-subagents.d.ts.map +1 -0
- package/dist/runtime-native-subagents.js +50 -0
- package/dist/runtime-native-subagents.js.map +1 -0
- package/dist/runtime-native-subagents.types.d.ts +7 -0
- package/dist/runtime-native-subagents.types.d.ts.map +1 -0
- package/dist/runtime-native-subagents.types.js +2 -0
- package/dist/runtime-native-subagents.types.js.map +1 -0
- package/dist/runtime-native-support.d.ts +67 -0
- package/dist/runtime-native-support.d.ts.map +1 -0
- package/dist/runtime-native-support.js +112 -0
- package/dist/runtime-native-support.js.map +1 -0
- package/dist/runtime-native-support.types.d.ts +9 -0
- package/dist/runtime-native-support.types.d.ts.map +1 -0
- package/dist/runtime-native-support.types.js +2 -0
- package/dist/runtime-native-support.types.js.map +1 -0
- package/dist/runtime-native-tool-build.d.ts +12 -0
- package/dist/runtime-native-tool-build.d.ts.map +1 -0
- package/dist/runtime-native-tool-build.js +81 -0
- package/dist/runtime-native-tool-build.js.map +1 -0
- package/dist/runtime-native-tool-build.types.d.ts +14 -0
- package/dist/runtime-native-tool-build.types.d.ts.map +1 -0
- package/dist/runtime-native-tool-build.types.js +2 -0
- package/dist/runtime-native-tool-build.types.js.map +1 -0
- package/dist/runtime-native-tools-identity.d.ts +15 -0
- package/dist/runtime-native-tools-identity.d.ts.map +1 -0
- package/dist/runtime-native-tools-identity.js +14 -0
- package/dist/runtime-native-tools-identity.js.map +1 -0
- package/dist/runtime-native-tools.d.ts +29 -0
- package/dist/runtime-native-tools.d.ts.map +1 -0
- package/dist/runtime-native-tools.js +65 -0
- package/dist/runtime-native-tools.js.map +1 -0
- package/dist/runtime-native-tools.types.d.ts +21 -0
- package/dist/runtime-native-tools.types.d.ts.map +1 -0
- package/dist/runtime-native-tools.types.js +3 -0
- package/dist/runtime-native-tools.types.js.map +1 -0
- package/dist/runtime-service.d.ts +15 -0
- package/dist/runtime-service.d.ts.map +1 -0
- package/dist/runtime-service.js +20 -0
- package/dist/runtime-service.js.map +1 -0
- package/dist/runtime-service.types.d.ts +12 -0
- package/dist/runtime-service.types.d.ts.map +1 -0
- package/dist/runtime-service.types.js +3 -0
- package/dist/runtime-service.types.js.map +1 -0
- package/dist/runtime-state-schemas.d.ts +19 -0
- package/dist/runtime-state-schemas.d.ts.map +1 -0
- package/dist/runtime-state-schemas.js +58 -0
- package/dist/runtime-state-schemas.js.map +1 -0
- package/dist/runtime-strict-response-schema.d.ts +9 -0
- package/dist/runtime-strict-response-schema.d.ts.map +1 -0
- package/dist/runtime-strict-response-schema.js +67 -0
- package/dist/runtime-strict-response-schema.js.map +1 -0
- package/dist/runtime-tool-adapter.d.ts +34 -0
- package/dist/runtime-tool-adapter.d.ts.map +1 -0
- package/dist/runtime-tool-adapter.js +66 -0
- package/dist/runtime-tool-adapter.js.map +1 -0
- package/dist/runtime-tool-dispatcher.d.ts +32 -0
- package/dist/runtime-tool-dispatcher.d.ts.map +1 -0
- package/dist/runtime-tool-dispatcher.js +67 -0
- package/dist/runtime-tool-dispatcher.js.map +1 -0
- package/dist/runtime-tool-events.d.ts +49 -0
- package/dist/runtime-tool-events.d.ts.map +1 -0
- package/dist/runtime-tool-events.js +106 -0
- package/dist/runtime-tool-events.js.map +1 -0
- package/dist/runtime-tool-events.types.d.ts +8 -0
- package/dist/runtime-tool-events.types.d.ts.map +1 -0
- package/dist/runtime-tool-events.types.js +3 -0
- package/dist/runtime-tool-events.types.js.map +1 -0
- package/dist/runtime-tool-invocation.d.ts +19 -0
- package/dist/runtime-tool-invocation.d.ts.map +1 -0
- package/dist/runtime-tool-invocation.js +74 -0
- package/dist/runtime-tool-invocation.js.map +1 -0
- package/dist/runtime-tool-lookup.d.ts +56 -0
- package/dist/runtime-tool-lookup.d.ts.map +1 -0
- package/dist/runtime-tool-lookup.js +71 -0
- package/dist/runtime-tool-lookup.js.map +1 -0
- package/dist/runtime-tools.d.ts +35 -0
- package/dist/runtime-tools.d.ts.map +1 -0
- package/dist/runtime-tools.js +78 -0
- package/dist/runtime-tools.js.map +1 -0
- package/dist/runtime-tools.types.d.ts +7 -0
- package/dist/runtime-tools.types.d.ts.map +1 -0
- package/dist/runtime-tools.types.js +2 -0
- package/dist/runtime-tools.types.js.map +1 -0
- package/dist/runtime-utils.d.ts +56 -0
- package/dist/runtime-utils.d.ts.map +1 -0
- package/dist/runtime-utils.js +106 -0
- package/dist/runtime-utils.js.map +1 -0
- package/dist/runtime.d.ts +47 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +90 -0
- package/dist/runtime.js.map +1 -0
- package/dist/runtime.types.d.ts +77 -0
- package/dist/runtime.types.d.ts.map +1 -0
- package/dist/runtime.types.js +3 -0
- package/dist/runtime.types.js.map +1 -0
- package/dist/signal-deadline.d.ts +12 -0
- package/dist/signal-deadline.d.ts.map +1 -0
- package/dist/signal-deadline.js +21 -0
- package/dist/signal-deadline.js.map +1 -0
- package/dist/signal.d.ts +64 -0
- package/dist/signal.d.ts.map +1 -0
- package/dist/signal.js +136 -0
- package/dist/signal.js.map +1 -0
- package/dist/signal.types.d.ts +35 -0
- package/dist/signal.types.d.ts.map +1 -0
- package/dist/signal.types.js +3 -0
- package/dist/signal.types.js.map +1 -0
- package/dist/testing/agent-approvals.d.ts +8 -0
- package/dist/testing/agent-approvals.d.ts.map +1 -0
- package/dist/testing/agent-approvals.js +98 -0
- package/dist/testing/agent-approvals.js.map +1 -0
- package/dist/testing/agent-approvals.types.d.ts +24 -0
- package/dist/testing/agent-approvals.types.d.ts.map +1 -0
- package/dist/testing/agent-approvals.types.js +3 -0
- package/dist/testing/agent-approvals.types.js.map +1 -0
- package/dist/testing/agent-harness.types.d.ts +25 -0
- package/dist/testing/agent-harness.types.d.ts.map +1 -0
- package/dist/testing/agent-harness.types.js +3 -0
- package/dist/testing/agent-harness.types.js.map +1 -0
- package/dist/testing/agent-state-invocation.d.ts +4 -0
- package/dist/testing/agent-state-invocation.d.ts.map +1 -0
- package/dist/testing/agent-state-invocation.js +41 -0
- package/dist/testing/agent-state-invocation.js.map +1 -0
- package/dist/testing/agent-state-lifecycle.d.ts +6 -0
- package/dist/testing/agent-state-lifecycle.d.ts.map +1 -0
- package/dist/testing/agent-state-lifecycle.js +36 -0
- package/dist/testing/agent-state-lifecycle.js.map +1 -0
- package/dist/testing/agent-state-setup.d.ts +18 -0
- package/dist/testing/agent-state-setup.d.ts.map +1 -0
- package/dist/testing/agent-state-setup.js +52 -0
- package/dist/testing/agent-state-setup.js.map +1 -0
- package/dist/testing/agent-state.d.ts +12 -0
- package/dist/testing/agent-state.d.ts.map +1 -0
- package/dist/testing/agent-state.js +40 -0
- package/dist/testing/agent-state.js.map +1 -0
- package/dist/testing/agents-model-native.d.ts +37 -0
- package/dist/testing/agents-model-native.d.ts.map +1 -0
- package/dist/testing/agents-model-native.js +111 -0
- package/dist/testing/agents-model-native.js.map +1 -0
- package/dist/testing/agents-model-operations.d.ts +28 -0
- package/dist/testing/agents-model-operations.d.ts.map +1 -0
- package/dist/testing/agents-model-operations.js +91 -0
- package/dist/testing/agents-model-operations.js.map +1 -0
- package/dist/testing/agents-model.d.ts +25 -0
- package/dist/testing/agents-model.d.ts.map +1 -0
- package/dist/testing/agents-model.js +72 -0
- package/dist/testing/agents-model.js.map +1 -0
- package/dist/testing/agents-model.types.d.ts +24 -0
- package/dist/testing/agents-model.types.d.ts.map +1 -0
- package/dist/testing/agents-model.types.js +3 -0
- package/dist/testing/agents-model.types.js.map +1 -0
- package/dist/testing/agents-types.d.ts +3 -0
- package/dist/testing/agents-types.d.ts.map +1 -0
- package/dist/testing/agents-types.js +2 -0
- package/dist/testing/agents-types.js.map +1 -0
- package/dist/testing/agents-utils.d.ts +26 -0
- package/dist/testing/agents-utils.d.ts.map +1 -0
- package/dist/testing/agents-utils.js +79 -0
- package/dist/testing/agents-utils.js.map +1 -0
- package/dist/testing/agents.d.ts +26 -0
- package/dist/testing/agents.d.ts.map +1 -0
- package/dist/testing/agents.js +64 -0
- package/dist/testing/agents.js.map +1 -0
- package/dist/testing/agents.types.d.ts +113 -0
- package/dist/testing/agents.types.d.ts.map +1 -0
- package/dist/testing/agents.types.js +3 -0
- package/dist/testing/agents.types.js.map +1 -0
- package/package.json +191 -4
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Builds the native execution payload from model, tool and middleware inputs after validation, without starting model execution during authoring. This companion preserves the native input and output types without starting runtime work. */
|
|
2
|
+
import type { StateDefinitionInit } from "@langchain/langgraph";
|
|
3
|
+
import type { ClientTool, ServerTool } from "@langchain/core/tools";
|
|
4
|
+
import type { MaybePromise } from "@relkit/contracts";
|
|
5
|
+
import type { ToolRefAny } from "@relkit/tools";
|
|
6
|
+
import type { AgentMiddleware as NativeAgentMiddleware, InferSchemaValue } from "langchain";
|
|
7
|
+
/** Native model object accepted by an agent descriptor. */
|
|
8
|
+
export interface AgentLanguageModel {
|
|
9
|
+
readonly invoke: (...args: never[]) => unknown;
|
|
10
|
+
}
|
|
11
|
+
/** Environment-bound factory for a native model. */
|
|
12
|
+
export type AgentModelFactory<Environment = Readonly<Record<string, unknown>>> = (environment: Environment) => MaybePromise<AgentLanguageModel>;
|
|
13
|
+
/** Model selector, native model, or model factory. */
|
|
14
|
+
export type AgentModel = string | AgentLanguageModel | AgentModelFactory;
|
|
15
|
+
/** LangChain client or server tool. */
|
|
16
|
+
export type NativeAgentTool = ClientTool | ServerTool;
|
|
17
|
+
/** RELKIT reference or native LangChain tool. */
|
|
18
|
+
export type AgentTool = ToolRefAny | NativeAgentTool;
|
|
19
|
+
/** SDK fields RELKIT inspects; each descriptor retains its complete inferred middleware tuple, including native hooks, tools and phantom schema data. Runtime validation checks the SDK brand. */
|
|
20
|
+
export type AgentMiddleware = Pick<NativeAgentMiddleware, "name" | "stateSchema">;
|
|
21
|
+
/** Public state composed from middleware state schemas. */
|
|
22
|
+
export type AgentMiddlewareState<Middleware extends readonly AgentMiddleware[]> = Middleware extends readonly [infer First, ...infer Rest] ? First extends AgentMiddleware ? Rest extends readonly AgentMiddleware[] ? MiddlewareState<First> & AgentMiddlewareState<Rest> : MiddlewareState<First> : {} : {};
|
|
23
|
+
type MiddlewareState<Middleware> = Middleware extends {
|
|
24
|
+
readonly stateSchema?: infer Schema;
|
|
25
|
+
} ? PublicState<MiddlewareSchemaState<Exclude<Schema, undefined>>> : {};
|
|
26
|
+
type MiddlewareSchemaState<Schema> = Schema extends {
|
|
27
|
+
readonly _output: infer Output;
|
|
28
|
+
} ? Output : InferSchemaValue<Extract<Schema, StateDefinitionInit>>;
|
|
29
|
+
type PublicState<State> = {
|
|
30
|
+
[Key in keyof State as Key extends `_${string}` ? never : Key]: State[Key];
|
|
31
|
+
};
|
|
32
|
+
type MiddlewareStateKey<Middleware> = Middleware extends AgentMiddleware ? [Exclude<Middleware["stateSchema"], undefined>] extends [never] ? never : unknown extends Middleware["stateSchema"] ? string : Extract<keyof MiddlewareState<Middleware>, string> : never;
|
|
33
|
+
/** Public state keys selected from each middleware schema without erasing tuples. */
|
|
34
|
+
export type AgentClientStateKey<Middleware extends readonly AgentMiddleware[]> = MiddlewareStateKey<Middleware[number]>;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=define-agent-native.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-agent-native.types.d.ts","sourceRoot":"","sources":["../src/define-agent-native.types.ts"],"names":[],"mappings":"AAAA,gPAAgP;AAEhP,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,e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D,EAAE,CAAC;AAIP,KAAK,qBAAqB,CAAC,MAAM,IAAI,MAAM,SAAS;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,MAAM,CAAA;CAAE,GAClF,MAAM,GACN,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC;AAE3D,KAAK,WAAW,CAAC,KAAK,IAAI;KACvB,GAAG,IAAI,MAAM,KAAK,IAAI,GAAG,SAAS,IAAI,MAAM,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;CAC3E,CAAC;AAEF,KAAK,kBAAkB,CAAC,UAAU,IAAI,UAAU,SAAS,eAAe,GACpE,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAC7D,KAAK,GACL,OAAO,SAAS,UAAU,CAAC,aAAa,CAAC,GACvC,MAAM,GACN,OAAO,CAAC,MAAM,eAAe,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,GACtD,KAAK,CAAC;AAEV,qFAAqF;AACrF,MAAM,MAAM,mBAAmB,CAAC,UAAU,SAAS,SAAS,eAAe,EAAE,IAAI,kBAAkB,CACjG,UAAU,CAAC,MAAM,CAAC,CACnB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Builds the native execution payload from model, tool and middleware inputs after validation, without starting model execution during authoring. This companion preserves the native input and output types without starting runtime work. */
|
|
2
|
+
export {};
|
|
3
|
+
//# sourceMappingURL=define-agent-native.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-agent-native.types.js","sourceRoot":"","sources":["../src/define-agent-native.types.ts"],"names":[],"mappings":"AAAA,gPAAgP"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Validates shared and native agent configuration before descriptor assembly, keeping invalid authoring failures out of the invocation path. */
|
|
2
|
+
import { Effect } from "effect";
|
|
3
|
+
import type { AgentDescriptor } from "./define-agent.js";
|
|
4
|
+
import type { AgentModel } from "./define-agent-native.js";
|
|
5
|
+
type AgentAny = AgentDescriptor<string, unknown, unknown>;
|
|
6
|
+
/** Checks the complete runtime shape of an agent descriptor.
|
|
7
|
+
* @param value - Candidate descriptor.
|
|
8
|
+
* @returns An Effect with a boolean and no typed failure.
|
|
9
|
+
* @example Effect.runSync(isAgentDescriptorEffect(candidate));
|
|
10
|
+
*/
|
|
11
|
+
export declare const isAgentDescriptorEffect: (value: unknown) => Effect.Effect<boolean, never, never>;
|
|
12
|
+
/** Checks a descriptor for existing synchronous authoring callers.
|
|
13
|
+
* @param value - Candidate descriptor.
|
|
14
|
+
* @returns Whether the value is an agent descriptor.
|
|
15
|
+
* @example if (isAgentDescriptor(candidate)) use(candidate);
|
|
16
|
+
*/
|
|
17
|
+
export declare function isAgentDescriptor(value: unknown): value is AgentAny;
|
|
18
|
+
/** Requires a valid agent descriptor.
|
|
19
|
+
* @param value - Candidate descriptor.
|
|
20
|
+
* @returns An Effect with void or AgentDefinitionFailure.
|
|
21
|
+
* @example Effect.runSync(assertAgentDescriptorEffect(agent));
|
|
22
|
+
*/
|
|
23
|
+
export declare const assertAgentDescriptorEffect: (value: unknown) => Effect.Effect<void, import("@relkit/agents/internal/define-agent-error").AgentDefinitionFailure, never>;
|
|
24
|
+
/** Requires a descriptor for existing synchronous authoring callers.
|
|
25
|
+
* @param value - Candidate descriptor.
|
|
26
|
+
* @returns Nothing when the descriptor is valid.
|
|
27
|
+
* @throws TypeError when the descriptor is invalid.
|
|
28
|
+
* @example assertAgentDescriptor(candidate);
|
|
29
|
+
*/
|
|
30
|
+
export declare function assertAgentDescriptor(value: unknown): asserts value is AgentAny;
|
|
31
|
+
/** Normalizes the selector of a string model definition.
|
|
32
|
+
* @param value - String selector, model object, factory, or undefined.
|
|
33
|
+
* @returns An Effect with the normalized model or AgentDefinitionFailure.
|
|
34
|
+
* @example Effect.runSync(normalizeAgentModelEffect("openai:gpt"));
|
|
35
|
+
*/
|
|
36
|
+
export declare const normalizeAgentModelEffect: (value: AgentModel | undefined) => Effect.Effect<string | import("./define-agent-native.types.js").AgentLanguageModel | import("./define-agent-native.types.js").AgentModelFactory<Readonly<Record<string, unknown>>> | undefined, import("@relkit/agents/internal/define-agent-error").AgentDefinitionFailure, never>;
|
|
37
|
+
/** Normalizes a model for existing synchronous authoring callers.
|
|
38
|
+
* @param value - String selector, model object, factory, or undefined.
|
|
39
|
+
* @returns The normalized model.
|
|
40
|
+
* @throws The original invalid selector error.
|
|
41
|
+
* @example const model = normalizeAgentModel("openai:gpt");
|
|
42
|
+
*/
|
|
43
|
+
export declare function normalizeAgentModel(value: AgentModel | undefined): AgentModel | undefined;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=define-agent-validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-agent-validation.d.ts","sourceRoot":"","sources":["../src/define-agent-validation.ts"],"names":[],"mappings":"AAAA,iJAAiJ;AAGjJ,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAWhC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,KAAK,QAAQ,GAAG,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,0DAGnC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAEnE;AAsBD;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,6HASvC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,QAAQ,CAM/E;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wTAQrC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAMzF"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/** Validates shared and native agent configuration before descriptor assembly, keeping invalid authoring failures out of the invocation path. */
|
|
2
|
+
import { isDescriptor } from "@relkit/contracts";
|
|
3
|
+
import { Effect } from "effect";
|
|
4
|
+
import { observeAgent } from "@relkit/agents/internal/agent-telemetry";
|
|
5
|
+
import { agentDefinitionFailure } from "@relkit/agents/internal/define-agent-error";
|
|
6
|
+
import { isAgentInstructions } from "@relkit/agents/internal/define-agent-support";
|
|
7
|
+
import { isAgentSchema, isPositiveInteger, isRecord, } from "@relkit/agents/internal/agent-validation";
|
|
8
|
+
import { isAgentModel } from "./define-agent-native.js";
|
|
9
|
+
import { normalizeModelSelector } from "@relkit/agents/internal/model-selection";
|
|
10
|
+
/** Checks the complete runtime shape of an agent descriptor.
|
|
11
|
+
* @param value - Candidate descriptor.
|
|
12
|
+
* @returns An Effect with a boolean and no typed failure.
|
|
13
|
+
* @example Effect.runSync(isAgentDescriptorEffect(candidate));
|
|
14
|
+
*/
|
|
15
|
+
export const isAgentDescriptorEffect = Effect.fn("Agents.definition.isDescriptor")((value) => Effect.sync(() => isAgentDescriptorValue(value)), (effect) => observeAgent("definition.is-descriptor", effect));
|
|
16
|
+
/** Checks a descriptor for existing synchronous authoring callers.
|
|
17
|
+
* @param value - Candidate descriptor.
|
|
18
|
+
* @returns Whether the value is an agent descriptor.
|
|
19
|
+
* @example if (isAgentDescriptor(candidate)) use(candidate);
|
|
20
|
+
*/
|
|
21
|
+
export function isAgentDescriptor(value) {
|
|
22
|
+
return Effect.runSync(isAgentDescriptorEffect(value));
|
|
23
|
+
}
|
|
24
|
+
function isAgentDescriptorValue(value) {
|
|
25
|
+
if (!isRecord(value) || Object.hasOwn(value, "handler") || !isDescriptor(value, "agent")) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
const graph = value.execution === "graph";
|
|
29
|
+
return (isAgentSchema(value.input) &&
|
|
30
|
+
isAgentSchema(value.output) &&
|
|
31
|
+
isAgentModelSelector(value.model) &&
|
|
32
|
+
(graph ? value.instructions === "" : isAgentInstructions(value.instructions)) &&
|
|
33
|
+
Array.isArray(value.tools) &&
|
|
34
|
+
Array.isArray(value.middleware) &&
|
|
35
|
+
isRecord(value.limits) &&
|
|
36
|
+
isPositiveInteger(value.limits.maxSteps) &&
|
|
37
|
+
isPositiveInteger(value.limits.maxToolCalls) &&
|
|
38
|
+
isPositiveInteger(value.limits.timeoutMs) &&
|
|
39
|
+
(value.client === undefined || value.stateProfile !== undefined));
|
|
40
|
+
}
|
|
41
|
+
/** Requires a valid agent descriptor.
|
|
42
|
+
* @param value - Candidate descriptor.
|
|
43
|
+
* @returns An Effect with void or AgentDefinitionFailure.
|
|
44
|
+
* @example Effect.runSync(assertAgentDescriptorEffect(agent));
|
|
45
|
+
*/
|
|
46
|
+
export const assertAgentDescriptorEffect = Effect.fn("Agents.definition.assertDescriptor")((value) => Effect.try({
|
|
47
|
+
try: () => {
|
|
48
|
+
if (!isAgentDescriptorValue(value))
|
|
49
|
+
throw new TypeError("Invalid agent descriptor");
|
|
50
|
+
},
|
|
51
|
+
catch: agentDefinitionFailure,
|
|
52
|
+
}), (effect) => observeAgent("definition.assert-descriptor", effect));
|
|
53
|
+
/** Requires a descriptor for existing synchronous authoring callers.
|
|
54
|
+
* @param value - Candidate descriptor.
|
|
55
|
+
* @returns Nothing when the descriptor is valid.
|
|
56
|
+
* @throws TypeError when the descriptor is invalid.
|
|
57
|
+
* @example assertAgentDescriptor(candidate);
|
|
58
|
+
*/
|
|
59
|
+
export function assertAgentDescriptor(value) {
|
|
60
|
+
Effect.runSync(assertAgentDescriptorEffect(value).pipe(Effect.catchTag("AgentDefinitionFailure", (failure) => Effect.fail(failure.cause))));
|
|
61
|
+
}
|
|
62
|
+
/** Normalizes the selector of a string model definition.
|
|
63
|
+
* @param value - String selector, model object, factory, or undefined.
|
|
64
|
+
* @returns An Effect with the normalized model or AgentDefinitionFailure.
|
|
65
|
+
* @example Effect.runSync(normalizeAgentModelEffect("openai:gpt"));
|
|
66
|
+
*/
|
|
67
|
+
export const normalizeAgentModelEffect = Effect.fn("Agents.definition.normalizeModel")((value) => Effect.try({
|
|
68
|
+
try: () => value === undefined || typeof value !== "string" ? value : normalizeModelSelector(value),
|
|
69
|
+
catch: agentDefinitionFailure,
|
|
70
|
+
}), (effect) => observeAgent("definition.normalize-model", effect));
|
|
71
|
+
/** Normalizes a model for existing synchronous authoring callers.
|
|
72
|
+
* @param value - String selector, model object, factory, or undefined.
|
|
73
|
+
* @returns The normalized model.
|
|
74
|
+
* @throws The original invalid selector error.
|
|
75
|
+
* @example const model = normalizeAgentModel("openai:gpt");
|
|
76
|
+
*/
|
|
77
|
+
export function normalizeAgentModel(value) {
|
|
78
|
+
return Effect.runSync(normalizeAgentModelEffect(value).pipe(Effect.catchTag("AgentDefinitionFailure", (failure) => Effect.fail(failure.cause))));
|
|
79
|
+
}
|
|
80
|
+
function isAgentModelSelector(value) {
|
|
81
|
+
if (value === undefined)
|
|
82
|
+
return true;
|
|
83
|
+
if (typeof value !== "string")
|
|
84
|
+
return isAgentModel(value);
|
|
85
|
+
try {
|
|
86
|
+
return normalizeModelSelector(value) === value;
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=define-agent-validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-agent-validation.js","sourceRoot":"","sources":["../src/define-agent-validation.ts"],"names":[],"mappings":"AAAA,iJAAiJ;AAEjJ,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,YAAY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yBAAyB,GAAG,MAAM,CAAC,EAAE,CAAC,kCAAkC,CAAC,CACpF,CAAC,KAA6B,EAAE,EAAE,CAChC,MAAM,CAAC,GAAG,CAAC;IACT,GAAG,EAAE,GAAG,EAAE,CACR,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,sBAAsB,CAAC,KAAK,CAAC;IAC1F,KAAK,EAAE,sBAAsB;CAC9B,CAAC,EACJ,CAAC,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAC/D,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAA6B;IAC/D,OAAO,MAAM,CAAC,OAAO,CACnB,yBAAyB,CAAC,KAAK,CAAC,CAAC,IAAI,CACnC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CACnF,CACF,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAc;IAC1C,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACrC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;IAC1D,IAAI,CAAC;QACH,OAAO,sBAAsB,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IACjD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** Exposes SDK-native agent authoring with inferred input and output types; validation and descriptor assembly are delegated to the integration's owning helpers. */
|
|
2
|
+
import type { InferInput, InferOutput, StandardSchemaV1 } from "@relkit/schema";
|
|
3
|
+
import { Effect } from "effect";
|
|
4
|
+
import type { AgentMiddleware, AgentTool } from "./define-agent-native.types.js";
|
|
5
|
+
import type { AgentDescriptor, DefineAgentOptions } from "./define-agent.types.js";
|
|
6
|
+
export { assertAgentDescriptor, isAgentDescriptor } from "./define-agent-validation.js";
|
|
7
|
+
export { copyAgentLimits, copyAgentLimitsEffect, } from "@relkit/agents/internal/define-agent-limits";
|
|
8
|
+
export type { AgentClientStateKey, AgentMiddleware, AgentMiddlewareState, AgentModel, AgentModelFactory, AgentTool, NativeAgentTool, } from "./define-agent-native.types.js";
|
|
9
|
+
export type { AgentChatMapping, AgentClientPolicy, AgentControl, } from "@relkit/agents/internal/agent-client";
|
|
10
|
+
export type { AgentFilesystemBackend, AgentSubagent, DeepAgentCapabilities, } from "./define-agent-deep.types.js";
|
|
11
|
+
export type { AgentDescriptor, AgentInstructions, AgentLimits, DefineAgentOptions, PromptInstructions, PromptTemplate, } from "./define-agent.types.js";
|
|
12
|
+
/** Defines a native agent with validated authoring options and substitutable identity generation.
|
|
13
|
+
* @param options - Schemas, model, tools, middleware, limits, and client metadata.
|
|
14
|
+
* @returns An Effect with a frozen agent descriptor or AgentDefinitionFailure.
|
|
15
|
+
* @example Effect.runSync(defineAgentEffect({ id: "support", input, output, instructions: "Reply.", tools: [], limits }));
|
|
16
|
+
*/
|
|
17
|
+
export declare const defineAgentEffect: <const Id extends string, const InputSchema extends StandardSchemaV1, const OutputSchema extends StandardSchemaV1, const Middleware extends readonly AgentMiddleware[] = readonly [], const Tools extends readonly AgentTool[] = readonly AgentTool[]>(options: DefineAgentOptions<Id, InputSchema, OutputSchema, Middleware, Tools>) => Effect.Effect<AgentDescriptor<Id, InferInput<InputSchema>, InferOutput<OutputSchema>, InputSchema, OutputSchema, Middleware, Tools>, import("@relkit/agents/internal/define-agent-error").AgentDefinitionFailure, never>;
|
|
18
|
+
/** Defines a native agent for existing synchronous authoring callers.
|
|
19
|
+
* @param options - Schemas, model, tools, middleware, limits, and client metadata.
|
|
20
|
+
* @returns A frozen agent descriptor.
|
|
21
|
+
* @throws The original invalid authoring or identity error.
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* import { defineAgent } from "@relkit/langchain";
|
|
25
|
+
* import { z } from "@relkit/app/schema";
|
|
26
|
+
*
|
|
27
|
+
* const support = defineAgent({
|
|
28
|
+
* id: "support",
|
|
29
|
+
* input: z.object({ message: z.string() }),
|
|
30
|
+
* output: z.object({ answer: z.string() }),
|
|
31
|
+
* instructions: "Reply briefly.",
|
|
32
|
+
* tools: [],
|
|
33
|
+
* limits: { maxSteps: 4, maxToolCalls: 2, timeoutMs: 30_000 },
|
|
34
|
+
* });
|
|
35
|
+
* void support;
|
|
36
|
+
* ```
|
|
37
|
+
* @category Agents
|
|
38
|
+
* @since 0.4.0
|
|
39
|
+
*/
|
|
40
|
+
export declare function defineAgent<const Id extends string, const InputSchema extends StandardSchemaV1, const OutputSchema extends StandardSchemaV1, const Middleware extends readonly AgentMiddleware[] = readonly [], const Tools extends readonly AgentTool[] = readonly AgentTool[]>(options: DefineAgentOptions<Id, InputSchema, OutputSchema, Middleware, Tools>): AgentDescriptor<Id, InferInput<InputSchema>, InferOutput<OutputSchema>, InputSchema, OutputSchema, Middleware, Tools>;
|
|
41
|
+
//# sourceMappingURL=define-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-agent.d.ts","sourceRoot":"","sources":["../src/define-agent.ts"],"names":[],"mappings":"AAAA,qKAAqK;AAGrK,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAEnF,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACxF,OAAO,EAC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
|
+
/** Exposes SDK-native agent authoring with inferred input and output types; validation and descriptor assembly are delegated to the integration's owning helpers. */
|
|
2
|
+
import { createUnboundIdentityEffect } from "@relkit/invocation";
|
|
3
|
+
import { Effect } from "effect";
|
|
4
|
+
import { observeAgent } from "@relkit/agents/internal/agent-telemetry";
|
|
5
|
+
import { isRecordEffect } from "@relkit/agents/internal/agent-validation-value";
|
|
6
|
+
import { prepareAgentDescriptor } from "./define-agent-build.js";
|
|
7
|
+
import { agentDefinitionFailure } from "@relkit/agents/internal/define-agent-error";
|
|
8
|
+
export { assertAgentDescriptor, isAgentDescriptor } from "./define-agent-validation.js";
|
|
9
|
+
export { copyAgentLimits, copyAgentLimitsEffect, } from "@relkit/agents/internal/define-agent-limits";
|
|
10
|
+
/** Defines a native agent with validated authoring options and substitutable identity generation.
|
|
11
|
+
* @param options - Schemas, model, tools, middleware, limits, and client metadata.
|
|
12
|
+
* @returns An Effect with a frozen agent descriptor or AgentDefinitionFailure.
|
|
13
|
+
* @example Effect.runSync(defineAgentEffect({ id: "support", input, output, instructions: "Reply.", tools: [], limits }));
|
|
14
|
+
*/
|
|
15
|
+
export const defineAgentEffect = Effect.fn("Agents.definition.define")(function* (options) {
|
|
16
|
+
if (!(yield* isRecordEffect(options))) {
|
|
17
|
+
return yield* Effect.fail(agentDefinitionFailure(new TypeError("Agent options must be an object")));
|
|
18
|
+
}
|
|
19
|
+
if (Object.hasOwn(options, "handler")) {
|
|
20
|
+
return yield* Effect.fail(agentDefinitionFailure(new TypeError("Agents cannot own handlers")));
|
|
21
|
+
}
|
|
22
|
+
const assemble = yield* Effect.try({
|
|
23
|
+
try: () => prepareAgentDescriptor(options),
|
|
24
|
+
catch: agentDefinitionFailure,
|
|
25
|
+
});
|
|
26
|
+
const id = options.id === undefined
|
|
27
|
+
? yield* createUnboundIdentityEffect().pipe(Effect.mapError((error) => agentDefinitionFailure(error.cause)))
|
|
28
|
+
: options.id;
|
|
29
|
+
return yield* Effect.try({
|
|
30
|
+
try: () => assemble(id),
|
|
31
|
+
catch: agentDefinitionFailure,
|
|
32
|
+
});
|
|
33
|
+
}, (effect) => observeAgent("definition.define", effect));
|
|
34
|
+
/** Defines a native agent for existing synchronous authoring callers.
|
|
35
|
+
* @param options - Schemas, model, tools, middleware, limits, and client metadata.
|
|
36
|
+
* @returns A frozen agent descriptor.
|
|
37
|
+
* @throws The original invalid authoring or identity error.
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { defineAgent } from "@relkit/langchain";
|
|
41
|
+
* import { z } from "@relkit/app/schema";
|
|
42
|
+
*
|
|
43
|
+
* const support = defineAgent({
|
|
44
|
+
* id: "support",
|
|
45
|
+
* input: z.object({ message: z.string() }),
|
|
46
|
+
* output: z.object({ answer: z.string() }),
|
|
47
|
+
* instructions: "Reply briefly.",
|
|
48
|
+
* tools: [],
|
|
49
|
+
* limits: { maxSteps: 4, maxToolCalls: 2, timeoutMs: 30_000 },
|
|
50
|
+
* });
|
|
51
|
+
* void support;
|
|
52
|
+
* ```
|
|
53
|
+
* @category Agents
|
|
54
|
+
* @since 0.4.0
|
|
55
|
+
*/
|
|
56
|
+
export function defineAgent(options) {
|
|
57
|
+
return Effect.runSync(defineAgentEffect(options).pipe(Effect.catchTag("AgentDefinitionFailure", (failure) => Effect.fail(failure.cause))));
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=define-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-agent.js","sourceRoot":"","sources":["../src/define-agent.ts"],"names":[],"mappings":"AAAA,qKAAqK;AAErK,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB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;QACvB,GAAG,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAQ,CAAC;QAC7B,KAAK,EAAE,sBAAsB;KAC9B,CAAC,CAAC;AACL,CAAC,EACD,CAAC,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,mBAAmB,EAAE,MAAM,CAAC,CACtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,WAAW,CAOzB,OAA6E;IAU7E,OAAO,MAAM,CAAC,OAAO,CACnB,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAI,CAC7B,MAAM,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CACnF,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/** Exposes SDK-native agent authoring with inferred input and output types; validation and descriptor assembly are delegated to the integration's owning helpers. This companion preserves the native input and output types without starting runtime work. */
|
|
2
|
+
import type { DescriptorBase, DescriptorMetadata } from "@relkit/contracts";
|
|
3
|
+
import type { AgentRef } from "@relkit/functions";
|
|
4
|
+
import type { StandardSchemaV1 } from "@relkit/schema";
|
|
5
|
+
import type { AgentChatMapping, AgentClientPolicy, AgentControl } from "@relkit/agents/internal/agent-client";
|
|
6
|
+
import type { AgentClientContractMetadata } from "./client-contract-metadata.js";
|
|
7
|
+
import type { AgentClientStateKey, AgentMiddleware, AgentModel, AgentTool } from "./define-agent-native.js";
|
|
8
|
+
import type { DeepAgentCapabilities } from "./define-agent-deep.js";
|
|
9
|
+
export interface PromptTemplate {
|
|
10
|
+
readonly template: string;
|
|
11
|
+
readonly variables?: readonly string[];
|
|
12
|
+
}
|
|
13
|
+
export interface PromptInstructions {
|
|
14
|
+
readonly kind: "prompt";
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly ref: {
|
|
17
|
+
readonly kind: "prompt";
|
|
18
|
+
readonly id: string;
|
|
19
|
+
};
|
|
20
|
+
readonly value: string | readonly string[];
|
|
21
|
+
}
|
|
22
|
+
export type AgentInstructions = string | PromptTemplate | PromptInstructions;
|
|
23
|
+
export interface AgentLimits {
|
|
24
|
+
readonly maxSteps: number;
|
|
25
|
+
readonly maxToolCalls: number;
|
|
26
|
+
readonly timeoutMs: number;
|
|
27
|
+
}
|
|
28
|
+
export interface AgentDescriptor<Id extends string, Input, Output, InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1, Middleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], Tools extends readonly AgentTool[] = readonly AgentTool[]> extends DescriptorBase<"agent", Id>, AgentRef<Id, InputSchema, OutputSchema>, DeepAgentCapabilities {
|
|
29
|
+
readonly model?: AgentModel;
|
|
30
|
+
readonly instructions: AgentInstructions;
|
|
31
|
+
readonly tools: Tools;
|
|
32
|
+
readonly middleware: Middleware;
|
|
33
|
+
readonly limits: AgentLimits;
|
|
34
|
+
readonly stateProfile?: string;
|
|
35
|
+
readonly client?: AgentClientPolicy<(...args: any[]) => unknown, AgentClientStateKey<Middleware>>;
|
|
36
|
+
readonly chat?: AgentChatMapping;
|
|
37
|
+
readonly controls?: readonly AgentControl[];
|
|
38
|
+
readonly clientContract: AgentClientContractMetadata;
|
|
39
|
+
}
|
|
40
|
+
export interface DefineAgentOptions<Id extends string, InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1, Middleware extends readonly AgentMiddleware[], Tools extends readonly AgentTool[]> extends DescriptorMetadata, DeepAgentCapabilities {
|
|
41
|
+
readonly id?: Id;
|
|
42
|
+
readonly input: InputSchema;
|
|
43
|
+
readonly output: OutputSchema;
|
|
44
|
+
readonly model?: AgentModel;
|
|
45
|
+
readonly instructions: AgentInstructions;
|
|
46
|
+
readonly tools: Tools;
|
|
47
|
+
readonly middleware?: Middleware;
|
|
48
|
+
readonly limits: AgentLimits;
|
|
49
|
+
readonly stateProfile?: string;
|
|
50
|
+
readonly client?: AgentClientPolicy<(...args: any[]) => unknown, AgentClientStateKey<Middleware>>;
|
|
51
|
+
readonly chat?: AgentChatMapping;
|
|
52
|
+
readonly controls?: readonly AgentControl[];
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=define-agent.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-agent.types.d.ts","sourceRoot":"","sources":["../src/define-agent.types.ts"],"names":[],"mappings":"AAAA,+PAA+P;AAE/P,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACb,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,SAAS,EACV,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,GAAG,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;QAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/D,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SA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2B,CAAC;CACtD;AAED,MAAM,WAAW,kBAAkB,CACjC,EAAE,SAAS,MAAM,EACjB,WAAW,SAAS,gBAAgB,EACpC,YAAY,SAAS,gBAAgB,EACrC,UAAU,SAAS,SAAS,eAAe,EAAE,EAC7C,KAAK,SAAS,SAAS,SAAS,EAAE,CAElC,SAAQ,kBAAkB,EAAE,qBAAqB;IACjD,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;IACjB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;IACzC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,iBAAiB,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;IAClG,QAAQ,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CAC7C"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Exposes SDK-native agent authoring with inferred input and output types; validation and descriptor assembly are delegated to the integration's owning helpers. This companion preserves the native input and output types without starting runtime work. */
|
|
2
|
+
export {};
|
|
3
|
+
//# sourceMappingURL=define-agent.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-agent.types.js","sourceRoot":"","sources":["../src/define-agent.types.ts"],"names":[],"mappings":"AAAA,+PAA+P"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Assembles graph nodes, edges, state and persistence into the authored native descriptor that compilation consumes without invoking graph nodes. */
|
|
2
|
+
import type { AnyStateSchema } from "@langchain/langgraph";
|
|
3
|
+
import type { StandardSchemaV1 } from "@relkit/schema";
|
|
4
|
+
import type { DefineGraphOptions, GraphDescriptor, GraphNodeLike } from "./define-graph.types.js";
|
|
5
|
+
/** Validates graph authoring options and returns an assembler for its identity.
|
|
6
|
+
* @param options - Graph state, nodes, edges, limits, and client policy.
|
|
7
|
+
* @returns A function that constructs a frozen descriptor from its identity.
|
|
8
|
+
* @throws Invalid schema, node, edge, or client policy errors.
|
|
9
|
+
* @example prepareGraphDescriptor(options)("support.graph");
|
|
10
|
+
*/
|
|
11
|
+
export declare function prepareGraphDescriptor<const Id extends string, const InputSchema extends StandardSchemaV1, const OutputSchema extends StandardSchemaV1, const State extends AnyStateSchema, const Nodes extends readonly GraphNodeLike[]>(options: DefineGraphOptions<Id, InputSchema, OutputSchema, State, Nodes>): (id: Id) => GraphDescriptor<Id, InputSchema, OutputSchema, State, Nodes>;
|
|
12
|
+
//# sourceMappingURL=define-graph-build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-graph-build.d.ts","sourceRoot":"","sources":["../src/define-graph-build.ts"],"names":[],"mappings":"AAAA,sJAAsJ;AAEtJ,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAUvD,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,aAAa,EAGd,MAAM,yBAAyB,CAAC;AAEjC;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,CAAC,EAAE,SAAS,MAAM,EACvB,KAAK,CAAC,WAAW,SAAS,gBAAgB,EAC1C,KAAK,CAAC,YAAY,SAAS,gBAAgB,EAC3C,KAAK,CAAC,KAAK,SAAS,cAAc,EAClC,KAAK,CAAC,KAAK,SAAS,SAAS,aAAa,EAAE,EAE5C,OAAO,EAAE,kBAAkB,CAAC,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,CAAC,GACvE,CAAC,EAAE,EAAE,EAAE,KAAK,eAAe,CAAC,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,CAAC,CA8C1E"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/** Assembles graph nodes, edges, state and persistence into the authored native descriptor that compilation consumes without invoking graph nodes. */
|
|
2
|
+
import { createDescriptorBase, normalizeId } from "@relkit/contracts";
|
|
3
|
+
import { copyAgentClientPolicy, copyAgentControls } from "@relkit/agents/internal/agent-client";
|
|
4
|
+
import { assertAgentSchema } from "@relkit/agents/internal/agent-validation";
|
|
5
|
+
import { copyAgentLimits } from "./define-agent.js";
|
|
6
|
+
import { prepareGraphDefinition } from "./graph-definition.js";
|
|
7
|
+
import { graphWorkflow } from "./graph-workflow.js";
|
|
8
|
+
import { graphClientContractMetadata } from "./client-contract-metadata.js";
|
|
9
|
+
import { createSubgraphNode } from "./graph-subgraph.js";
|
|
10
|
+
import { GRAPH_EXECUTION } from "./graph-execution-symbol.js";
|
|
11
|
+
/** Validates graph authoring options and returns an assembler for its identity.
|
|
12
|
+
* @param options - Graph state, nodes, edges, limits, and client policy.
|
|
13
|
+
* @returns A function that constructs a frozen descriptor from its identity.
|
|
14
|
+
* @throws Invalid schema, node, edge, or client policy errors.
|
|
15
|
+
* @example prepareGraphDescriptor(options)("support.graph");
|
|
16
|
+
*/
|
|
17
|
+
export function prepareGraphDescriptor(options) {
|
|
18
|
+
assertAgentSchema(options.input, "input");
|
|
19
|
+
assertAgentSchema(options.output, "output");
|
|
20
|
+
const { nodes, operations, stateKeys } = prepareGraphDefinition(options.state, options.input, options.output, options.nodes, options.edges);
|
|
21
|
+
const limits = copyAgentLimits(options.limits);
|
|
22
|
+
const client = copyAgentClientPolicy(options.client, stateKeys);
|
|
23
|
+
if (client !== undefined && options.stateProfile === undefined) {
|
|
24
|
+
throw new TypeError("Client-exposed graphs require stateProfile");
|
|
25
|
+
}
|
|
26
|
+
const stateProfile = options.stateProfile === undefined ? undefined : normalizeId(options.stateProfile);
|
|
27
|
+
const controls = copyAgentControls(options.controls);
|
|
28
|
+
const workflow = graphWorkflow(nodes, operations);
|
|
29
|
+
return (id) => {
|
|
30
|
+
const descriptor = {
|
|
31
|
+
...createDescriptorBase("agent", id, options),
|
|
32
|
+
execution: "graph",
|
|
33
|
+
input: options.input,
|
|
34
|
+
output: options.output,
|
|
35
|
+
nodes,
|
|
36
|
+
workflow,
|
|
37
|
+
instructions: "",
|
|
38
|
+
tools: Object.freeze([]),
|
|
39
|
+
middleware: Object.freeze([]),
|
|
40
|
+
limits,
|
|
41
|
+
...(stateProfile === undefined ? {} : { stateProfile }),
|
|
42
|
+
...(client === undefined ? {} : { client }),
|
|
43
|
+
...(controls === undefined ? {} : { controls }),
|
|
44
|
+
clientContract: graphDescriptorClientMetadata(id, options.state, client, workflow),
|
|
45
|
+
};
|
|
46
|
+
attachGraphExecution(descriptor, options, operations);
|
|
47
|
+
return Object.freeze(descriptor);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/** Projects validated graph metadata using the selected public client fields.
|
|
51
|
+
* @param id - Stable graph identity.
|
|
52
|
+
* @param state - Native state schema.
|
|
53
|
+
* @param client - Validated optional exposure policy.
|
|
54
|
+
* @param workflow - Validated workflow metadata.
|
|
55
|
+
* @returns The existing projected graph client contract.
|
|
56
|
+
*/
|
|
57
|
+
function graphDescriptorClientMetadata(id, state, client, workflow) {
|
|
58
|
+
return graphClientContractMetadata({
|
|
59
|
+
id,
|
|
60
|
+
state,
|
|
61
|
+
...(client === undefined ? {} : { client }),
|
|
62
|
+
workflow,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/** Attaches hidden execution state and subgraph conversion after validation.
|
|
66
|
+
* @param descriptor - Validated descriptor before freezing.
|
|
67
|
+
* @param options - Native state and persistence options.
|
|
68
|
+
* @param operations - Validated edge operation tuple.
|
|
69
|
+
* @returns Nothing; the same descriptor receives hidden fields.
|
|
70
|
+
*/
|
|
71
|
+
function attachGraphExecution(descriptor, options, operations) {
|
|
72
|
+
Object.defineProperty(descriptor, GRAPH_EXECUTION, {
|
|
73
|
+
value: Object.freeze({
|
|
74
|
+
state: options.state,
|
|
75
|
+
operations,
|
|
76
|
+
...(options.checkpointer === undefined ? {} : { checkpointer: options.checkpointer }),
|
|
77
|
+
...(options.store === undefined ? {} : { store: options.store }),
|
|
78
|
+
}),
|
|
79
|
+
enumerable: false,
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(descriptor, "asGraphNode", {
|
|
82
|
+
value: (nodeOptions) => createSubgraphNode(descriptor, nodeOptions),
|
|
83
|
+
enumerable: false,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=define-graph-build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-graph-build.js","sourceRoot":"","sources":["../src/define-graph-build.ts"],"names":[],"mappings":"AAAA,sJAAsJ;AAGtJ,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEtE,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAA2B,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC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AAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;YACrF,GAAG,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;SACjE,CAAC;QACF,UAAU,EAAE,KAAK;KAClB,CAAC,CAAC;IACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,aAAa,EAAE;QAC/C,KAAK,EAAE,CAAC,WAAgC,EAAE,EAAE,CAC1C,kBAAkB,CAAC,UAAwC,EAAE,WAAW,CAAC;QAC3E,UAAU,EAAE,KAAK;KAClB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Defines graph authoring failures reported before native compilation, retaining the invalid graph field and actionable diagnostic. */
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
declare const GraphDefinitionFailure_base: Schema.Class<GraphDefinitionFailure, Schema.TaggedStruct<"GraphDefinitionFailure", {
|
|
4
|
+
readonly message: Schema.String;
|
|
5
|
+
readonly cause: Schema.Unknown;
|
|
6
|
+
}>, import("effect/Cause").YieldableError>;
|
|
7
|
+
/** Tagged invalid graph authoring options or descriptor construction. */
|
|
8
|
+
export declare class GraphDefinitionFailure extends GraphDefinitionFailure_base {
|
|
9
|
+
}
|
|
10
|
+
/** Preserves a graph authoring error for Effect callers.
|
|
11
|
+
* @param cause - Invalid graph schema, node, edge, or identity.
|
|
12
|
+
* @returns A tagged graph definition failure.
|
|
13
|
+
* @example graphDefinitionFailure(new TypeError("invalid graph"));
|
|
14
|
+
*/
|
|
15
|
+
export declare function graphDefinitionFailure(cause: unknown): GraphDefinitionFailure;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=define-graph-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-graph-error.d.ts","sourceRoot":"","sources":["../src/define-graph-error.ts"],"names":[],"mappings":"AAAA,wIAAwI;AAExI,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;AAEhC,yEAAyE;AACzE,qBAAa,sBAAuB,SAAQ,2BAG3C;CAAG;AAEJ;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB,CAK7E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Defines graph authoring failures reported before native compilation, retaining the invalid graph field and actionable diagnostic. */
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
/** Tagged invalid graph authoring options or descriptor construction. */
|
|
4
|
+
export class GraphDefinitionFailure extends Schema.TaggedError()("GraphDefinitionFailure", { message: Schema.String, cause: Schema.Unknown }) {
|
|
5
|
+
}
|
|
6
|
+
/** Preserves a graph authoring error for Effect callers.
|
|
7
|
+
* @param cause - Invalid graph schema, node, edge, or identity.
|
|
8
|
+
* @returns A tagged graph definition failure.
|
|
9
|
+
* @example graphDefinitionFailure(new TypeError("invalid graph"));
|
|
10
|
+
*/
|
|
11
|
+
export function graphDefinitionFailure(cause) {
|
|
12
|
+
return new GraphDefinitionFailure({
|
|
13
|
+
message: cause instanceof Error ? cause.message : String(cause),
|
|
14
|
+
cause,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=define-graph-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-graph-error.js","sourceRoot":"","sources":["../src/define-graph-error.ts"],"names":[],"mappings":"AAAA,wIAAwI;AAExI,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,yEAAyE;AACzE,MAAM,OAAO,sBAAuB,SAAQ,MAAM,CAAC,WAAW,EAA0B,CACtF,wBAAwB,EACxB,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,CAClD;CAAG;AAEJ;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,OAAO,IAAI,sBAAsB,CAAC;QAChC,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;QAC/D,KAAK;KACN,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** Creates typed native graph node descriptors from author callbacks and records their execution metadata for later graph compilation. */
|
|
2
|
+
import type { LangGraphRunnableConfig } from "@langchain/langgraph";
|
|
3
|
+
import type { StandardSchemaV1 } from "@relkit/schema";
|
|
4
|
+
import { Effect } from "effect";
|
|
5
|
+
import type { DefineGraphNodeOptions, GraphNodeAny, GraphNodeDescriptor, GraphNodeResult } from "./define-graph-node.types.js";
|
|
6
|
+
export type * from "./define-graph-node.types.js";
|
|
7
|
+
export { assertGraphNodeDestinations } from "./graph-node-validation.js";
|
|
8
|
+
/** Runs input validation, the user handler, and output validation in one Effect.
|
|
9
|
+
* @param options - The node schemas and user implementation.
|
|
10
|
+
* @param ends - Validated dynamic destinations.
|
|
11
|
+
* @param input - Candidate node input.
|
|
12
|
+
* @param config - LangGraph runnable configuration.
|
|
13
|
+
* @returns A validated node result or GraphNodeValidationFailure.
|
|
14
|
+
* @example await Effect.runPromise(runGraphNodeHandlerEffect(options, [], input));
|
|
15
|
+
*/
|
|
16
|
+
export declare const runGraphNodeHandlerEffect: <InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1, Ends extends readonly string[]>(options: Pick<DefineGraphNodeOptions<string, InputSchema, OutputSchema, StandardSchemaV1<unknown, unknown> | undefined, Ends>, "input" | "output" | "handler">, ends: Ends, input: unknown, config?: LangGraphRunnableConfig<Record<string, any>> | undefined) => Effect.Effect<GraphNodeResult<OutputSchema, Ends>, import("./graph-node-validation-error.js").GraphNodeValidationFailure, never>;
|
|
17
|
+
/** Defines a native LangGraph node with RELKIT schemas and declared dynamic routes.
|
|
18
|
+
* @param options - Node identity, schemas, destinations, and implementation.
|
|
19
|
+
* @returns An Effect with an immutable descriptor or GraphNodeValidationFailure.
|
|
20
|
+
* @example Effect.runSync(defineGraphNodeEffect({ id: "step", input, output, handler }));
|
|
21
|
+
*/
|
|
22
|
+
export declare const defineGraphNodeEffect: <const Id extends string, const InputSchema extends StandardSchemaV1, const OutputSchema extends StandardSchemaV1, const ResumeSchema extends StandardSchemaV1 | undefined = undefined, const Ends extends readonly string[] = readonly []>(options: DefineGraphNodeOptions<Id, InputSchema, OutputSchema, ResumeSchema, Ends>) => Effect.Effect<GraphNodeDescriptor<Id, InputSchema, OutputSchema, ResumeSchema, Ends>, import("./graph-node-validation-error.js").GraphNodeValidationFailure, never>;
|
|
23
|
+
/** Defines a graph node for existing synchronous authoring callers.
|
|
24
|
+
* @param options - Node identity, schemas, destinations, and implementation.
|
|
25
|
+
* @returns An immutable graph node descriptor.
|
|
26
|
+
* @throws The original authoring error for invalid options.
|
|
27
|
+
* @example const node = defineGraphNode({ id: "step", input, output, handler });
|
|
28
|
+
*/
|
|
29
|
+
export declare function defineGraphNode<const Id extends string, const InputSchema extends StandardSchemaV1, const OutputSchema extends StandardSchemaV1, const ResumeSchema extends StandardSchemaV1 | undefined = undefined, const Ends extends readonly string[] = readonly []>(options: DefineGraphNodeOptions<Id, InputSchema, OutputSchema, ResumeSchema, Ends>): GraphNodeDescriptor<Id, InputSchema, OutputSchema, ResumeSchema, Ends>;
|
|
30
|
+
/** Checks whether a value is a native graph node descriptor.
|
|
31
|
+
* @param value - Candidate descriptor.
|
|
32
|
+
* @returns An Effect with a boolean and no typed failure.
|
|
33
|
+
* @example Effect.runSync(isGraphNodeDescriptorEffect(value));
|
|
34
|
+
*/
|
|
35
|
+
export declare const isGraphNodeDescriptorEffect: (value: unknown) => Effect.Effect<boolean, never, never>;
|
|
36
|
+
/** Checks a graph node descriptor for existing synchronous callers.
|
|
37
|
+
* @param value - Candidate descriptor.
|
|
38
|
+
* @returns Whether the value is a native graph node descriptor.
|
|
39
|
+
* @example if (isGraphNodeDescriptor(value)) useNode(value);
|
|
40
|
+
*/
|
|
41
|
+
export declare function isGraphNodeDescriptor(value: unknown): value is GraphNodeAny;
|
|
42
|
+
//# sourceMappingURL=define-graph-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-graph-node.d.ts","sourceRoot":"","sources":["../src/define-graph-node.ts"],"names":[],"mappings":"AAAA,0IAA0I;AAE1I,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,KAAK,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,KAAK,EACV,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EAChB,MAAM,8BAA8B,CAAC;AAStC,mBAAmB,8BAA8B,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAEzE;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GAElC,WAAW,SAAS,gBAAgB,EACpC,YAAY,SAAS,gBAAgB,EACrC,IAAI,SAAS,SAAS,MAAM,EAAE,oYAkBjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,SAExB,EAAE,SAAS,MAAM,QACjB,WAAW,SAAS,gBAAgB,QACpC,YAAY,SAAS,gBAAgB,QACrC,YAAY,SAAS,gBAAgB,GAAG,SAAS,oBACjD,IAAI,SAAS,SAAS,MAAM,EAAE,0QA0CvC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,CAAC,EAAE,SAAS,MAAM,EACvB,KAAK,CAAC,WAAW,SAAS,gBAAgB,EAC1C,KAAK,CAAC,YAAY,SAAS,gBAAgB,EAC3C,KAAK,CAAC,YAAY,SAAS,gBAAgB,GAAG,SAAS,GAAG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