@codemation/core 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/{EngineRuntimeRegistration.types-BtTZolK0.d.ts → EngineRuntimeRegistration.types-Dm129RJ6.d.ts} +2 -2
  3. package/dist/{EngineWorkflowRunnerService-Ddl0fekp.d.cts → EngineWorkflowRunnerService-Bf88QtwB.d.cts} +2 -2
  4. package/dist/{InMemoryRunDataFactory-i-u2yngD.d.cts → InMemoryRunDataFactory-Dyl4p2s8.d.cts} +12 -3
  5. package/dist/{RunIntentService-Cjx-glgz.d.cts → RunIntentService-B1Y3v1H6.d.cts} +25 -10
  6. package/dist/{RunIntentService-Dkr4YwN8.d.ts → RunIntentService-BDiodxhf.d.ts} +25 -10
  7. package/dist/bootstrap/index.cjs +2 -2
  8. package/dist/bootstrap/index.d.cts +5 -5
  9. package/dist/bootstrap/index.d.ts +3 -3
  10. package/dist/bootstrap/index.js +2 -2
  11. package/dist/{bootstrap-DHH2uo-W.cjs → bootstrap-DVL2ue5v.cjs} +4 -3
  12. package/dist/bootstrap-DVL2ue5v.cjs.map +1 -0
  13. package/dist/{bootstrap-DbUlOl11.js → bootstrap-DdeiJ8cd.js} +4 -3
  14. package/dist/bootstrap-DdeiJ8cd.js.map +1 -0
  15. package/dist/{index-B2v4wtys.d.ts → index-C2af8ssM.d.ts} +85 -7
  16. package/dist/index.cjs +79 -1
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +74 -5
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.js +75 -2
  21. package/dist/index.js.map +1 -1
  22. package/dist/{runtime-BdH94eBR.js → runtime-7Xh9z3dw.js} +36 -34
  23. package/dist/runtime-7Xh9z3dw.js.map +1 -0
  24. package/dist/{runtime-feFn8OmG.cjs → runtime-DVBwxFvX.cjs} +41 -33
  25. package/dist/runtime-DVBwxFvX.cjs.map +1 -0
  26. package/dist/testing.cjs +2 -2
  27. package/dist/testing.cjs.map +1 -1
  28. package/dist/testing.d.cts +2 -2
  29. package/dist/testing.d.ts +2 -2
  30. package/dist/testing.js +2 -2
  31. package/dist/testing.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/ai/AiHost.ts +20 -0
  34. package/src/ai/CallableToolConfig.ts +84 -0
  35. package/src/ai/CallableToolFactory.ts +13 -0
  36. package/src/ai/CallableToolKindToken.ts +5 -0
  37. package/src/authoring/callableTool.types.ts +12 -0
  38. package/src/authoring/defineNode.types.ts +3 -0
  39. package/src/authoring/index.ts +1 -0
  40. package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +9 -1
  41. package/src/contracts/credentialTypes.ts +20 -0
  42. package/src/contracts/runtimeTypes.ts +4 -2
  43. package/src/contracts/workflowTypes.ts +0 -7
  44. package/src/execution/NodeExecutor.ts +7 -25
  45. package/src/execution/NodeExecutorFactory.ts +7 -2
  46. package/src/execution/NodeOutputNormalizer.ts +22 -23
  47. package/src/execution/RunnableOutputBehaviorResolver.ts +23 -0
  48. package/src/execution/index.ts +1 -0
  49. package/src/index.ts +1 -0
  50. package/src/testing/SwitchHarnessNode.ts +0 -1
  51. package/dist/bootstrap-DHH2uo-W.cjs.map +0 -1
  52. package/dist/bootstrap-DbUlOl11.js.map +0 -1
  53. package/dist/runtime-BdH94eBR.js.map +0 -1
  54. package/dist/runtime-feFn8OmG.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as WorkflowGraph, $n as WorkflowExecutionPruneRepository, $t as TriggerNode, A as NodeOutputs, An as PendingNodeExecution, Ar as Lifecycle, At as ExecutionContextFactory, B as RunId, Bn as RunCompletionNotifier, Br as predicateAwareClassFactory, Bt as NodeExecutionContext, C as NodeDefinition, Cn as CurrentStateExecutionRequest, Cr as CredentialTypeRegistry, Ct as BinaryStorageWriteRequest, D as NodeId, Dn as NodeExecutionSnapshot, Dr as DependencyContainer, Dt as ExecutableTriggerNode, E as NodeErrorHandlerSpec, En as NodeExecutionError, Er as Container, Et as EngineHost, F as ParentExecutionRef, Fn as PersistedRunState, Fr as inject, Ft as NodeActivationReceipt, G as TriggerNodeConfig, Gn as RunQueueEntry, Gr as EngineExecutionLimitsPolicy, Gt as NodeExecutor, H as RunnableNodeConfig, Hn as RunEventPublisherDeps, Hr as singleton, Ht as NodeExecutionRequestHandler, I as PersistedRunPolicySnapshot, In as PersistedWorkflowSnapshot, Ir as injectAll, It as NodeActivationRequest, J as UpstreamRefPlaceholder, Jn as RunStatus, Jr as RunEventBus, Jt as PreparedNodeActivationDispatch, K as TriggerNodeOutputJson, Kn as RunResult, Kr as EngineExecutionLimitsPolicyConfig, Kt as NodeResolver, L as PersistedTokenId, Ln as PersistedWorkflowSnapshotNode, Lr as injectable, Lt as NodeActivationRequestBase, M as NodeSchedulerDecision, Mn as PersistedMutableRunState, Mr as TypeToken, Mt as LiveWorkflowRepository, N as OutputPortKey, Nn as PersistedRunControlState, Nr as container, Nt as MultiInputNode, O as NodeKind, On as NodeExecutionStatus, Or as Disposable, Ot as ExecutionBinaryService, P as PairedItemRef, Pn as PersistedRunSchedulingState, Pr as delay, Pt as NodeActivationContinuation, Q as WorkflowErrorHandlerSpec, Qn as WorkflowExecutionListingRepository, Qt as TriggerCleanupHandle, R as RunDataFactory, Rn as PersistedWorkflowTokenRegistryLike, Rr as instanceCachingFactory, Rt as NodeActivationScheduler, S as NodeConnectionName, Sn as ConnectionInvocationRecord, Sr as CredentialTypeId, St as BinaryStorageStatResult, T as NodeErrorHandlerArgs, Tn as ExecutionFrontierPlan, Tr as OAuth2ProviderFromPublicConfig, Tt as EngineDeps, U as RunnableNodeInputJson, Un as RunExecutionOptions, Ur as CoreTokens, Ut as NodeExecutionScheduler, V as RunIdFactory, Vn as RunCurrentState, Vr as registry, Vt as NodeExecutionRequest, W as RunnableNodeOutputJson, Wn as RunPruneCandidate, Wt as NodeExecutionStatePublisher, X as WorkflowErrorContext, Xn as RunSummary, Xt as RunnableNodeExecuteArgs, Y as WorkflowDefinition, Yn as RunStopCondition, Yr as RunEventSubscription, Yt as RunnableNode, Z as WorkflowErrorHandler, Zn as WebhookRunResult, Zt as TestableTriggerNode, _ as JsonValue, _n as WebhookTriggerRoutingDiagnostics, _r as CredentialSessionFactoryArgs, _t as RetryPolicySpec, a as BinaryAttachment, an as WorkflowNodeInstanceFactory, ar as CredentialFieldSchema, at as WorkflowStoragePolicyDecisionArgs, b as NodeActivationId, bn as ConnectionInvocationAppendArgs, br as CredentialType, bt as BinaryStorage, c as ExecutionMode, cn as WorkflowRunnerService, cr as CredentialHealthTester, ct as WorkflowStoragePolicySpec, d as ItemBinary, dn as HttpMethod, dr as CredentialJsonRecord, dt as runnableNodeOutputType, en as TriggerRuntimeDiagnostics, er as WorkflowExecutionRepository, et as WorkflowGraphFactory, f as Items, fn as TriggerInstanceId, fr as CredentialMaterialSourceKind, ft as triggerNodeOutputType, g as JsonPrimitive, gn as WebhookTriggerResolution, gr as CredentialSessionFactory, gt as NoneRetryPolicySpec, h as JsonObject, hn as WebhookTriggerMatcher, hr as CredentialRequirement, ht as FixedRetryPolicySpec, i as ActivationIdFactory, in as TriggerTestItemsContext, ir as CredentialBindingKey, it as WorkflowPrunePolicySpec, j as NodeRef, jn as PersistedMutableNodeState, jr as RegistrationOptions, jt as ItemNode, k as NodeOffloadPolicy, kn as NodeInputsByPort, kr as InjectionToken, kt as ExecutionContext, l as InputPortKey, ln as WorkflowSnapshotFactory, lr as CredentialInstanceId, lt as branchRef, m as JsonNonArray, mn as WebhookInvocationMatch, mr as CredentialOAuth2ScopesFromPublicConfig, mt as ExponentialRetryPolicySpec, n as InMemoryLiveWorkflowRepository, nn as TriggerSetupStateFor, nr as CredentialAuthDefinition, nt as WorkflowNodeConnection, o as BinaryPreviewKind, on as WorkflowRepository, or as CredentialHealth, ot as WorkflowStoragePolicyMode, p as JsonArray, pn as WebhookControlSignal, pr as CredentialOAuth2AuthDefinition, pt as triggerNodeSetupStateType, q as TriggerNodeSetupState, qn as RunStateResetRequest, qr as RunEvent, qt as PersistedTriggerSetupState, rn as TriggerSetupStateRepository, rr as CredentialBinding, rt as WorkflowPolicyRuntimeDefaults, s as Edge, sn as WorkflowRunnerResolver, sr as CredentialHealthStatus, st as WorkflowStoragePolicyResolver, t as RunIntentService, tn as TriggerSetupContext, tr as AnyCredentialType, tt as WorkflowId, u as Item, un as WorkflowSnapshotResolver, ur as CredentialInstanceRecord, ut as runnableNodeInputType, v as LineageCarryPolicy, vn as AllWorkflowsActiveWorkflowActivationPolicy, vr as CredentialSessionService, vt as BinaryAttachmentCreateRequest, w as NodeErrorHandler, wn as EngineRunCounters, wr as CredentialUnboundError, wt as BinaryStorageWriteResult, x as NodeConfigBase, xn as ConnectionInvocationId, xr as CredentialTypeDefinition, xt as BinaryStorageReadResult, y as MutableRunData, yn as WorkflowActivationPolicy, yr as CredentialSetupStatus, yt as BinaryBody, z as RunDataSnapshot, zn as PinnedNodeOutputsByPort, zr as instancePerContainerCachingFactory, zt as NodeBinaryAttachmentService } from "./RunIntentService-Cjx-glgz.cjs";
2
- import { a as ItemValueResolver, c as DefaultAsyncSleeper, i as UnavailableBinaryStorage, n as InMemoryBinaryStorage, o as InProcessRetryRunner, r as DefaultExecutionBinaryService, s as DefaultExecutionContextFactory, t as InMemoryRunDataFactory, u as CredentialResolverFactory } from "./InMemoryRunDataFactory-i-u2yngD.cjs";
1
+ import { $ as WorkflowGraphFactory, $n as WorkflowExecutionRepository, $t as TriggerRuntimeDiagnostics, A as NodeRef, An as PersistedMutableNodeState, Ar as Lifecycle, At as ItemNode, B as RunIdFactory, Bn as RunCurrentState, Br as predicateAwareClassFactory, Bt as NodeExecutionRequest, C as NodeErrorHandler, Cn as EngineRunCounters, Cr as CredentialTypeRegistry, Ct as BinaryStorageWriteResult, D as NodeKind, Dn as NodeExecutionStatus, Dr as DependencyContainer, Dt as ExecutionBinaryService, E as NodeId, En as NodeExecutionSnapshot, Er as Container, Et as ExecutableTriggerNode, F as PersistedRunPolicySnapshot, Fn as PersistedWorkflowSnapshot, Fr as inject, Ft as NodeActivationRequest, G as TriggerNodeOutputJson, Gn as RunResult, Gr as EngineExecutionLimitsPolicy, Gt as NodeResolver, H as RunnableNodeInputJson, Hn as RunExecutionOptions, Hr as singleton, Ht as NodeExecutionScheduler, I as PersistedTokenId, In as PersistedWorkflowSnapshotNode, Ir as injectAll, It as NodeActivationRequestBase, J as WorkflowDefinition, Jn as RunStopCondition, Jr as RunEventBus, Jt as RunnableNode, K as TriggerNodeSetupState, Kn as RunStateResetRequest, Kr as EngineExecutionLimitsPolicyConfig, Kt as PersistedTriggerSetupState, L as RunDataFactory, Ln as PersistedWorkflowTokenRegistryLike, Lr as injectable, Lt as NodeActivationScheduler, M as OutputPortKey, Mn as PersistedRunControlState, Mr as TypeToken, Mt as MultiInputNode, N as PairedItemRef, Nn as PersistedRunSchedulingState, Nr as container, Nt as NodeActivationContinuation, O as NodeOffloadPolicy, On as NodeInputsByPort, Or as Disposable, Ot as ExecutionContext, P as ParentExecutionRef, Pn as PersistedRunState, Pr as delay, Pt as NodeActivationReceipt, Q as WorkflowGraph, Qn as WorkflowExecutionPruneRepository, Qt as TriggerNode, R as RunDataSnapshot, Rn as PinnedNodeOutputsByPort, Rr as instanceCachingFactory, Rt as NodeBinaryAttachmentService, S as NodeDefinition, Sn as CurrentStateExecutionRequest, Sr as CredentialTypeId, St as BinaryStorageWriteRequest, T as NodeErrorHandlerSpec, Tn as NodeExecutionError, Tr as OAuth2ProviderFromPublicConfig, Tt as EngineHost, U as RunnableNodeOutputJson, Un as RunPruneCandidate, Ur as CoreTokens, Ut as NodeExecutionStatePublisher, V as RunnableNodeConfig, Vn as RunEventPublisherDeps, Vr as registry, Vt as NodeExecutionRequestHandler, W as TriggerNodeConfig, Wn as RunQueueEntry, Wt as NodeExecutor, X as WorkflowErrorHandler, Xn as WebhookRunResult, Xt as TestableTriggerNode, Y as WorkflowErrorContext, Yn as RunSummary, Yr as RunEventSubscription, Yt as RunnableNodeExecuteArgs, Z as WorkflowErrorHandlerSpec, Zn as WorkflowExecutionListingRepository, Zt as TriggerCleanupHandle, _ as JsonValue, _n as AllWorkflowsActiveWorkflowActivationPolicy, _r as CredentialSessionFactoryArgs, _t as BinaryAttachmentCreateRequest, a as BinaryAttachment, an as WorkflowRepository, ar as CredentialFieldSchema, at as WorkflowStoragePolicyMode, b as NodeConfigBase, bn as ConnectionInvocationId, br as CredentialType, bt as BinaryStorageReadResult, c as ExecutionMode, cn as WorkflowSnapshotFactory, cr as CredentialHealthTester, ct as branchRef, d as ItemBinary, dn as TriggerInstanceId, dr as CredentialJsonRecord, dt as triggerNodeOutputType, en as TriggerSetupContext, er as AnyCredentialType, et as WorkflowId, f as Items, fn as WebhookControlSignal, fr as CredentialMaterialSourceKind, ft as triggerNodeSetupStateType, g as JsonPrimitive, gn as WebhookTriggerRoutingDiagnostics, gr as CredentialSessionFactory, gt as RetryPolicySpec, h as JsonObject, hn as WebhookTriggerResolution, hr as CredentialRequirement, ht as NoneRetryPolicySpec, i as ActivationIdFactory, in as WorkflowNodeInstanceFactory, ir as CredentialBindingKey, it as WorkflowStoragePolicyDecisionArgs, j as NodeSchedulerDecision, jn as PersistedMutableRunState, jr as RegistrationOptions, jt as LiveWorkflowRepository, k as NodeOutputs, kn as PendingNodeExecution, kr as InjectionToken, kt as ExecutionContextFactory, l as InputPortKey, ln as WorkflowSnapshotResolver, lr as CredentialInstanceId, lt as runnableNodeInputType, m as JsonNonArray, mn as WebhookTriggerMatcher, mr as CredentialOAuth2ScopesFromPublicConfig, mt as FixedRetryPolicySpec, n as InMemoryLiveWorkflowRepository, nn as TriggerSetupStateRepository, nr as CredentialAuthDefinition, nt as WorkflowPolicyRuntimeDefaults, o as BinaryPreviewKind, on as WorkflowRunnerResolver, or as CredentialHealth, ot as WorkflowStoragePolicyResolver, p as JsonArray, pn as WebhookInvocationMatch, pr as CredentialOAuth2AuthDefinition, pt as ExponentialRetryPolicySpec, q as UpstreamRefPlaceholder, qn as RunStatus, qr as RunEvent, qt as PreparedNodeActivationDispatch, rn as TriggerTestItemsContext, rr as CredentialBinding, rt as WorkflowPrunePolicySpec, s as Edge, sn as WorkflowRunnerService, sr as CredentialHealthStatus, st as WorkflowStoragePolicySpec, t as RunIntentService, tn as TriggerSetupStateFor, tr as CredentialAdvancedSectionPresentation, tt as WorkflowNodeConnection, u as Item, un as HttpMethod, ur as CredentialInstanceRecord, ut as runnableNodeOutputType, v as MutableRunData, vn as WorkflowActivationPolicy, vr as CredentialSessionService, vt as BinaryBody, w as NodeErrorHandlerArgs, wn as ExecutionFrontierPlan, wr as CredentialUnboundError, wt as EngineDeps, x as NodeConnectionName, xn as ConnectionInvocationRecord, xr as CredentialTypeDefinition, xt as BinaryStorageStatResult, y as NodeActivationId, yn as ConnectionInvocationAppendArgs, yr as CredentialSetupStatus, yt as BinaryStorage, z as RunId, zn as RunCompletionNotifier, zr as instancePerContainerCachingFactory, zt as NodeExecutionContext } from "./RunIntentService-B1Y3v1H6.cjs";
2
+ import { a as RunnableOutputBehavior, c as InProcessRetryRunner, f as CredentialResolverFactory, i as UnavailableBinaryStorage, l as DefaultExecutionContextFactory, n as InMemoryBinaryStorage, o as RunnableOutputBehaviorResolver, r as DefaultExecutionBinaryService, s as ItemValueResolver, t as InMemoryRunDataFactory, u as DefaultAsyncSleeper } from "./InMemoryRunDataFactory-Dyl4p2s8.cjs";
3
3
  import { ZodType, input, output, z } from "zod";
4
4
 
5
5
  //#region src/contracts/emitPorts.d.ts
@@ -392,13 +392,13 @@ declare class NodeOutputNormalizer {
392
392
  normalizeExecuteResult(args: Readonly<{
393
393
  baseItem: Item;
394
394
  raw: unknown;
395
- carry: LineageCarryPolicy;
395
+ behavior: RunnableOutputBehavior;
396
396
  }>): NodeOutputs;
397
397
  private arrayFanOutToMain;
398
398
  private emitPortsToOutputs;
399
399
  private normalizePortPayload;
400
400
  private isItemLike;
401
- private applyLineage;
401
+ private applyOutput;
402
402
  }
403
403
  //#endregion
404
404
  //#region src/contracts/Clock.d.ts
@@ -474,6 +474,8 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
474
474
  * Validates **`input`** (engine also accepts `inputSchema` on the node class).
475
475
  */
476
476
  readonly inputSchema?: ZodType<TInputJson>;
477
+ /** Preserve inbound `item.binary` when `execute` returns plain JSON or item-shaped results without `binary`. */
478
+ readonly keepBinaries?: boolean;
477
479
  execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<TOutputJson>;
478
480
  }
479
481
  /**
@@ -542,6 +544,56 @@ declare class NodeBackedToolConfig<TNodeConfig extends RunnableNodeConfig<any, a
542
544
  private isItem;
543
545
  }
544
546
  //#endregion
547
+ //#region src/ai/CallableToolConfig.d.ts
548
+ type CallableToolExecuteHandler<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = (args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>) => Promise<output<TOutputSchema>> | output<TOutputSchema>;
549
+ type CallableToolConfigOptions<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
550
+ name: string;
551
+ description?: string;
552
+ presentation?: AgentCanvasPresentation;
553
+ inputSchema: TInputSchema;
554
+ outputSchema: TOutputSchema;
555
+ /**
556
+ * Optional credential slots for this tool (same contract as other {@link ToolConfig} shapes).
557
+ */
558
+ credentialRequirements?: ReadonlyArray<CredentialRequirement>;
559
+ execute: CallableToolExecuteHandler<TInputSchema, TOutputSchema>;
560
+ }>;
561
+ /**
562
+ * Inline callable agent tool: DSL sugar over {@link ToolConfig} without a separate {@link NodeResolver}-registered {@link Tool} class.
563
+ */
564
+ declare class CallableToolConfig<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
565
+ readonly name: string;
566
+ readonly type: TypeToken<unknown>;
567
+ readonly toolKind: "callable";
568
+ readonly description?: string;
569
+ readonly presentation?: AgentCanvasPresentation;
570
+ private readonly inputSchemaValue;
571
+ private readonly outputSchemaValue;
572
+ private readonly credentialRequirementsValue?;
573
+ private readonly executeHandler;
574
+ constructor(name: string, options: CallableToolConfigOptions<TInputSchema, TOutputSchema>);
575
+ getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
576
+ getInputSchema(): TInputSchema;
577
+ getOutputSchema(): TOutputSchema;
578
+ /**
579
+ * Parses tool input and output with the configured Zod schemas.
580
+ */
581
+ executeTool(args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>): Promise<output<TOutputSchema>>;
582
+ }
583
+ //#endregion
584
+ //#region src/ai/CallableToolFactory.d.ts
585
+ declare class CallableToolFactoryImpl {
586
+ callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
587
+ }
588
+ declare const CallableToolFactory: CallableToolFactoryImpl;
589
+ //#endregion
590
+ //#region src/ai/CallableToolKindToken.d.ts
591
+ /**
592
+ * Shared {@link import("../di").TypeToken} marker for {@link CallableToolConfig}.
593
+ * Callable tools are not registered in {@link NodeResolver}; this class only satisfies {@link ToolConfig#type}.
594
+ */
595
+ declare class CallableToolKindToken {}
596
+ //#endregion
545
597
  //#region src/ai/AgentToolFactory.d.ts
546
598
  declare class AgentToolFactoryImpl {
547
599
  asTool<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(node: TNodeConfig, options: Readonly<{
@@ -663,6 +715,16 @@ interface ChatModelConfig {
663
715
  interface LangChainChatModelLike {
664
716
  invoke(input: unknown, options?: unknown): Promise<unknown>;
665
717
  bindTools?(tools: ReadonlyArray<unknown>): LangChainChatModelLike;
718
+ withStructuredOutput?(outputSchema: ZodSchemaAny, config?: ChatModelStructuredOutputOptions): LangChainStructuredOutputModelLike;
719
+ }
720
+ interface LangChainStructuredOutputModelLike {
721
+ invoke(input: unknown, options?: unknown): Promise<unknown>;
722
+ }
723
+ interface ChatModelStructuredOutputOptions {
724
+ readonly method?: "jsonSchema" | "functionCalling" | "jsonMode";
725
+ readonly strict?: boolean;
726
+ readonly includeRaw?: boolean;
727
+ readonly tools?: ReadonlyArray<unknown>;
666
728
  }
667
729
  interface ChatModelFactory<TConfig$1 extends ChatModelConfig = ChatModelConfig> {
668
730
  create(args: Readonly<{
@@ -702,9 +764,16 @@ interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends R
702
764
  readonly chatModel: ChatModelConfig;
703
765
  readonly tools?: ReadonlyArray<ToolConfig>;
704
766
  readonly guardrails?: AgentGuardrailConfig;
767
+ readonly outputSchema?: ZodType<TOutputJson>;
705
768
  }
706
769
  type AgentAttachmentRole = "languageModel" | "tool" | "nestedAgent";
707
770
  //#endregion
771
+ //#region src/authoring/callableTool.types.d.ts
772
+ /**
773
+ * Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
774
+ */
775
+ declare function callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
776
+ //#endregion
708
777
  //#region src/ai/AgentConnectionNodeCollector.d.ts
709
778
  type AgentConnectionNodeRole = "languageModel" | "tool" | "nestedAgent";
710
779
  type AgentConnectionCredentialSource = Readonly<{
@@ -827,5 +896,5 @@ declare class ItemsInputNormalizer {
827
896
  private isItem;
828
897
  }
829
898
  //#endregion
830
- export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, type AgentConnectionCredentialSource, AgentConnectionNodeCollector, type AgentConnectionNodeDescriptor, type AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemNode, ItemValue, ItemValueArgs, ItemValueCallback, ItemValueContext, ItemValueResolvedContext, ItemValueResolver, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LineageCarryPolicy, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
899
+ export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, type AgentConnectionCredentialSource, AgentConnectionNodeCollector, type AgentConnectionNodeDescriptor, type AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, type CallableToolConfigOptions, type CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatModelConfig, ChatModelFactory, ChatModelStructuredOutputOptions, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemNode, ItemValue, ItemValueArgs, ItemValueCallback, ItemValueContext, ItemValueResolvedContext, ItemValueResolver, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, LangChainStructuredOutputModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, callableTool, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
831
900
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as ItemValueResolvedContext, $i as RunEventBus, $n as PreparedNodeActivationDispatch, $r as RunStatus, $t as UpstreamRefPlaceholder, A as ExecutionInstanceDto, Ai as OAuth2ProviderFromPublicConfig, An as EngineDeps, Ar as ExecutionFrontierPlan, At as NodeErrorHandlerArgs, B as RunSlotProjectionState, Bi as inject, Bn as NodeActivationReceipt, Br as PersistedRunState, Bt as ParentExecutionRef, C as BranchOutputGuard, Ci as CredentialSessionService, Cn as BinaryAttachmentCreateRequest, Cr as AllWorkflowsActiveWorkflowActivationPolicy, Ct as LineageCarryPolicy, D as RunFinishedAtFactory, Di as CredentialTypeId, Dn as BinaryStorageStatResult, Dr as ConnectionInvocationRecord, Dt as NodeConnectionName, E as ValidStepSequence, Ei as CredentialTypeDefinition, En as BinaryStorageReadResult, Er as ConnectionInvocationId, Et as NodeConfigBase, F as PersistedExecutionInstanceRecord, Fi as Lifecycle, Fn as ExecutionContextFactory, Fr as PendingNodeExecution, Ft as NodeOutputs, G as WorkflowRunDetailDto, Gi as predicateAwareClassFactory, Gn as NodeExecutionContext, Gr as RunCompletionNotifier, Gt as RunId, H as WorkItemId, Hi as injectable, Hn as NodeActivationRequestBase, Hr as PersistedWorkflowSnapshotNode, Ht as PersistedTokenId, I as PersistedRunSlotProjectionRecord, Ii as RegistrationOptions, In as ItemNode, Ir as PersistedMutableNodeState, It as NodeRef, J as NoRetryPolicy, Ji as CoreTokens, Jn as NodeExecutionScheduler, Jr as RunExecutionOptions, Jt as RunnableNodeInputJson, K as ExpRetryPolicy, Ki as registry, Kn as NodeExecutionRequest, Kr as RunCurrentState, Kt as RunIdFactory, L as PersistedRunWorkItemKind, Li as TypeToken, Ln as LiveWorkflowRepository, Lr as PersistedMutableRunState, Lt as NodeSchedulerDecision, M as ExecutionPayloadPolicyFields, Mi as DependencyContainer, Mn as ExecutableTriggerNode, Mr as NodeExecutionSnapshot, Mt as NodeId, N as PayloadStorageKind, Ni as Disposable, Nn as ExecutionBinaryService, Nr as NodeExecutionStatus, Nt as NodeKind, O as BatchId, Oi as CredentialTypeRegistry, On as BinaryStorageWriteRequest, Or as CurrentStateExecutionRequest, Ot as NodeDefinition, P as PersistedExecutionInstanceKind, Pi as InjectionToken, Pn as ExecutionContext, Pr as NodeInputsByPort, Pt as NodeOffloadPolicy, Q as ItemValueContext, Qi as RunEvent, Qn as PersistedTriggerSetupState, Qr as RunStateResetRequest, Qt as TriggerNodeSetupState, R as PersistedRunWorkItemRecord, Ri as container, Rn as MultiInputNode, Rr as PersistedRunControlState, Rt as OutputPortKey, S as BranchMoreArgs, Si as CredentialSessionFactoryArgs, Sn as RetryPolicySpec, Sr as WebhookTriggerRoutingDiagnostics, St as JsonValue, T as StepSequenceOutput, Ti as CredentialType, Tn as BinaryStorage, Tr as ConnectionInvocationAppendArgs, Tt as NodeActivationId, U as WorkItemStatus, Ui as instanceCachingFactory, Un as NodeActivationScheduler, Ur as PersistedWorkflowTokenRegistryLike, Ut as RunDataFactory, V as SlotExecutionStateDto, Vi as injectAll, Vn as NodeActivationRequest, Vr as PersistedWorkflowSnapshot, Vt as PersistedRunPolicySnapshot, W as WorkflowDetailSelectionState, Wi as instancePerContainerCachingFactory, Wn as NodeBinaryAttachmentService, Wr as PinnedNodeOutputsByPort, Wt as RunDataSnapshot, X as ItemValueArgs, Xi as EngineExecutionLimitsPolicy, Xn as NodeExecutor, Xr as RunQueueEntry, Xt as TriggerNodeConfig, Y as ItemValue, Yn as NodeExecutionStatePublisher, Yr as RunPruneCandidate, Yt as RunnableNodeOutputJson, Z as ItemValueCallback, Zi as EngineExecutionLimitsPolicyConfig, Zn as NodeResolver, Zr as RunResult, Zt as TriggerNodeOutputJson, _ as ChainCursor, _i as CredentialMaterialSourceKind, _n as triggerNodeOutputType, _r as TriggerInstanceId, _t as Items, ai as WorkflowExecutionRepository, an as WorkflowGraphFactory, ar as TriggerRuntimeDiagnostics, at as PortsEmission, b as AnyTriggerNodeConfig, bi as CredentialRequirement, bn as FixedRetryPolicySpec, br as WebhookTriggerMatcher, bt as JsonObject, ci as CredentialBinding, cn as WorkflowPolicyRuntimeDefaults, cr as TriggerSetupStateRepository, ct as isUnbrandedPortsEmissionShape, d as DefaultWorkflowGraphFactory, di as CredentialHealth, dn as WorkflowStoragePolicyMode, dr as WorkflowRepository, dt as BinaryPreviewKind, ea as RunEventSubscription, ei as RunStopCondition, en as WorkflowDefinition, er as RunnableNode, et as isItemValue, f as WorkflowExecutableNodeClassifierFactory, fi as CredentialHealthStatus, fn as WorkflowStoragePolicyResolver, fr as WorkflowRunnerResolver, ft as Edge, g as WorkflowBuilder, gi as CredentialJsonRecord, gn as runnableNodeOutputType, gr as HttpMethod, gt as ItemBinary, h as ConnectionInvocationIdFactory, hi as CredentialInstanceRecord, hn as runnableNodeInputType, hr as WorkflowSnapshotResolver, ht as Item, ii as WorkflowExecutionPruneRepository, in as WorkflowGraph, ir as TriggerNode, it as getOriginIndexFromItem, j as ExecutionInstanceId, ji as Container, jn as EngineHost, jr as NodeExecutionError, jt as NodeErrorHandlerSpec, k as ConnectionInvocationKind, ki as CredentialUnboundError, kn as BinaryStorageWriteResult, kr as EngineRunCounters, kt as NodeErrorHandler, li as CredentialBindingKey, ln as WorkflowPrunePolicySpec, lr as TriggerTestItemsContext, lt as ActivationIdFactory, m as ConnectionNodeIdFactory, mi as CredentialInstanceId, mn as branchRef, mr as WorkflowSnapshotFactory, mt as InputPortKey, n as InMemoryLiveWorkflowRepository, ni as WebhookRunResult, nn as WorkflowErrorHandler, nr as TestableTriggerNode, nt as resolveItemValuesForExecution, oi as AnyCredentialType, on as WorkflowId, or as TriggerSetupContext, ot as emitPorts, p as WorkflowExecutableNodeClassifier, pi as CredentialHealthTester, pn as WorkflowStoragePolicySpec, pr as WorkflowRunnerService, pt as ExecutionMode, q as RetryPolicy, qi as singleton, qn as NodeExecutionRequestHandler, qr as RunEventPublisherDeps, qt as RunnableNodeConfig, ri as WorkflowExecutionListingRepository, rn as WorkflowErrorHandlerSpec, rr as TriggerCleanupHandle, rt as resolveItemValuesInUnknown, si as CredentialAuthDefinition, sn as WorkflowNodeConnection, sr as TriggerSetupStateFor, st as isPortsEmission, t as RunIntentService, ti as RunSummary, tn as WorkflowErrorContext, tr as RunnableNodeExecuteArgs, tt as itemValue, ui as CredentialFieldSchema, un as WorkflowStoragePolicyDecisionArgs, ur as WorkflowNodeInstanceFactory, ut as BinaryAttachment, v as WhenBuilder, vi as CredentialOAuth2AuthDefinition, vn as triggerNodeSetupStateType, vr as WebhookControlSignal, vt as JsonArray, w as BranchStepsArg, wi as CredentialSetupStatus, wn as BinaryBody, wr as WorkflowActivationPolicy, wt as MutableRunData, x as BooleanWhenOverloads, xi as CredentialSessionFactory, xn as NoneRetryPolicySpec, xr as WebhookTriggerResolution, xt as JsonPrimitive, y as AnyRunnableNodeConfig, yi as CredentialOAuth2ScopesFromPublicConfig, yn as ExponentialRetryPolicySpec, yr as WebhookInvocationMatch, yt as JsonNonArray, z as RunRevision, zi as delay, zn as NodeActivationContinuation, zr as PersistedRunSchedulingState, zt as PairedItemRef } from "./RunIntentService-Dkr4YwN8.js";
2
- import { $ as LangChainChatModelLike, A as AgentConnectionNodeRole, At as NodeOutputNormalizer, B as AgentMessageTemplate, C as PersistedRuntimeTypeKind, Ct as DefinedNodeRunContext, D as AgentConnectionCredentialSource, Dt as SystemClock, E as InMemoryRunEventBus, Et as Clock, F as AgentMessageBuildArgs, G as AgentToolCall, H as AgentModelInvocationOptions, I as AgentMessageConfig, It as CredentialResolverFactory, J as AgentToolExecuteArgs, K as AgentToolCallPlanner, L as AgentMessageDto, Lt as NodeEventPublisher, M as AgentCanvasPresentation, Mt as InProcessRetryRunner, N as AgentGuardrailConfig, Nt as DefaultExecutionContextFactory, O as AgentConnectionNodeCollector, P as AgentGuardrailDefaults, Pt as DefaultAsyncSleeper, Q as ChatModelFactory, R as AgentMessageLine, S as PersistedRuntimeTypeDecoratorOptions, St as DefinedNodeCredentialBindings, T as EventPublishingWorkflowExecutionRepository, Tt as defineNode, U as AgentNodeConfig, V as AgentMessageTemplateContent, W as AgentTool, X as AgentTurnLimitBehavior, Y as AgentToolToken, Z as ChatModelConfig, _ as tool, _t as DefineNodeExecuteArgs, at as Tool, b as PersistedRuntimeTypeMetadataStore, bt as DefinedNodeCredentialAccessors, ct as ZodSchemaAny, d as DefaultExecutionBinaryService, dt as AgentToolFactory, et as NodeBackedToolConfigOptions, f as UnavailableBinaryStorage, ft as NodeBackedToolConfig, g as node, gt as DefineBatchNodeOptions, h as getPersistedRuntimeTypeMetadata, ht as DefinedNodeRegistry, it as NodeBackedToolOutputMapperArgs, j as AgentAttachmentRole, jt as ItemValueResolver, k as AgentConnectionNodeDescriptor, l as InMemoryRunDataFactory, lt as AgentConfigInspector, m as chatModel, mt as defineCredential, nt as NodeBackedToolInputMapperArgs, ot as ToolConfig, p as ItemsInputNormalizer, pt as DefineCredentialOptions, q as AgentToolDefinition, rt as NodeBackedToolOutputMapper, st as ToolExecuteArgs, tt as NodeBackedToolInputMapper, u as InMemoryBinaryStorage, ut as AgentMessageConfigNormalizer, v as StackTraceCallSitePathResolver, vt as DefineNodeOptions, w as PersistedRuntimeTypeMetadata, wt as defineBatchNode, x as InjectableRuntimeDecoratorComposer, xt as DefinedNodeCredentialBinding, y as PersistedRuntimeTypeNameResolver, yt as DefinedNode, z as AgentMessageRole } from "./index-B2v4wtys.js";
3
- export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentConnectionCredentialSource, AgentConnectionNodeCollector, AgentConnectionNodeDescriptor, AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemNode, ItemValue, ItemValueArgs, ItemValueCallback, ItemValueContext, ItemValueResolvedContext, ItemValueResolver, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LineageCarryPolicy, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, PersistedRuntimeTypeDecoratorOptions, PersistedRuntimeTypeKind, PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
1
+ import { $ as ItemValueResolvedContext, $i as RunEventBus, $n as RunnableNode, $r as RunStopCondition, $t as WorkflowDefinition, A as ExecutionInstanceDto, Ai as OAuth2ProviderFromPublicConfig, An as EngineHost, Ar as NodeExecutionError, At as NodeErrorHandlerSpec, B as RunSlotProjectionState, Bi as inject, Bn as NodeActivationRequest, Br as PersistedWorkflowSnapshot, Bt as PersistedRunPolicySnapshot, C as BranchOutputGuard, Ci as CredentialSessionService, Cn as BinaryBody, Cr as WorkflowActivationPolicy, Ct as MutableRunData, D as RunFinishedAtFactory, Di as CredentialTypeId, Dn as BinaryStorageWriteRequest, Dr as CurrentStateExecutionRequest, Dt as NodeDefinition, E as ValidStepSequence, Ei as CredentialTypeDefinition, En as BinaryStorageStatResult, Er as ConnectionInvocationRecord, Et as NodeConnectionName, F as PersistedExecutionInstanceRecord, Fi as Lifecycle, Fn as ItemNode, Fr as PersistedMutableNodeState, Ft as NodeRef, G as WorkflowRunDetailDto, Gi as predicateAwareClassFactory, Gn as NodeExecutionRequest, Gr as RunCurrentState, Gt as RunIdFactory, H as WorkItemId, Hi as injectable, Hn as NodeActivationScheduler, Hr as PersistedWorkflowTokenRegistryLike, Ht as RunDataFactory, I as PersistedRunSlotProjectionRecord, Ii as RegistrationOptions, In as LiveWorkflowRepository, Ir as PersistedMutableRunState, It as NodeSchedulerDecision, J as NoRetryPolicy, Ji as CoreTokens, Jn as NodeExecutionStatePublisher, Jr as RunPruneCandidate, Jt as RunnableNodeOutputJson, K as ExpRetryPolicy, Ki as registry, Kn as NodeExecutionRequestHandler, Kr as RunEventPublisherDeps, Kt as RunnableNodeConfig, L as PersistedRunWorkItemKind, Li as TypeToken, Ln as MultiInputNode, Lr as PersistedRunControlState, Lt as OutputPortKey, M as ExecutionPayloadPolicyFields, Mi as DependencyContainer, Mn as ExecutionBinaryService, Mr as NodeExecutionStatus, Mt as NodeKind, N as PayloadStorageKind, Ni as Disposable, Nn as ExecutionContext, Nr as NodeInputsByPort, Nt as NodeOffloadPolicy, O as BatchId, Oi as CredentialTypeRegistry, On as BinaryStorageWriteResult, Or as EngineRunCounters, Ot as NodeErrorHandler, P as PersistedExecutionInstanceKind, Pi as InjectionToken, Pn as ExecutionContextFactory, Pr as PendingNodeExecution, Pt as NodeOutputs, Q as ItemValueContext, Qi as RunEvent, Qn as PreparedNodeActivationDispatch, Qr as RunStatus, Qt as UpstreamRefPlaceholder, R as PersistedRunWorkItemRecord, Ri as container, Rn as NodeActivationContinuation, Rr as PersistedRunSchedulingState, Rt as PairedItemRef, S as BranchMoreArgs, Si as CredentialSessionFactoryArgs, Sn as BinaryAttachmentCreateRequest, Sr as AllWorkflowsActiveWorkflowActivationPolicy, St as JsonValue, T as StepSequenceOutput, Ti as CredentialType, Tn as BinaryStorageReadResult, Tr as ConnectionInvocationId, Tt as NodeConfigBase, U as WorkItemStatus, Ui as instanceCachingFactory, Un as NodeBinaryAttachmentService, Ur as PinnedNodeOutputsByPort, Ut as RunDataSnapshot, V as SlotExecutionStateDto, Vi as injectAll, Vn as NodeActivationRequestBase, Vr as PersistedWorkflowSnapshotNode, Vt as PersistedTokenId, W as WorkflowDetailSelectionState, Wi as instancePerContainerCachingFactory, Wn as NodeExecutionContext, Wr as RunCompletionNotifier, Wt as RunId, X as ItemValueArgs, Xi as EngineExecutionLimitsPolicy, Xn as NodeResolver, Xr as RunResult, Xt as TriggerNodeOutputJson, Y as ItemValue, Yn as NodeExecutor, Yr as RunQueueEntry, Yt as TriggerNodeConfig, Z as ItemValueCallback, Zi as EngineExecutionLimitsPolicyConfig, Zn as PersistedTriggerSetupState, Zr as RunStateResetRequest, Zt as TriggerNodeSetupState, _ as ChainCursor, _i as CredentialMaterialSourceKind, _n as triggerNodeSetupStateType, _r as WebhookControlSignal, _t as Items, ai as AnyCredentialType, an as WorkflowId, ar as TriggerSetupContext, at as PortsEmission, b as AnyTriggerNodeConfig, bi as CredentialRequirement, bn as NoneRetryPolicySpec, br as WebhookTriggerResolution, bt as JsonObject, ci as CredentialBinding, cn as WorkflowPrunePolicySpec, cr as TriggerTestItemsContext, ct as isUnbrandedPortsEmissionShape, d as DefaultWorkflowGraphFactory, di as CredentialHealth, dn as WorkflowStoragePolicyResolver, dr as WorkflowRunnerResolver, dt as BinaryPreviewKind, ea as RunEventSubscription, ei as RunSummary, en as WorkflowErrorContext, er as RunnableNodeExecuteArgs, et as isItemValue, f as WorkflowExecutableNodeClassifierFactory, fi as CredentialHealthStatus, fn as WorkflowStoragePolicySpec, fr as WorkflowRunnerService, ft as Edge, g as WorkflowBuilder, gi as CredentialJsonRecord, gn as triggerNodeOutputType, gr as TriggerInstanceId, gt as ItemBinary, h as ConnectionInvocationIdFactory, hi as CredentialInstanceRecord, hn as runnableNodeOutputType, hr as HttpMethod, ht as Item, ii as WorkflowExecutionRepository, in as WorkflowGraphFactory, ir as TriggerRuntimeDiagnostics, it as getOriginIndexFromItem, j as ExecutionInstanceId, ji as Container, jn as ExecutableTriggerNode, jr as NodeExecutionSnapshot, jt as NodeId, k as ConnectionInvocationKind, ki as CredentialUnboundError, kn as EngineDeps, kr as ExecutionFrontierPlan, kt as NodeErrorHandlerArgs, li as CredentialBindingKey, ln as WorkflowStoragePolicyDecisionArgs, lr as WorkflowNodeInstanceFactory, lt as ActivationIdFactory, m as ConnectionNodeIdFactory, mi as CredentialInstanceId, mn as runnableNodeInputType, mr as WorkflowSnapshotResolver, mt as InputPortKey, n as InMemoryLiveWorkflowRepository, ni as WorkflowExecutionListingRepository, nn as WorkflowErrorHandlerSpec, nr as TriggerCleanupHandle, nt as resolveItemValuesForExecution, oi as CredentialAdvancedSectionPresentation, on as WorkflowNodeConnection, or as TriggerSetupStateFor, ot as emitPorts, p as WorkflowExecutableNodeClassifier, pi as CredentialHealthTester, pn as branchRef, pr as WorkflowSnapshotFactory, pt as ExecutionMode, q as RetryPolicy, qi as singleton, qn as NodeExecutionScheduler, qr as RunExecutionOptions, qt as RunnableNodeInputJson, ri as WorkflowExecutionPruneRepository, rn as WorkflowGraph, rr as TriggerNode, rt as resolveItemValuesInUnknown, si as CredentialAuthDefinition, sn as WorkflowPolicyRuntimeDefaults, sr as TriggerSetupStateRepository, st as isPortsEmission, t as RunIntentService, ti as WebhookRunResult, tn as WorkflowErrorHandler, tr as TestableTriggerNode, tt as itemValue, ui as CredentialFieldSchema, un as WorkflowStoragePolicyMode, ur as WorkflowRepository, ut as BinaryAttachment, v as WhenBuilder, vi as CredentialOAuth2AuthDefinition, vn as ExponentialRetryPolicySpec, vr as WebhookInvocationMatch, vt as JsonArray, w as BranchStepsArg, wi as CredentialSetupStatus, wn as BinaryStorage, wr as ConnectionInvocationAppendArgs, wt as NodeActivationId, x as BooleanWhenOverloads, xi as CredentialSessionFactory, xn as RetryPolicySpec, xr as WebhookTriggerRoutingDiagnostics, xt as JsonPrimitive, y as AnyRunnableNodeConfig, yi as CredentialOAuth2ScopesFromPublicConfig, yn as FixedRetryPolicySpec, yr as WebhookTriggerMatcher, yt as JsonNonArray, z as RunRevision, zi as delay, zn as NodeActivationReceipt, zr as PersistedRunState, zt as ParentExecutionRef } from "./RunIntentService-BDiodxhf.js";
2
+ import { $ as ChatModelFactory, A as AgentConnectionNodeRole, At as DefinedNodeCredentialBindings, B as AgentMessageRole, Bt as ItemValueResolver, C as PersistedRuntimeTypeKind, Ct as DefinedNodeRegistry, D as AgentConnectionCredentialSource, Dt as DefinedNode, E as InMemoryRunEventBus, Et as DefineNodeOptions, F as AgentGuardrailDefaults, Ft as SystemClock, G as AgentTool, Gt as CredentialResolverFactory, H as AgentMessageTemplateContent, Ht as DefaultExecutionContextFactory, I as AgentMessageBuildArgs, J as AgentToolDefinition, K as AgentToolCall, Kt as NodeEventPublisher, L as AgentMessageConfig, M as AgentAttachmentRole, Mt as defineBatchNode, N as AgentCanvasPresentation, Nt as defineNode, O as AgentConnectionNodeCollector, Ot as DefinedNodeCredentialAccessors, P as AgentGuardrailConfig, Pt as Clock, Q as ChatModelConfig, R as AgentMessageDto, Rt as NodeOutputNormalizer, S as PersistedRuntimeTypeDecoratorOptions, St as defineCredential, T as EventPublishingWorkflowExecutionRepository, Tt as DefineNodeExecuteArgs, U as AgentModelInvocationOptions, Ut as DefaultAsyncSleeper, V as AgentMessageTemplate, Vt as InProcessRetryRunner, W as AgentNodeConfig, X as AgentToolToken, Y as AgentToolExecuteArgs, Z as AgentTurnLimitBehavior, _ as tool, _t as CallableToolConfig, at as NodeBackedToolInputMapperArgs, b as PersistedRuntimeTypeMetadataStore, bt as NodeBackedToolConfig, ct as Tool, d as DefaultExecutionBinaryService, dt as ZodSchemaAny, et as ChatModelStructuredOutputOptions, f as UnavailableBinaryStorage, ft as AgentConfigInspector, g as node, gt as CallableToolFactory, h as getPersistedRuntimeTypeMetadata, ht as CallableToolKindToken, it as NodeBackedToolInputMapper, j as callableTool, jt as DefinedNodeRunContext, k as AgentConnectionNodeDescriptor, kt as DefinedNodeCredentialBinding, l as InMemoryRunDataFactory, lt as ToolConfig, m as chatModel, mt as AgentToolFactory, nt as LangChainStructuredOutputModelLike, ot as NodeBackedToolOutputMapper, p as ItemsInputNormalizer, pt as AgentMessageConfigNormalizer, q as AgentToolCallPlanner, rt as NodeBackedToolConfigOptions, st as NodeBackedToolOutputMapperArgs, tt as LangChainChatModelLike, u as InMemoryBinaryStorage, ut as ToolExecuteArgs, v as StackTraceCallSitePathResolver, vt as CallableToolConfigOptions, w as PersistedRuntimeTypeMetadata, wt as DefineBatchNodeOptions, x as InjectableRuntimeDecoratorComposer, xt as DefineCredentialOptions, y as PersistedRuntimeTypeNameResolver, yt as CallableToolExecuteHandler, z as AgentMessageLine, zt as RunnableOutputBehaviorResolver } from "./index-C2af8ssM.js";
3
+ export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentConnectionCredentialSource, AgentConnectionNodeCollector, AgentConnectionNodeDescriptor, AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, CallableToolConfigOptions, CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatModelConfig, ChatModelFactory, ChatModelStructuredOutputOptions, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemNode, ItemValue, ItemValueArgs, ItemValueCallback, ItemValueContext, ItemValueResolvedContext, ItemValueResolver, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, LangChainStructuredOutputModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, PersistedRuntimeTypeDecoratorOptions, PersistedRuntimeTypeKind, PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, callableTool, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as getPersistedRuntimeTypeMetadata, B as CredentialResolverFactory, F as isUnbrandedPortsEmissionShape, G as WorkflowExecutableNodeClassifierFactory, H as DefaultExecutionBinaryService, I as ItemValueResolver, J as isItemValue, K as WorkflowExecutableNodeClassifier, L as InProcessRetryRunner, M as NodeOutputNormalizer, N as emitPorts, P as isPortsEmission, Q as chatModel, R as DefaultExecutionContextFactory, U as UnavailableBinaryStorage, V as getOriginIndexFromItem, W as NodeEventPublisher, X as resolveItemValuesForExecution, Y as itemValue, Z as resolveItemValuesInUnknown, _ as EngineExecutionLimitsPolicy, a as InMemoryLiveWorkflowRepository, at as PersistedRuntimeTypeNameResolver, ct as inject, d as InMemoryRunDataFactory, dt as instanceCachingFactory, et as node, f as InMemoryBinaryStorage, ft as instancePerContainerCachingFactory, gt as CoreTokens, ht as singleton, i as RunIntentService, it as StackTraceCallSitePathResolver, lt as injectAll, mt as registry, nt as InjectableRuntimeDecoratorComposer, ot as container, pt as predicateAwareClassFactory, q as ConnectionNodeIdFactory, rt as PersistedRuntimeTypeMetadataStore, st as delay, tt as tool, u as RunFinishedAtFactory, ut as injectable, z as DefaultAsyncSleeper } from "./runtime-BdH94eBR.js";
1
+ import { $ as chatModel, B as DefaultAsyncSleeper, F as isPortsEmission, G as NodeEventPublisher, H as getOriginIndexFromItem, I as isUnbrandedPortsEmissionShape, J as ConnectionNodeIdFactory, K as WorkflowExecutableNodeClassifierFactory, L as ItemValueResolver, M as RunnableOutputBehaviorResolver, N as NodeOutputNormalizer, P as emitPorts, Q as resolveItemValuesInUnknown, R as InProcessRetryRunner, U as DefaultExecutionBinaryService, V as CredentialResolverFactory, W as UnavailableBinaryStorage, X as itemValue, Y as isItemValue, Z as resolveItemValuesForExecution, _ as EngineExecutionLimitsPolicy, _t as CoreTokens, a as InMemoryLiveWorkflowRepository, at as StackTraceCallSitePathResolver, ct as delay, d as InMemoryRunDataFactory, dt as injectable, et as getPersistedRuntimeTypeMetadata, f as InMemoryBinaryStorage, ft as instanceCachingFactory, gt as singleton, ht as registry, i as RunIntentService, it as PersistedRuntimeTypeMetadataStore, lt as inject, mt as predicateAwareClassFactory, nt as tool, ot as PersistedRuntimeTypeNameResolver, pt as instancePerContainerCachingFactory, q as WorkflowExecutableNodeClassifier, rt as InjectableRuntimeDecoratorComposer, st as container, tt as node, u as RunFinishedAtFactory, ut as injectAll, z as DefaultExecutionContextFactory } from "./runtime-7Xh9z3dw.js";
2
2
  import { a as WhenBuilder, i as ChainCursor, n as InMemoryRunEventBus, r as WorkflowBuilder, t as AllWorkflowsActiveWorkflowActivationPolicy } from "./workflowActivationPolicy-Td9HTOuD.js";
3
3
  import { z } from "zod";
4
4
  import { randomUUID } from "node:crypto";
@@ -88,6 +88,7 @@ function defineNode(options) {
88
88
  type = DefinedNodeRuntime;
89
89
  icon = options.icon;
90
90
  inputSchema = options.inputSchema;
91
+ keepBinaries = options.keepBinaries ?? false;
91
92
  constructor(name, config, id) {
92
93
  this.name = name;
93
94
  this.config = config;
@@ -235,6 +236,78 @@ function defineCredential(options) {
235
236
  };
236
237
  }
237
238
 
239
+ //#endregion
240
+ //#region src/ai/CallableToolKindToken.ts
241
+ /**
242
+ * Shared {@link import("../di").TypeToken} marker for {@link CallableToolConfig}.
243
+ * Callable tools are not registered in {@link NodeResolver}; this class only satisfies {@link ToolConfig#type}.
244
+ */
245
+ var CallableToolKindToken = class {};
246
+
247
+ //#endregion
248
+ //#region src/ai/CallableToolConfig.ts
249
+ /**
250
+ * Inline callable agent tool: DSL sugar over {@link ToolConfig} without a separate {@link NodeResolver}-registered {@link Tool} class.
251
+ */
252
+ var CallableToolConfig = class {
253
+ type = CallableToolKindToken;
254
+ toolKind = "callable";
255
+ description;
256
+ presentation;
257
+ inputSchemaValue;
258
+ outputSchemaValue;
259
+ credentialRequirementsValue;
260
+ executeHandler;
261
+ constructor(name, options) {
262
+ this.name = name;
263
+ this.description = options.description;
264
+ this.presentation = options.presentation;
265
+ this.inputSchemaValue = options.inputSchema;
266
+ this.outputSchemaValue = options.outputSchema;
267
+ this.credentialRequirementsValue = options.credentialRequirements;
268
+ this.executeHandler = options.execute;
269
+ }
270
+ getCredentialRequirements() {
271
+ return this.credentialRequirementsValue ?? [];
272
+ }
273
+ getInputSchema() {
274
+ return this.inputSchemaValue;
275
+ }
276
+ getOutputSchema() {
277
+ return this.outputSchemaValue;
278
+ }
279
+ /**
280
+ * Parses tool input and output with the configured Zod schemas.
281
+ */
282
+ async executeTool(args) {
283
+ const parsedInput = this.inputSchemaValue.parse(args.input);
284
+ const raw = await Promise.resolve(this.executeHandler({
285
+ ...args,
286
+ config: this,
287
+ input: parsedInput
288
+ }));
289
+ return this.outputSchemaValue.parse(raw);
290
+ }
291
+ };
292
+
293
+ //#endregion
294
+ //#region src/ai/CallableToolFactory.ts
295
+ var CallableToolFactoryImpl = class {
296
+ callableTool(options) {
297
+ return new CallableToolConfig(options.name, options);
298
+ }
299
+ };
300
+ const CallableToolFactory = new CallableToolFactoryImpl();
301
+
302
+ //#endregion
303
+ //#region src/authoring/callableTool.types.ts
304
+ /**
305
+ * Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
306
+ */
307
+ function callableTool(options) {
308
+ return CallableToolFactory.callableTool(options);
309
+ }
310
+
238
311
  //#endregion
239
312
  //#region src/ai/NodeBackedToolConfig.ts
240
313
  var NodeBackedToolConfig = class {
@@ -639,5 +712,5 @@ var CredentialUnboundError = class CredentialUnboundError extends Error {
639
712
  const branchRef = (index) => `$${index}`;
640
713
 
641
714
  //#endregion
642
- export { AgentConfigInspector, AgentConnectionNodeCollector, AgentGuardrailDefaults, AgentMessageConfigNormalizer, AgentToolFactory, AllWorkflowsActiveWorkflowActivationPolicy, ChainCursor, ConnectionInvocationIdFactory, ConnectionNodeIdFactory, CoreTokens, CredentialResolverFactory, CredentialUnboundError, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefinedNodeRegistry, EngineExecutionLimitsPolicy, EventPublishingWorkflowExecutionRepository, ExpRetryPolicy, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, ItemValueResolver, ItemsInputNormalizer, NoRetryPolicy, NodeBackedToolConfig, NodeEventPublisher, NodeOutputNormalizer, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, RetryPolicy, RunFinishedAtFactory, RunIntentService, StackTraceCallSitePathResolver, SystemClock, UnavailableBinaryStorage, WhenBuilder, WorkflowBuilder, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, branchRef, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, singleton, tool };
715
+ export { AgentConfigInspector, AgentConnectionNodeCollector, AgentGuardrailDefaults, AgentMessageConfigNormalizer, AgentToolFactory, AllWorkflowsActiveWorkflowActivationPolicy, CallableToolConfig, CallableToolFactory, CallableToolKindToken, ChainCursor, ConnectionInvocationIdFactory, ConnectionNodeIdFactory, CoreTokens, CredentialResolverFactory, CredentialUnboundError, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefinedNodeRegistry, EngineExecutionLimitsPolicy, EventPublishingWorkflowExecutionRepository, ExpRetryPolicy, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, ItemValueResolver, ItemsInputNormalizer, NoRetryPolicy, NodeBackedToolConfig, NodeEventPublisher, NodeOutputNormalizer, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, RetryPolicy, RunFinishedAtFactory, RunIntentService, RunnableOutputBehaviorResolver, StackTraceCallSitePathResolver, SystemClock, UnavailableBinaryStorage, WhenBuilder, WorkflowBuilder, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, branchRef, callableTool, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, singleton, tool };
643
716
  //# sourceMappingURL=index.js.map