@runtypelabs/sdk 4.6.1 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -607,6 +607,21 @@ var FlowBuilder = class {
607
607
  this.optionsConfig = { ...this.optionsConfig, ...options };
608
608
  return this;
609
609
  }
610
+ /**
611
+ * Add a generic flow step. Prefer the typed helper methods when available;
612
+ * this escape hatch keeps code-first flows compatible with newer dashboard/API
613
+ * step types before a dedicated SDK convenience method exists.
614
+ */
615
+ step(config) {
616
+ this.addStep(
617
+ config.type,
618
+ config.name || config.type,
619
+ config.config || {},
620
+ config.enabled,
621
+ config.when
622
+ );
623
+ return this;
624
+ }
610
625
  // ============================================================================
611
626
  // Step Methods
612
627
  // ============================================================================
@@ -625,6 +640,7 @@ var FlowBuilder = class {
625
640
  systemPrompt: config.systemPrompt,
626
641
  previousMessages: config.previousMessages,
627
642
  outputVariable: config.outputVariable,
643
+ mode: config.mode,
628
644
  responseFormat: config.responseFormat,
629
645
  temperature: config.temperature,
630
646
  topP: config.topP,
@@ -634,11 +650,13 @@ var FlowBuilder = class {
634
650
  seed: config.seed,
635
651
  maxTokens: config.maxTokens,
636
652
  reasoning: config.reasoning,
653
+ artifacts: config.artifacts,
637
654
  streamOutput: config.streamOutput,
638
655
  tools: config.tools,
639
656
  errorHandling: config.errorHandling
640
657
  },
641
- config.enabled
658
+ config.enabled,
659
+ config.when
642
660
  );
643
661
  return this;
644
662
  }
@@ -670,11 +688,14 @@ var FlowBuilder = class {
670
688
  jsonOptions: config.jsonOptions,
671
689
  outputVariable: config.outputVariable,
672
690
  errorHandling: config.errorHandling,
691
+ defaultValue: config.defaultValue,
673
692
  streamOutput: config.streamOutput,
674
693
  pollIntervalMs: config.pollIntervalMs,
675
- completionTimeoutMs: config.completionTimeoutMs
694
+ completionTimeoutMs: config.completionTimeoutMs,
695
+ asyncCrawl: config.asyncCrawl
676
696
  },
677
- config.enabled
697
+ config.enabled,
698
+ config.when
678
699
  );
679
700
  return this;
680
701
  }
@@ -692,15 +713,18 @@ var FlowBuilder = class {
692
713
  headers: config.headers,
693
714
  body: config.body
694
715
  },
716
+ auth: config.auth,
695
717
  responseType: config.responseType,
696
718
  markdownIfAvailable: config.markdownIfAvailable,
697
- fetchMethod: config.fetchMethod,
719
+ fetchMethod: config.fetchMethod === "http" ? "standard" : config.fetchMethod,
698
720
  firecrawl: config.firecrawl,
699
721
  outputVariable: config.outputVariable,
700
722
  errorHandling: config.errorHandling,
723
+ defaultValue: config.defaultValue,
701
724
  streamOutput: config.streamOutput
702
725
  },
703
- config.enabled
726
+ config.enabled,
727
+ config.when
704
728
  );
705
729
  return this;
706
730
  }
@@ -712,12 +736,23 @@ var FlowBuilder = class {
712
736
  "transform-data",
713
737
  config.name,
714
738
  {
739
+ inputVariables: config.inputVariables,
715
740
  script: config.script,
716
741
  outputVariable: config.outputVariable,
717
742
  sandboxProvider: config.sandboxProvider,
743
+ language: config.language,
744
+ inputMode: config.inputMode,
745
+ packageJson: config.packageJson,
746
+ persistSandbox: config.persistSandbox,
747
+ reuseSandboxId: config.reuseSandboxId,
748
+ networkAccess: config.networkAccess,
749
+ errorHandling: config.errorHandling,
750
+ defaultValue: config.defaultValue,
751
+ tools: config.tools,
718
752
  streamOutput: config.streamOutput
719
753
  },
720
- config.enabled
754
+ config.enabled,
755
+ config.when
721
756
  );
722
757
  return this;
723
758
  }
@@ -732,7 +767,8 @@ var FlowBuilder = class {
732
767
  variableName: config.variableName,
733
768
  value: config.value
734
769
  },
735
- config.enabled
770
+ config.enabled,
771
+ config.when
736
772
  );
737
773
  return this;
738
774
  }
@@ -748,7 +784,8 @@ var FlowBuilder = class {
748
784
  trueSteps: config.trueSteps || [],
749
785
  falseSteps: config.falseSteps || []
750
786
  },
751
- config.enabled
787
+ config.enabled,
788
+ config.when
752
789
  );
753
790
  return this;
754
791
  }
@@ -762,13 +799,22 @@ var FlowBuilder = class {
762
799
  {
763
800
  provider: config.provider,
764
801
  query: config.query,
802
+ temperature: config.temperature,
803
+ maxTokens: config.maxTokens,
765
804
  maxResults: config.maxResults,
805
+ dateRange: config.dateRange,
806
+ allowedDomains: config.allowedDomains,
807
+ blockedDomains: config.blockedDomains,
808
+ userLocation: config.userLocation,
809
+ sources: config.sources,
810
+ exaOptions: config.exaOptions,
766
811
  outputVariable: config.outputVariable,
767
812
  returnCitations: config.returnCitations,
768
813
  errorHandling: config.errorHandling,
769
814
  streamOutput: config.streamOutput
770
815
  },
771
- config.enabled
816
+ config.enabled,
817
+ config.when
772
818
  );
773
819
  return this;
774
820
  }
@@ -783,12 +829,19 @@ var FlowBuilder = class {
783
829
  to: config.to,
784
830
  from: config.from || "{{_flow.id}}@runtype.email",
785
831
  subject: config.subject,
832
+ replyTo: config.replyTo,
833
+ cc: config.cc,
834
+ bcc: config.bcc,
786
835
  html: config.html,
836
+ text: config.text,
837
+ attachments: config.attachments,
787
838
  outputVariable: config.outputVariable,
788
839
  errorHandling: config.errorHandling,
840
+ defaultValue: config.defaultValue,
789
841
  streamOutput: config.streamOutput
790
842
  },
791
- config.enabled
843
+ config.enabled,
844
+ config.when
792
845
  );
793
846
  return this;
794
847
  }
@@ -802,7 +855,8 @@ var FlowBuilder = class {
802
855
  {
803
856
  message: config.message
804
857
  },
805
- config.enabled
858
+ config.enabled,
859
+ config.when
806
860
  );
807
861
  return this;
808
862
  }
@@ -814,14 +868,21 @@ var FlowBuilder = class {
814
868
  "retrieve-record",
815
869
  config.name,
816
870
  {
871
+ retrievalMode: config.retrievalMode,
817
872
  recordType: config.recordType,
818
873
  recordName: config.recordName,
874
+ recordId: config.recordId,
875
+ recordFilter: config.recordFilter,
819
876
  fieldsToInclude: config.fieldsToInclude,
820
877
  fieldsToExclude: config.fieldsToExclude,
878
+ availableFields: config.availableFields,
821
879
  outputVariable: config.outputVariable,
880
+ fields: config.fields,
881
+ includeMetadata: config.includeMetadata,
822
882
  streamOutput: config.streamOutput
823
883
  },
824
- config.enabled
884
+ config.enabled,
885
+ config.when
825
886
  );
826
887
  return this;
827
888
  }
@@ -841,7 +902,8 @@ var FlowBuilder = class {
841
902
  errorHandling: config.errorHandling,
842
903
  streamOutput: config.streamOutput
843
904
  },
844
- config.enabled
905
+ config.enabled,
906
+ config.when
845
907
  );
846
908
  return this;
847
909
  }
@@ -856,12 +918,20 @@ var FlowBuilder = class {
856
918
  query: config.query,
857
919
  recordType: config.recordType,
858
920
  embeddingModel: config.embeddingModel,
921
+ vectorStore: config.vectorStore,
922
+ weaviateConfig: config.weaviateConfig,
923
+ vectorizeConfig: config.vectorizeConfig,
924
+ pineconeConfig: config.pineconeConfig,
859
925
  limit: config.limit,
860
926
  threshold: config.threshold,
927
+ metadataFilters: config.metadataFilters,
861
928
  outputVariable: config.outputVariable,
929
+ includeEmbedding: config.includeEmbedding,
930
+ includeMetadata: config.includeMetadata,
862
931
  streamOutput: config.streamOutput
863
932
  },
864
- config.enabled
933
+ config.enabled,
934
+ config.when
865
935
  );
866
936
  return this;
867
937
  }
@@ -873,14 +943,27 @@ var FlowBuilder = class {
873
943
  "generate-embedding",
874
944
  config.name,
875
945
  {
876
- inputSource: "text",
946
+ inputSource: config.inputSource || "text",
877
947
  text: config.text,
948
+ variableName: config.variableName,
949
+ recordId: config.recordId,
950
+ recordType: config.recordType,
951
+ recordName: config.recordName,
952
+ textField: config.textField,
953
+ storeInRecord: config.storeInRecord,
878
954
  embeddingModel: config.embeddingModel,
879
955
  maxLength: config.maxLength,
956
+ inputMode: config.inputMode,
957
+ inputVariable: config.inputVariable,
958
+ itemAlias: config.itemAlias,
959
+ textTemplate: config.textTemplate,
960
+ batchSize: config.batchSize,
961
+ vectorStore: config.vectorStore,
880
962
  outputVariable: config.outputVariable,
881
963
  streamOutput: config.streamOutput
882
964
  },
883
- config.enabled
965
+ config.enabled,
966
+ config.when
884
967
  );
885
968
  return this;
886
969
  }
@@ -899,7 +982,8 @@ var FlowBuilder = class {
899
982
  errorHandling: config.errorHandling,
900
983
  streamOutput: config.streamOutput
901
984
  },
902
- config.enabled
985
+ config.enabled,
986
+ config.when
903
987
  );
904
988
  return this;
905
989
  }
@@ -918,7 +1002,8 @@ var FlowBuilder = class {
918
1002
  errorHandling: config.errorHandling,
919
1003
  streamOutput: config.streamOutput
920
1004
  },
921
- config.enabled
1005
+ config.enabled,
1006
+ config.when
922
1007
  );
923
1008
  return this;
924
1009
  }
@@ -937,7 +1022,8 @@ var FlowBuilder = class {
937
1022
  errorHandling: config.errorHandling,
938
1023
  streamOutput: config.streamOutput
939
1024
  },
940
- config.enabled
1025
+ config.enabled,
1026
+ config.when
941
1027
  );
942
1028
  return this;
943
1029
  }
@@ -952,13 +1038,68 @@ var FlowBuilder = class {
952
1038
  repository: config.repository,
953
1039
  branch: config.branch,
954
1040
  path: config.path,
1041
+ token: config.token,
955
1042
  outputVariable: config.outputVariable,
1043
+ contentType: config.contentType,
1044
+ includePatterns: config.includePatterns,
1045
+ excludePatterns: config.excludePatterns,
1046
+ compress: config.compress,
1047
+ style: config.style,
956
1048
  streamOutput: config.streamOutput
957
1049
  },
958
- config.enabled
1050
+ config.enabled,
1051
+ config.when
959
1052
  );
960
1053
  return this;
961
1054
  }
1055
+ /** Add an api-call step. */
1056
+ apiCall(config) {
1057
+ return this.addRawStep("api-call", config);
1058
+ }
1059
+ /** Add a template rendering step. */
1060
+ template(config) {
1061
+ return this.addRawStep("template", config);
1062
+ }
1063
+ /** Add an update-record step. */
1064
+ updateRecord(config) {
1065
+ return this.addRawStep("update-record", config);
1066
+ }
1067
+ /** Add a deterministic tool-call step. */
1068
+ toolCall(config) {
1069
+ return this.addRawStep("tool-call", config);
1070
+ }
1071
+ /** Add a paginate-api step. */
1072
+ paginateApi(config) {
1073
+ return this.addRawStep("paginate-api", config);
1074
+ }
1075
+ /** Add a store-vector step. */
1076
+ storeVector(config) {
1077
+ return this.addRawStep("store-vector", config);
1078
+ }
1079
+ /** Add an execute-agent step. */
1080
+ executeAgent(config) {
1081
+ return this.addRawStep("execute-agent", config);
1082
+ }
1083
+ /** Add a store-asset step. */
1084
+ storeAsset(config) {
1085
+ return this.addRawStep("store-asset", config);
1086
+ }
1087
+ /** Add a generate-pdf step. */
1088
+ generatePdf(config) {
1089
+ return this.addRawStep("generate-pdf", config);
1090
+ }
1091
+ /** Add a save-memory step. */
1092
+ saveMemory(config) {
1093
+ return this.addRawStep("save-memory", config);
1094
+ }
1095
+ /** Add a recall-memory step. */
1096
+ recallMemory(config) {
1097
+ return this.addRawStep("recall-memory", config);
1098
+ }
1099
+ /** Add a memory-summary step. */
1100
+ memorySummary(config) {
1101
+ return this.addRawStep("memory-summary", config);
1102
+ }
962
1103
  // ============================================================================
963
1104
  // Subagent Helpers
964
1105
  // ============================================================================
@@ -1148,7 +1289,12 @@ var FlowBuilder = class {
1148
1289
  // ============================================================================
1149
1290
  // Private Helpers
1150
1291
  // ============================================================================
1151
- addStep(type, name, config, enabled = true) {
1292
+ addRawStep(type, config) {
1293
+ const { name, enabled, when, ...stepConfig } = config;
1294
+ this.addStep(type, name, stepConfig, enabled, when);
1295
+ return this;
1296
+ }
1297
+ addStep(type, name, config, enabled = true, when) {
1152
1298
  this.stepCounter++;
1153
1299
  const cleanConfig = {};
1154
1300
  for (const [key, value] of Object.entries(config)) {
@@ -1162,6 +1308,7 @@ var FlowBuilder = class {
1162
1308
  name,
1163
1309
  order: this.stepCounter,
1164
1310
  enabled,
1311
+ ...when ? { when } : {},
1165
1312
  config: cleanConfig
1166
1313
  });
1167
1314
  }
@@ -1466,6 +1613,13 @@ var RuntypeFlowBuilder = class {
1466
1613
  this.messagesConfig = messages;
1467
1614
  return this;
1468
1615
  }
1616
+ /**
1617
+ * Set top-level input variables accessible as {{varName}} in templates.
1618
+ */
1619
+ withInputs(inputs) {
1620
+ this.inputsConfig = inputs;
1621
+ return this;
1622
+ }
1469
1623
  /**
1470
1624
  * Set dispatch options
1471
1625
  */
@@ -1473,6 +1627,21 @@ var RuntypeFlowBuilder = class {
1473
1627
  this.dispatchOptions = { ...this.dispatchOptions, ...options };
1474
1628
  return this;
1475
1629
  }
1630
+ /**
1631
+ * Add a generic flow step. Prefer the typed helper methods when available;
1632
+ * this escape hatch keeps code-first flows compatible with newer dashboard/API
1633
+ * step types before a dedicated SDK convenience method exists.
1634
+ */
1635
+ step(config) {
1636
+ this.addStep(
1637
+ config.type,
1638
+ config.name || config.type,
1639
+ config.config || {},
1640
+ config.enabled,
1641
+ config.when
1642
+ );
1643
+ return this;
1644
+ }
1476
1645
  // ============================================================================
1477
1646
  // Step Methods
1478
1647
  // ============================================================================
@@ -1490,15 +1659,62 @@ var RuntypeFlowBuilder = class {
1490
1659
  systemPrompt: config.systemPrompt,
1491
1660
  previousMessages: config.previousMessages,
1492
1661
  outputVariable: config.outputVariable,
1662
+ mode: config.mode,
1493
1663
  responseFormat: config.responseFormat,
1494
1664
  temperature: config.temperature,
1665
+ topP: config.topP,
1666
+ topK: config.topK,
1667
+ frequencyPenalty: config.frequencyPenalty,
1668
+ presencePenalty: config.presencePenalty,
1669
+ seed: config.seed,
1495
1670
  maxTokens: config.maxTokens,
1496
1671
  reasoning: config.reasoning,
1672
+ artifacts: config.artifacts,
1497
1673
  streamOutput: config.streamOutput,
1498
1674
  tools: config.tools,
1499
1675
  errorHandling: config.errorHandling
1500
1676
  },
1501
- config.enabled
1677
+ config.enabled,
1678
+ config.when
1679
+ );
1680
+ return this;
1681
+ }
1682
+ /**
1683
+ * Add a crawl step
1684
+ */
1685
+ crawl(config) {
1686
+ this.addStep(
1687
+ "crawl",
1688
+ config.name,
1689
+ {
1690
+ url: config.url,
1691
+ limit: config.limit,
1692
+ depth: config.depth,
1693
+ source: config.source,
1694
+ formats: config.formats,
1695
+ render: config.render,
1696
+ maxAge: config.maxAge,
1697
+ modifiedSince: config.modifiedSince,
1698
+ options: config.options,
1699
+ authenticate: config.authenticate,
1700
+ cookies: config.cookies,
1701
+ setExtraHTTPHeaders: config.setExtraHTTPHeaders,
1702
+ gotoOptions: config.gotoOptions,
1703
+ waitForSelector: config.waitForSelector,
1704
+ rejectResourceTypes: config.rejectResourceTypes,
1705
+ rejectRequestPattern: config.rejectRequestPattern,
1706
+ userAgent: config.userAgent,
1707
+ jsonOptions: config.jsonOptions,
1708
+ outputVariable: config.outputVariable,
1709
+ errorHandling: config.errorHandling,
1710
+ defaultValue: config.defaultValue,
1711
+ streamOutput: config.streamOutput,
1712
+ pollIntervalMs: config.pollIntervalMs,
1713
+ completionTimeoutMs: config.completionTimeoutMs,
1714
+ asyncCrawl: config.asyncCrawl
1715
+ },
1716
+ config.enabled,
1717
+ config.when
1502
1718
  );
1503
1719
  return this;
1504
1720
  }
@@ -1516,15 +1732,18 @@ var RuntypeFlowBuilder = class {
1516
1732
  headers: config.headers,
1517
1733
  body: config.body
1518
1734
  },
1735
+ auth: config.auth,
1519
1736
  responseType: config.responseType,
1520
1737
  markdownIfAvailable: config.markdownIfAvailable,
1521
- fetchMethod: config.fetchMethod,
1738
+ fetchMethod: config.fetchMethod === "http" ? "standard" : config.fetchMethod,
1522
1739
  firecrawl: config.firecrawl,
1523
1740
  outputVariable: config.outputVariable,
1524
1741
  errorHandling: config.errorHandling,
1742
+ defaultValue: config.defaultValue,
1525
1743
  streamOutput: config.streamOutput
1526
1744
  },
1527
- config.enabled
1745
+ config.enabled,
1746
+ config.when
1528
1747
  );
1529
1748
  return this;
1530
1749
  }
@@ -1536,11 +1755,23 @@ var RuntypeFlowBuilder = class {
1536
1755
  "transform-data",
1537
1756
  config.name,
1538
1757
  {
1758
+ inputVariables: config.inputVariables,
1539
1759
  script: config.script,
1540
1760
  outputVariable: config.outputVariable,
1761
+ sandboxProvider: config.sandboxProvider,
1762
+ language: config.language,
1763
+ inputMode: config.inputMode,
1764
+ packageJson: config.packageJson,
1765
+ persistSandbox: config.persistSandbox,
1766
+ reuseSandboxId: config.reuseSandboxId,
1767
+ networkAccess: config.networkAccess,
1768
+ errorHandling: config.errorHandling,
1769
+ defaultValue: config.defaultValue,
1770
+ tools: config.tools,
1541
1771
  streamOutput: config.streamOutput
1542
1772
  },
1543
- config.enabled
1773
+ config.enabled,
1774
+ config.when
1544
1775
  );
1545
1776
  return this;
1546
1777
  }
@@ -1555,7 +1786,8 @@ var RuntypeFlowBuilder = class {
1555
1786
  variableName: config.variableName,
1556
1787
  value: config.value
1557
1788
  },
1558
- config.enabled
1789
+ config.enabled,
1790
+ config.when
1559
1791
  );
1560
1792
  return this;
1561
1793
  }
@@ -1571,7 +1803,8 @@ var RuntypeFlowBuilder = class {
1571
1803
  trueSteps: config.trueSteps || [],
1572
1804
  falseSteps: config.falseSteps || []
1573
1805
  },
1574
- config.enabled
1806
+ config.enabled,
1807
+ config.when
1575
1808
  );
1576
1809
  return this;
1577
1810
  }
@@ -1585,13 +1818,22 @@ var RuntypeFlowBuilder = class {
1585
1818
  {
1586
1819
  provider: config.provider,
1587
1820
  query: config.query,
1821
+ temperature: config.temperature,
1822
+ maxTokens: config.maxTokens,
1588
1823
  maxResults: config.maxResults,
1824
+ dateRange: config.dateRange,
1825
+ allowedDomains: config.allowedDomains,
1826
+ blockedDomains: config.blockedDomains,
1827
+ userLocation: config.userLocation,
1828
+ sources: config.sources,
1829
+ exaOptions: config.exaOptions,
1589
1830
  outputVariable: config.outputVariable,
1590
1831
  returnCitations: config.returnCitations,
1591
1832
  errorHandling: config.errorHandling,
1592
1833
  streamOutput: config.streamOutput
1593
1834
  },
1594
- config.enabled
1835
+ config.enabled,
1836
+ config.when
1595
1837
  );
1596
1838
  return this;
1597
1839
  }
@@ -1606,12 +1848,19 @@ var RuntypeFlowBuilder = class {
1606
1848
  to: config.to,
1607
1849
  from: config.from || "{{_flow.id}}@runtype.email",
1608
1850
  subject: config.subject,
1851
+ replyTo: config.replyTo,
1852
+ cc: config.cc,
1853
+ bcc: config.bcc,
1609
1854
  html: config.html,
1855
+ text: config.text,
1856
+ attachments: config.attachments,
1610
1857
  outputVariable: config.outputVariable,
1611
1858
  errorHandling: config.errorHandling,
1859
+ defaultValue: config.defaultValue,
1612
1860
  streamOutput: config.streamOutput
1613
1861
  },
1614
- config.enabled
1862
+ config.enabled,
1863
+ config.when
1615
1864
  );
1616
1865
  return this;
1617
1866
  }
@@ -1625,7 +1874,8 @@ var RuntypeFlowBuilder = class {
1625
1874
  {
1626
1875
  message: config.message
1627
1876
  },
1628
- config.enabled
1877
+ config.enabled,
1878
+ config.when
1629
1879
  );
1630
1880
  return this;
1631
1881
  }
@@ -1637,14 +1887,21 @@ var RuntypeFlowBuilder = class {
1637
1887
  "retrieve-record",
1638
1888
  config.name,
1639
1889
  {
1890
+ retrievalMode: config.retrievalMode,
1640
1891
  recordType: config.recordType,
1641
1892
  recordName: config.recordName,
1893
+ recordId: config.recordId,
1894
+ recordFilter: config.recordFilter,
1642
1895
  fieldsToInclude: config.fieldsToInclude,
1643
1896
  fieldsToExclude: config.fieldsToExclude,
1897
+ availableFields: config.availableFields,
1644
1898
  outputVariable: config.outputVariable,
1899
+ fields: config.fields,
1900
+ includeMetadata: config.includeMetadata,
1645
1901
  streamOutput: config.streamOutput
1646
1902
  },
1647
- config.enabled
1903
+ config.enabled,
1904
+ config.when
1648
1905
  );
1649
1906
  return this;
1650
1907
  }
@@ -1664,7 +1921,8 @@ var RuntypeFlowBuilder = class {
1664
1921
  errorHandling: config.errorHandling,
1665
1922
  streamOutput: config.streamOutput
1666
1923
  },
1667
- config.enabled
1924
+ config.enabled,
1925
+ config.when
1668
1926
  );
1669
1927
  return this;
1670
1928
  }
@@ -1679,12 +1937,20 @@ var RuntypeFlowBuilder = class {
1679
1937
  query: config.query,
1680
1938
  recordType: config.recordType,
1681
1939
  embeddingModel: config.embeddingModel,
1940
+ vectorStore: config.vectorStore,
1941
+ weaviateConfig: config.weaviateConfig,
1942
+ vectorizeConfig: config.vectorizeConfig,
1943
+ pineconeConfig: config.pineconeConfig,
1682
1944
  limit: config.limit,
1683
1945
  threshold: config.threshold,
1946
+ metadataFilters: config.metadataFilters,
1684
1947
  outputVariable: config.outputVariable,
1948
+ includeEmbedding: config.includeEmbedding,
1949
+ includeMetadata: config.includeMetadata,
1685
1950
  streamOutput: config.streamOutput
1686
1951
  },
1687
- config.enabled
1952
+ config.enabled,
1953
+ config.when
1688
1954
  );
1689
1955
  return this;
1690
1956
  }
@@ -1696,14 +1962,27 @@ var RuntypeFlowBuilder = class {
1696
1962
  "generate-embedding",
1697
1963
  config.name,
1698
1964
  {
1699
- inputSource: "text",
1965
+ inputSource: config.inputSource || "text",
1700
1966
  text: config.text,
1967
+ variableName: config.variableName,
1968
+ recordId: config.recordId,
1969
+ recordType: config.recordType,
1970
+ recordName: config.recordName,
1971
+ textField: config.textField,
1972
+ storeInRecord: config.storeInRecord,
1701
1973
  embeddingModel: config.embeddingModel,
1702
1974
  maxLength: config.maxLength,
1975
+ inputMode: config.inputMode,
1976
+ inputVariable: config.inputVariable,
1977
+ itemAlias: config.itemAlias,
1978
+ textTemplate: config.textTemplate,
1979
+ batchSize: config.batchSize,
1980
+ vectorStore: config.vectorStore,
1703
1981
  outputVariable: config.outputVariable,
1704
1982
  streamOutput: config.streamOutput
1705
1983
  },
1706
- config.enabled
1984
+ config.enabled,
1985
+ config.when
1707
1986
  );
1708
1987
  return this;
1709
1988
  }
@@ -1722,7 +2001,8 @@ var RuntypeFlowBuilder = class {
1722
2001
  errorHandling: config.errorHandling,
1723
2002
  streamOutput: config.streamOutput
1724
2003
  },
1725
- config.enabled
2004
+ config.enabled,
2005
+ config.when
1726
2006
  );
1727
2007
  return this;
1728
2008
  }
@@ -1741,7 +2021,8 @@ var RuntypeFlowBuilder = class {
1741
2021
  errorHandling: config.errorHandling,
1742
2022
  streamOutput: config.streamOutput
1743
2023
  },
1744
- config.enabled
2024
+ config.enabled,
2025
+ config.when
1745
2026
  );
1746
2027
  return this;
1747
2028
  }
@@ -1760,7 +2041,8 @@ var RuntypeFlowBuilder = class {
1760
2041
  errorHandling: config.errorHandling,
1761
2042
  streamOutput: config.streamOutput
1762
2043
  },
1763
- config.enabled
2044
+ config.enabled,
2045
+ config.when
1764
2046
  );
1765
2047
  return this;
1766
2048
  }
@@ -1775,13 +2057,77 @@ var RuntypeFlowBuilder = class {
1775
2057
  repository: config.repository,
1776
2058
  branch: config.branch,
1777
2059
  path: config.path,
2060
+ token: config.token,
1778
2061
  outputVariable: config.outputVariable,
2062
+ contentType: config.contentType,
2063
+ includePatterns: config.includePatterns,
2064
+ excludePatterns: config.excludePatterns,
2065
+ compress: config.compress,
2066
+ style: config.style,
1779
2067
  streamOutput: config.streamOutput
1780
2068
  },
1781
- config.enabled
2069
+ config.enabled,
2070
+ config.when
1782
2071
  );
1783
2072
  return this;
1784
2073
  }
2074
+ /** Add an api-call step. */
2075
+ apiCall(config) {
2076
+ return this.addRawStep("api-call", config);
2077
+ }
2078
+ /** Add a template rendering step. */
2079
+ template(config) {
2080
+ return this.addRawStep("template", config);
2081
+ }
2082
+ /** Add an update-record step. */
2083
+ updateRecord(config) {
2084
+ return this.addRawStep("update-record", config);
2085
+ }
2086
+ /** Add a deterministic tool-call step. */
2087
+ toolCall(config) {
2088
+ return this.addRawStep("tool-call", config);
2089
+ }
2090
+ /** Add a paginate-api step. */
2091
+ paginateApi(config) {
2092
+ return this.addRawStep("paginate-api", config);
2093
+ }
2094
+ /** Add a store-vector step. */
2095
+ storeVector(config) {
2096
+ return this.addRawStep("store-vector", config);
2097
+ }
2098
+ /** Add an execute-agent step. */
2099
+ executeAgent(config) {
2100
+ return this.addRawStep("execute-agent", config);
2101
+ }
2102
+ /** Add a store-asset step. */
2103
+ storeAsset(config) {
2104
+ return this.addRawStep("store-asset", config);
2105
+ }
2106
+ /** Add a generate-pdf step. */
2107
+ generatePdf(config) {
2108
+ return this.addRawStep("generate-pdf", config);
2109
+ }
2110
+ /** Add a save-memory step. */
2111
+ saveMemory(config) {
2112
+ return this.addRawStep("save-memory", config);
2113
+ }
2114
+ /** Add a recall-memory step. */
2115
+ recallMemory(config) {
2116
+ return this.addRawStep("recall-memory", config);
2117
+ }
2118
+ /** Add a memory-summary step. */
2119
+ memorySummary(config) {
2120
+ return this.addRawStep("memory-summary", config);
2121
+ }
2122
+ /**
2123
+ * Set a run condition (when predicate) on the last added step.
2124
+ * If the expression evaluates to falsy at runtime, the step is skipped.
2125
+ */
2126
+ when(expression) {
2127
+ const lastStep = this.steps[this.steps.length - 1];
2128
+ if (lastStep) lastStep.when = expression;
2129
+ return this;
2130
+ }
1785
2131
  async stream(arg1, arg2) {
1786
2132
  const config = this.build();
1787
2133
  let callbacks;
@@ -2003,6 +2349,9 @@ var RuntypeFlowBuilder = class {
2003
2349
  if (this.messagesConfig) {
2004
2350
  request.messages = this.messagesConfig;
2005
2351
  }
2352
+ if (this.inputsConfig) {
2353
+ request.inputs = this.inputsConfig;
2354
+ }
2006
2355
  const options = {
2007
2356
  flowMode,
2008
2357
  ...this.dispatchOptions
@@ -2089,7 +2438,12 @@ var RuntypeFlowBuilder = class {
2089
2438
  async computeContentHash() {
2090
2439
  return computeFlowContentHash(this.steps);
2091
2440
  }
2092
- addStep(type, name, config, enabled = true) {
2441
+ addRawStep(type, config) {
2442
+ const { name, enabled, when, ...stepConfig } = config;
2443
+ this.addStep(type, name, stepConfig, enabled, when);
2444
+ return this;
2445
+ }
2446
+ addStep(type, name, config, enabled = true, when) {
2093
2447
  this.stepCounter++;
2094
2448
  const cleanConfig = {};
2095
2449
  for (const [key, value] of Object.entries(config)) {
@@ -2103,6 +2457,7 @@ var RuntypeFlowBuilder = class {
2103
2457
  name,
2104
2458
  order: this.stepCounter,
2105
2459
  enabled,
2460
+ ...when ? { when } : {},
2106
2461
  config: cleanConfig
2107
2462
  });
2108
2463
  }
@@ -9359,6 +9714,7 @@ var PROMPT_FIELDS = [
9359
9714
  { key: "systemPrompt", format: "template" },
9360
9715
  { key: "previousMessages", format: "value" },
9361
9716
  { key: "outputVariable", format: "json" },
9717
+ { key: "mode", format: "json" },
9362
9718
  { key: "responseFormat", format: "json", skipDefault: "text" },
9363
9719
  { key: "temperature", format: "raw" },
9364
9720
  { key: "topP", format: "raw" },
@@ -9368,6 +9724,7 @@ var PROMPT_FIELDS = [
9368
9724
  { key: "seed", format: "raw" },
9369
9725
  { key: "maxTokens", format: "raw" },
9370
9726
  { key: "reasoning", format: "value" },
9727
+ { key: "artifacts", format: "value" },
9371
9728
  { key: "streamOutput", format: "raw", emitWhen: "falsy" },
9372
9729
  { key: "tools", format: "value" },
9373
9730
  { key: "errorHandling", format: "value", skipDefault: "fail" }
@@ -9393,27 +9750,41 @@ var CRAWL_FIELDS = [
9393
9750
  { key: "jsonOptions", format: "value" },
9394
9751
  { key: "pollIntervalMs", format: "raw" },
9395
9752
  { key: "completionTimeoutMs", format: "raw" },
9753
+ { key: "asyncCrawl", format: "raw" },
9396
9754
  { key: "outputVariable", format: "json" },
9397
9755
  { key: "streamOutput", format: "raw" },
9398
- { key: "errorHandling", format: "value", skipDefault: "fail" }
9756
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
9757
+ { key: "defaultValue", format: "value" }
9399
9758
  ];
9400
9759
  var FETCH_URL_FIELDS = [
9401
9760
  { key: "url", format: "json", source: "http.url" },
9402
9761
  { key: "method", format: "json", source: "http.method", skipDefault: "GET" },
9403
9762
  { key: "headers", format: "value", source: "http.headers" },
9404
9763
  { key: "body", format: "template", source: "http.body" },
9764
+ { key: "auth", format: "value" },
9405
9765
  { key: "responseType", format: "json" },
9406
9766
  { key: "markdownIfAvailable", format: "raw" },
9407
- { key: "fetchMethod", format: "json", skipDefault: "http" },
9767
+ { key: "fetchMethod", format: "json", skipDefault: "standard" },
9408
9768
  { key: "firecrawl", format: "value" },
9409
9769
  { key: "outputVariable", format: "json" },
9410
9770
  { key: "streamOutput", format: "raw" },
9411
- { key: "errorHandling", format: "value", skipDefault: "fail" }
9771
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
9772
+ { key: "defaultValue", format: "value" }
9412
9773
  ];
9413
9774
  var TRANSFORM_DATA_FIELDS = [
9775
+ { key: "inputVariables", format: "value" },
9414
9776
  { key: "script", format: "template" },
9415
9777
  { key: "outputVariable", format: "json" },
9416
9778
  { key: "sandboxProvider", format: "json" },
9779
+ { key: "language", format: "json" },
9780
+ { key: "inputMode", format: "json" },
9781
+ { key: "packageJson", format: "template" },
9782
+ { key: "persistSandbox", format: "raw" },
9783
+ { key: "reuseSandboxId", format: "json" },
9784
+ { key: "networkAccess", format: "value" },
9785
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
9786
+ { key: "defaultValue", format: "value" },
9787
+ { key: "tools", format: "value" },
9417
9788
  { key: "streamOutput", format: "raw" }
9418
9789
  ];
9419
9790
  var SET_VARIABLE_FIELDS = [
@@ -9428,8 +9799,16 @@ var CONDITIONAL_FIELDS = [
9428
9799
  var SEARCH_FIELDS = [
9429
9800
  { key: "provider", format: "json" },
9430
9801
  { key: "query", format: "template" },
9802
+ { key: "temperature", format: "raw" },
9803
+ { key: "maxTokens", format: "raw" },
9431
9804
  { key: "maxResults", format: "raw", skipDefault: 10 },
9432
9805
  { key: "returnCitations", format: "raw" },
9806
+ { key: "dateRange", format: "value" },
9807
+ { key: "allowedDomains", format: "value" },
9808
+ { key: "blockedDomains", format: "value" },
9809
+ { key: "userLocation", format: "value" },
9810
+ { key: "sources", format: "value" },
9811
+ { key: "exaOptions", format: "value" },
9433
9812
  { key: "outputVariable", format: "json" },
9434
9813
  { key: "streamOutput", format: "raw" },
9435
9814
  { key: "errorHandling", format: "value", skipDefault: "fail" }
@@ -9438,21 +9817,32 @@ var SEND_EMAIL_FIELDS = [
9438
9817
  { key: "to", format: "json" },
9439
9818
  { key: "from", format: "json" },
9440
9819
  { key: "subject", format: "template" },
9820
+ { key: "replyTo", format: "json" },
9821
+ { key: "cc", format: "json" },
9822
+ { key: "bcc", format: "json" },
9441
9823
  { key: "html", format: "template" },
9824
+ { key: "text", format: "template" },
9825
+ { key: "attachments", format: "value" },
9442
9826
  { key: "outputVariable", format: "json" },
9443
9827
  { key: "streamOutput", format: "raw" },
9444
- { key: "errorHandling", format: "value", skipDefault: "fail" }
9828
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
9829
+ { key: "defaultValue", format: "value" }
9445
9830
  ];
9446
9831
  var SEND_STREAM_FIELDS = [
9447
9832
  { key: "message", format: "template" }
9448
9833
  ];
9449
9834
  var RETRIEVE_RECORD_FIELDS = [
9835
+ { key: "retrievalMode", format: "json" },
9450
9836
  { key: "recordType", format: "json" },
9451
9837
  { key: "recordName", format: "json" },
9838
+ { key: "recordId", format: "json" },
9452
9839
  { key: "recordFilter", format: "value" },
9453
9840
  { key: "fieldsToInclude", format: "json" },
9454
9841
  { key: "fieldsToExclude", format: "json" },
9842
+ { key: "availableFields", format: "value" },
9455
9843
  { key: "outputVariable", format: "json" },
9844
+ { key: "fields", format: "value" },
9845
+ { key: "includeMetadata", format: "raw" },
9456
9846
  { key: "streamOutput", format: "raw" }
9457
9847
  ];
9458
9848
  var UPSERT_RECORD_FIELDS = [
@@ -9468,15 +9858,35 @@ var VECTOR_SEARCH_FIELDS = [
9468
9858
  { key: "query", format: "template" },
9469
9859
  { key: "recordType", format: "json" },
9470
9860
  { key: "embeddingModel", format: "json" },
9861
+ { key: "vectorStore", format: "json" },
9862
+ { key: "weaviateConfig", format: "value" },
9863
+ { key: "vectorizeConfig", format: "value" },
9864
+ { key: "pineconeConfig", format: "value" },
9471
9865
  { key: "limit", format: "raw", skipDefault: 5 },
9472
9866
  { key: "threshold", format: "raw", skipDefault: 0.7 },
9867
+ { key: "metadataFilters", format: "value" },
9473
9868
  { key: "outputVariable", format: "json" },
9869
+ { key: "includeEmbedding", format: "raw" },
9870
+ { key: "includeMetadata", format: "raw" },
9474
9871
  { key: "streamOutput", format: "raw" }
9475
9872
  ];
9476
9873
  var GENERATE_EMBEDDING_FIELDS = [
9874
+ { key: "inputSource", format: "json", skipDefault: "text" },
9477
9875
  { key: "text", format: "template" },
9876
+ { key: "variableName", format: "json" },
9877
+ { key: "recordId", format: "json" },
9878
+ { key: "recordType", format: "json" },
9879
+ { key: "recordName", format: "json" },
9880
+ { key: "textField", format: "json" },
9881
+ { key: "storeInRecord", format: "raw" },
9478
9882
  { key: "embeddingModel", format: "json" },
9479
9883
  { key: "maxLength", format: "raw" },
9884
+ { key: "inputMode", format: "json" },
9885
+ { key: "inputVariable", format: "json" },
9886
+ { key: "itemAlias", format: "json" },
9887
+ { key: "textTemplate", format: "template" },
9888
+ { key: "batchSize", format: "raw" },
9889
+ { key: "vectorStore", format: "value" },
9480
9890
  { key: "outputVariable", format: "json" },
9481
9891
  { key: "streamOutput", format: "raw" }
9482
9892
  ];
@@ -9508,19 +9918,47 @@ var FETCH_GITHUB_FIELDS = [
9508
9918
  { key: "repository", format: "json" },
9509
9919
  { key: "branch", format: "json" },
9510
9920
  { key: "path", format: "json" },
9921
+ { key: "token", format: "json" },
9511
9922
  { key: "outputVariable", format: "json" },
9923
+ { key: "contentType", format: "json" },
9924
+ { key: "includePatterns", format: "value" },
9925
+ { key: "excludePatterns", format: "value" },
9926
+ { key: "compress", format: "raw" },
9927
+ { key: "style", format: "json" },
9512
9928
  { key: "streamOutput", format: "raw" }
9513
9929
  ];
9930
+ var API_CALL_FIELDS = [
9931
+ { key: "http", format: "value" },
9932
+ { key: "auth", format: "value" },
9933
+ { key: "requestTemplate", format: "template" },
9934
+ { key: "responseMapping", format: "value" },
9935
+ { key: "outputVariable", format: "json" },
9936
+ { key: "streamOutput", format: "raw" },
9937
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
9938
+ { key: "defaultValue", format: "value" }
9939
+ ];
9940
+ var EXECUTE_AGENT_FIELDS = [
9941
+ { key: "agentId", format: "json" },
9942
+ { key: "message", format: "template" },
9943
+ { key: "outputVariable", format: "json" },
9944
+ { key: "variables", format: "value" },
9945
+ { key: "maxTurns", format: "raw" },
9946
+ { key: "timeout", format: "raw" },
9947
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
9948
+ { key: "defaultValue", format: "value" }
9949
+ ];
9514
9950
  var TEMPLATE_FIELDS = [
9515
9951
  { key: "template", format: "template" },
9516
- { key: "outputFormat", format: "json" },
9517
9952
  { key: "inputs", format: "value" },
9953
+ { key: "outputFormat", format: "json" },
9954
+ { key: "outputVariable", format: "json" },
9518
9955
  { key: "partials", format: "value" },
9519
9956
  { key: "pdfOptions", format: "value" },
9520
9957
  { key: "asArtifact", format: "raw" },
9521
9958
  { key: "streamOutput", format: "raw" },
9522
- { key: "outputVariable", format: "json" },
9523
- { key: "errorHandling", format: "value", skipDefault: "fail" }
9959
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
9960
+ { key: "defaultValue", format: "value" },
9961
+ { key: "sampleData", format: "value" }
9524
9962
  ];
9525
9963
  var STORE_ASSET_FIELDS = [
9526
9964
  { key: "url", format: "json" },
@@ -9529,7 +9967,9 @@ var STORE_ASSET_FIELDS = [
9529
9967
  { key: "contentType", format: "json" },
9530
9968
  { key: "visibility", format: "json" },
9531
9969
  { key: "outputVariable", format: "json" },
9532
- { key: "errorHandling", format: "value", skipDefault: "fail" }
9970
+ { key: "streamOutput", format: "raw" },
9971
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
9972
+ { key: "defaultValue", format: "value" }
9533
9973
  ];
9534
9974
  var GENERATE_PDF_FIELDS = [
9535
9975
  { key: "html", format: "template" },
@@ -9538,53 +9978,152 @@ var GENERATE_PDF_FIELDS = [
9538
9978
  { key: "visibility", format: "json" },
9539
9979
  { key: "pdfOptions", format: "value" },
9540
9980
  { key: "outputVariable", format: "json" },
9541
- { key: "errorHandling", format: "value", skipDefault: "fail" }
9981
+ { key: "streamOutput", format: "raw" },
9982
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
9983
+ { key: "defaultValue", format: "value" }
9984
+ ];
9985
+ var UPDATE_RECORD_FIELDS = [
9986
+ { key: "recordId", format: "json" },
9987
+ { key: "recordType", format: "json" },
9988
+ { key: "recordName", format: "json" },
9989
+ { key: "recordFilter", format: "value" },
9990
+ { key: "updates", format: "value" },
9991
+ { key: "updatesTemplate", format: "template" },
9992
+ { key: "mergeStrategy", format: "json" },
9993
+ { key: "outputVariable", format: "json" },
9994
+ { key: "streamOutput", format: "raw" },
9995
+ { key: "includeFullRecord", format: "raw" },
9996
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
9997
+ { key: "defaultValue", format: "value" }
9542
9998
  ];
9543
- var COMMON_ONLY_FIELDS = [
9999
+ var TOOL_CALL_FIELDS = [
10000
+ { key: "toolId", format: "json" },
10001
+ { key: "parameters", format: "value" },
9544
10002
  { key: "outputVariable", format: "json" },
9545
- { key: "errorHandling", format: "value", skipDefault: "fail" }
10003
+ { key: "streamOutput", format: "raw" },
10004
+ { key: "maxRetries", format: "raw" },
10005
+ { key: "timeout", format: "raw" },
10006
+ { key: "onError", format: "json" }
10007
+ ];
10008
+ var PAGINATE_API_FIELDS = [
10009
+ { key: "url", format: "json" },
10010
+ { key: "http", format: "value" },
10011
+ { key: "method", format: "json" },
10012
+ { key: "headers", format: "value" },
10013
+ { key: "body", format: "template" },
10014
+ { key: "authType", format: "json" },
10015
+ { key: "authConfig", format: "value" },
10016
+ { key: "paginationType", format: "json" },
10017
+ { key: "paginationConfig", format: "value" },
10018
+ { key: "pageSize", format: "raw" },
10019
+ { key: "maxPages", format: "raw" },
10020
+ { key: "offsetParam", format: "json" },
10021
+ { key: "limitParam", format: "json" },
10022
+ { key: "cursorParam", format: "json" },
10023
+ { key: "cursorPath", format: "json" },
10024
+ { key: "pageParam", format: "json" },
10025
+ { key: "startPage", format: "raw" },
10026
+ { key: "entitiesPath", format: "json" },
10027
+ { key: "entityPath", format: "json" },
10028
+ { key: "entityIdPath", format: "json" },
10029
+ { key: "maxEntities", format: "raw" },
10030
+ { key: "requestDelayMs", format: "raw" },
10031
+ { key: "retryOnRateLimit", format: "raw" },
10032
+ { key: "maxRetries", format: "raw" },
10033
+ { key: "outputVariable", format: "json" },
10034
+ { key: "includeMetadata", format: "raw" },
10035
+ { key: "streamOutput", format: "raw" },
10036
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
10037
+ { key: "defaultValue", format: "value" }
10038
+ ];
10039
+ var STORE_VECTOR_FIELDS = [
10040
+ { key: "vectorsSource", format: "json" },
10041
+ { key: "inputMode", format: "json" },
10042
+ { key: "inputVariable", format: "json" },
10043
+ { key: "itemAlias", format: "json" },
10044
+ { key: "batchSize", format: "raw" },
10045
+ { key: "destination", format: "json" },
10046
+ { key: "weaviateConfig", format: "value" },
10047
+ { key: "vectorizeConfig", format: "value" },
10048
+ { key: "pineconeConfig", format: "value" },
10049
+ { key: "weaviateConfigId", format: "json" },
10050
+ { key: "weaviateClassName", format: "json" },
10051
+ { key: "vectorizeConfigId", format: "json" },
10052
+ { key: "vectorizeNamespace", format: "json" },
10053
+ { key: "pineconeConfigId", format: "json" },
10054
+ { key: "pineconeNamespace", format: "json" },
10055
+ { key: "idTemplate", format: "template" },
10056
+ { key: "metadata", format: "value" },
10057
+ { key: "outputVariable", format: "json" },
10058
+ { key: "streamOutput", format: "raw" },
10059
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
10060
+ { key: "defaultValue", format: "value" }
10061
+ ];
10062
+ var SAVE_MEMORY_FIELDS = [
10063
+ { key: "profileTemplate", format: "template" },
10064
+ { key: "contentVariable", format: "json" },
10065
+ { key: "sessionId", format: "json" },
10066
+ { key: "outputVariable", format: "json" },
10067
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
10068
+ { key: "defaultValue", format: "value" }
10069
+ ];
10070
+ var RECALL_MEMORY_FIELDS = [
10071
+ { key: "profileTemplate", format: "template" },
10072
+ { key: "queryTemplate", format: "template" },
10073
+ { key: "thinkingLevel", format: "json" },
10074
+ { key: "responseLength", format: "json" },
10075
+ { key: "outputVariable", format: "json" },
10076
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
10077
+ { key: "defaultValue", format: "value" }
10078
+ ];
10079
+ var MEMORY_SUMMARY_FIELDS = [
10080
+ { key: "profileTemplate", format: "template" },
10081
+ { key: "sessionId", format: "json" },
10082
+ { key: "outputVariable", format: "json" },
10083
+ { key: "errorHandling", format: "value", skipDefault: "fail" },
10084
+ { key: "defaultValue", format: "value" }
9546
10085
  ];
9547
10086
  var STEP_FIELD_REGISTRY = {
9548
- "prompt": PROMPT_FIELDS,
9549
- "crawl": CRAWL_FIELDS,
10087
+ prompt: PROMPT_FIELDS,
10088
+ crawl: CRAWL_FIELDS,
9550
10089
  "fetch-url": FETCH_URL_FIELDS,
9551
- "api-call": FETCH_URL_FIELDS,
10090
+ "api-call": API_CALL_FIELDS,
9552
10091
  "transform-data": TRANSFORM_DATA_FIELDS,
9553
10092
  "set-variable": SET_VARIABLE_FIELDS,
9554
- "conditional": CONDITIONAL_FIELDS,
9555
- "search": SEARCH_FIELDS,
10093
+ conditional: CONDITIONAL_FIELDS,
10094
+ search: SEARCH_FIELDS,
9556
10095
  "send-email": SEND_EMAIL_FIELDS,
9557
10096
  "send-stream": SEND_STREAM_FIELDS,
9558
10097
  "retrieve-record": RETRIEVE_RECORD_FIELDS,
9559
10098
  "upsert-record": UPSERT_RECORD_FIELDS,
9560
- "update-record": UPSERT_RECORD_FIELDS,
10099
+ "update-record": UPDATE_RECORD_FIELDS,
9561
10100
  "vector-search": VECTOR_SEARCH_FIELDS,
9562
10101
  "generate-embedding": GENERATE_EMBEDDING_FIELDS,
9563
10102
  "wait-until": WAIT_UNTIL_FIELDS,
9564
10103
  "send-event": SEND_EVENT_FIELDS,
9565
10104
  "send-text": SEND_TEXT_FIELDS,
9566
10105
  "fetch-github": FETCH_GITHUB_FIELDS,
9567
- "template": TEMPLATE_FIELDS,
10106
+ template: TEMPLATE_FIELDS,
9568
10107
  "store-asset": STORE_ASSET_FIELDS,
9569
10108
  "generate-pdf": GENERATE_PDF_FIELDS,
9570
- "tool-call": COMMON_ONLY_FIELDS,
9571
- "paginate-api": COMMON_ONLY_FIELDS,
9572
- "store-vector": COMMON_ONLY_FIELDS,
9573
- "execute-agent": COMMON_ONLY_FIELDS,
9574
- "save-memory": COMMON_ONLY_FIELDS,
9575
- "recall-memory": COMMON_ONLY_FIELDS,
9576
- "memory-summary": COMMON_ONLY_FIELDS
10109
+ "tool-call": TOOL_CALL_FIELDS,
10110
+ "paginate-api": PAGINATE_API_FIELDS,
10111
+ "store-vector": STORE_VECTOR_FIELDS,
10112
+ "execute-agent": EXECUTE_AGENT_FIELDS,
10113
+ "save-memory": SAVE_MEMORY_FIELDS,
10114
+ "recall-memory": RECALL_MEMORY_FIELDS,
10115
+ "memory-summary": MEMORY_SUMMARY_FIELDS
9577
10116
  };
9578
10117
  var STEP_TYPE_TO_METHOD = {
9579
- "prompt": "prompt",
9580
- "crawl": "crawl",
10118
+ prompt: "prompt",
10119
+ crawl: "crawl",
9581
10120
  "fetch-url": "fetchUrl",
9582
10121
  "api-call": "apiCall",
9583
10122
  "retrieve-record": "retrieveRecord",
9584
10123
  "fetch-github": "fetchGitHub",
9585
10124
  "transform-data": "transformData",
9586
- "template": "template",
9587
- "conditional": "conditional",
10125
+ template: "template",
10126
+ conditional: "conditional",
9588
10127
  "set-variable": "setVariable",
9589
10128
  "upsert-record": "upsertRecord",
9590
10129
  "update-record": "updateRecord",
@@ -9592,7 +10131,7 @@ var STEP_TYPE_TO_METHOD = {
9592
10131
  "send-text": "sendText",
9593
10132
  "send-event": "sendEvent",
9594
10133
  "send-stream": "sendStream",
9595
- "search": "search",
10134
+ search: "search",
9596
10135
  "generate-embedding": "generateEmbedding",
9597
10136
  "vector-search": "vectorSearch",
9598
10137
  "tool-call": "toolCall",