@orq-ai/node 4.12.0-rc.50 → 4.12.0-rc.51

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 (134) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/agenttoolinputcrud.d.ts +413 -0
  5. package/models/components/agenttoolinputcrud.d.ts.map +1 -0
  6. package/models/components/agenttoolinputcrud.js +287 -0
  7. package/models/components/agenttoolinputcrud.js.map +1 -0
  8. package/models/components/codetoolinput.d.ts +38 -0
  9. package/models/components/codetoolinput.d.ts.map +1 -0
  10. package/models/components/codetoolinput.js +58 -0
  11. package/models/components/codetoolinput.js.map +1 -0
  12. package/models/components/evaluatorresponsefunction.js +2 -2
  13. package/models/components/evaluatorresponsehttp.js +2 -2
  14. package/models/components/evaluatorresponsejsonschema.js +2 -2
  15. package/models/components/evaluatorresponsellm.js +2 -2
  16. package/models/components/evaluatorresponsepython.js +2 -2
  17. package/models/components/evaluatorresponseragas.js +2 -2
  18. package/models/components/evaluatorresponsetypescript.js +2 -2
  19. package/models/components/functiontoolinput.d.ts +33 -0
  20. package/models/components/functiontoolinput.d.ts.map +1 -0
  21. package/models/components/functiontoolinput.js +57 -0
  22. package/models/components/functiontoolinput.js.map +1 -0
  23. package/models/components/httptoolinput.d.ts +38 -0
  24. package/models/components/httptoolinput.d.ts.map +1 -0
  25. package/models/components/httptoolinput.js +58 -0
  26. package/models/components/httptoolinput.js.map +1 -0
  27. package/models/components/index.d.ts +7 -0
  28. package/models/components/index.d.ts.map +1 -1
  29. package/models/components/index.js +7 -0
  30. package/models/components/index.js.map +1 -1
  31. package/models/components/jsonschematoolinput.d.ts +33 -0
  32. package/models/components/jsonschematoolinput.d.ts.map +1 -0
  33. package/models/components/jsonschematoolinput.js +57 -0
  34. package/models/components/jsonschematoolinput.js.map +1 -0
  35. package/models/components/mcptoolinput.d.ts +38 -0
  36. package/models/components/mcptoolinput.d.ts.map +1 -0
  37. package/models/components/mcptoolinput.js +59 -0
  38. package/models/components/mcptoolinput.js.map +1 -0
  39. package/models/components/providertoolinput.d.ts +47 -0
  40. package/models/components/providertoolinput.d.ts.map +1 -0
  41. package/models/components/providertoolinput.js +59 -0
  42. package/models/components/providertoolinput.js.map +1 -0
  43. package/models/components/reasoningpart.js +1 -1
  44. package/models/operations/createagentrequest.d.ts +2 -677
  45. package/models/operations/createagentrequest.d.ts.map +1 -1
  46. package/models/operations/createagentrequest.js +6 -421
  47. package/models/operations/createagentrequest.js.map +1 -1
  48. package/models/operations/createdataset.js +1 -1
  49. package/models/operations/createdatasetitem.js +5 -5
  50. package/models/operations/createdatasource.js +1 -1
  51. package/models/operations/createrouterresponse.d.ts +8 -8
  52. package/models/operations/createrouterresponse.d.ts.map +1 -1
  53. package/models/operations/createrouterresponse.js +7 -7
  54. package/models/operations/createrouterresponse.js.map +1 -1
  55. package/models/operations/createtool.d.ts +18 -18
  56. package/models/operations/createtool.d.ts.map +1 -1
  57. package/models/operations/createtool.js +28 -28
  58. package/models/operations/createtool.js.map +1 -1
  59. package/models/operations/getalltools.js +6 -6
  60. package/models/operations/getv2humanevalsets.js +2 -2
  61. package/models/operations/getv2humanevalsetsid.js +2 -2
  62. package/models/operations/listdatasetdatapoints.js +5 -5
  63. package/models/operations/listdatasets.js +1 -1
  64. package/models/operations/listdatasources.js +1 -1
  65. package/models/operations/patchv2humanevalsetsid.js +2 -2
  66. package/models/operations/postv2feedbackevaluation.js +4 -4
  67. package/models/operations/postv2humanevalsets.js +2 -2
  68. package/models/operations/retrievedatapoint.js +5 -5
  69. package/models/operations/retrievedataset.js +1 -1
  70. package/models/operations/retrievedatasource.js +1 -1
  71. package/models/operations/retrievetool.js +6 -6
  72. package/models/operations/runagent.d.ts +52 -52
  73. package/models/operations/runagent.d.ts.map +1 -1
  74. package/models/operations/runagent.js +75 -75
  75. package/models/operations/runagent.js.map +1 -1
  76. package/models/operations/streamrunagent.d.ts +52 -52
  77. package/models/operations/streamrunagent.d.ts.map +1 -1
  78. package/models/operations/streamrunagent.js +75 -78
  79. package/models/operations/streamrunagent.js.map +1 -1
  80. package/models/operations/updateagent.d.ts +2 -677
  81. package/models/operations/updateagent.d.ts.map +1 -1
  82. package/models/operations/updateagent.js +6 -421
  83. package/models/operations/updateagent.js.map +1 -1
  84. package/models/operations/updatedatapoint.js +5 -5
  85. package/models/operations/updatedataset.js +1 -1
  86. package/models/operations/updatedatasource.js +1 -1
  87. package/models/operations/updatetool.js +7 -7
  88. package/package.json +9 -9
  89. package/sdk/feedback.d.ts +2 -2
  90. package/sdk/feedback.js +2 -2
  91. package/src/lib/config.ts +2 -2
  92. package/src/models/components/agenttoolinputcrud.ts +747 -0
  93. package/src/models/components/codetoolinput.ts +62 -0
  94. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  95. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  96. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  97. package/src/models/components/evaluatorresponsellm.ts +2 -2
  98. package/src/models/components/evaluatorresponsepython.ts +2 -2
  99. package/src/models/components/evaluatorresponseragas.ts +2 -2
  100. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  101. package/src/models/components/functiontoolinput.ts +60 -0
  102. package/src/models/components/httptoolinput.ts +62 -0
  103. package/src/models/components/index.ts +7 -0
  104. package/src/models/components/jsonschematoolinput.ts +60 -0
  105. package/src/models/components/mcptoolinput.ts +63 -0
  106. package/src/models/components/providertoolinput.ts +72 -0
  107. package/src/models/components/reasoningpart.ts +1 -1
  108. package/src/models/operations/createagentrequest.ts +1606 -2947
  109. package/src/models/operations/createdataset.ts +1 -1
  110. package/src/models/operations/createdatasetitem.ts +5 -5
  111. package/src/models/operations/createdatasource.ts +1 -1
  112. package/src/models/operations/createrouterresponse.ts +13 -13
  113. package/src/models/operations/createtool.ts +47 -61
  114. package/src/models/operations/getalltools.ts +6 -6
  115. package/src/models/operations/getv2humanevalsets.ts +2 -2
  116. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  117. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  118. package/src/models/operations/listdatasets.ts +1 -1
  119. package/src/models/operations/listdatasources.ts +1 -1
  120. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  121. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  122. package/src/models/operations/postv2humanevalsets.ts +2 -2
  123. package/src/models/operations/retrievedatapoint.ts +5 -5
  124. package/src/models/operations/retrievedataset.ts +1 -1
  125. package/src/models/operations/retrievedatasource.ts +1 -1
  126. package/src/models/operations/retrievetool.ts +6 -6
  127. package/src/models/operations/runagent.ts +195 -232
  128. package/src/models/operations/streamrunagent.ts +273 -328
  129. package/src/models/operations/updateagent.ts +1819 -3223
  130. package/src/models/operations/updatedatapoint.ts +5 -5
  131. package/src/models/operations/updatedataset.ts +1 -1
  132. package/src/models/operations/updatedatasource.ts +1 -1
  133. package/src/models/operations/updatetool.ts +7 -7
  134. package/src/sdk/feedback.ts +2 -2
@@ -1604,7 +1604,7 @@ export type AgentToolInputRunHTTPToolRun = {
1604
1604
  /**
1605
1605
  * Executes model-written Python code. Uses provider-native code execution when the model supports it, otherwise a secure orq-managed sandbox.
1606
1606
  */
1607
- export type StreamRunAgentAgentToolInputRunCodeInterpreterTool = {
1607
+ export type AgentToolInputRunCodeInterpreterTool = {
1608
1608
  type: "code_interpreter";
1609
1609
  /**
1610
1610
  * Whether this tool requires approval before execution
@@ -1619,7 +1619,7 @@ export type StreamRunAgentAgentToolInputRunCodeInterpreterTool = {
1619
1619
  /**
1620
1620
  * Returns the current date and time
1621
1621
  */
1622
- export type StreamRunAgentAgentToolInputRunCurrentDateTool = {
1622
+ export type AgentToolInputRunCurrentDateTool = {
1623
1623
  type: "current_date";
1624
1624
  /**
1625
1625
  * Whether this tool requires approval before execution
@@ -1634,7 +1634,7 @@ export type StreamRunAgentAgentToolInputRunCurrentDateTool = {
1634
1634
  /**
1635
1635
  * Queries knowledge bases for information
1636
1636
  */
1637
- export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool = {
1637
+ export type AgentToolInputRunQueryKnowledgeBaseTool = {
1638
1638
  type: "query_knowledge_base";
1639
1639
  /**
1640
1640
  * Whether this tool requires approval before execution
@@ -1649,7 +1649,7 @@ export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool = {
1649
1649
  /**
1650
1650
  * Lists available knowledge bases
1651
1651
  */
1652
- export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool = {
1652
+ export type AgentToolInputRunRetrieveKnowledgeBasesTool = {
1653
1653
  type: "retrieve_knowledge_bases";
1654
1654
  /**
1655
1655
  * Whether this tool requires approval before execution
@@ -1664,7 +1664,7 @@ export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool = {
1664
1664
  /**
1665
1665
  * Deletes documents from memory stores
1666
1666
  */
1667
- export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool = {
1667
+ export type AgentToolInputRunDeleteMemoryDocumentTool = {
1668
1668
  type: "delete_memory_document";
1669
1669
  /**
1670
1670
  * Whether this tool requires approval before execution
@@ -1679,7 +1679,7 @@ export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool = {
1679
1679
  /**
1680
1680
  * Lists available memory stores
1681
1681
  */
1682
- export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool = {
1682
+ export type AgentToolInputRunRetrieveMemoryStoresTool = {
1683
1683
  type: "retrieve_memory_stores";
1684
1684
  /**
1685
1685
  * Whether this tool requires approval before execution
@@ -1694,7 +1694,7 @@ export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool = {
1694
1694
  /**
1695
1695
  * Writes information to agent memory stores
1696
1696
  */
1697
- export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool = {
1697
+ export type AgentToolInputRunWriteMemoryStoreTool = {
1698
1698
  type: "write_memory_store";
1699
1699
  /**
1700
1700
  * Whether this tool requires approval before execution
@@ -1709,7 +1709,7 @@ export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool = {
1709
1709
  /**
1710
1710
  * Queries agent memory stores for context
1711
1711
  */
1712
- export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool = {
1712
+ export type AgentToolInputRunQueryMemoryStoreTool = {
1713
1713
  type: "query_memory_store";
1714
1714
  /**
1715
1715
  * Whether this tool requires approval before execution
@@ -1724,7 +1724,7 @@ export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool = {
1724
1724
  /**
1725
1725
  * Retrieves available agents in the system
1726
1726
  */
1727
- export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool = {
1727
+ export type AgentToolInputRunRetrieveAgentsTool = {
1728
1728
  type: "retrieve_agents";
1729
1729
  /**
1730
1730
  * Whether this tool requires approval before execution
@@ -1739,7 +1739,7 @@ export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool = {
1739
1739
  /**
1740
1740
  * Delegates tasks to specialized sub-agents
1741
1741
  */
1742
- export type StreamRunAgentAgentToolInputRunCallSubAgentTool = {
1742
+ export type AgentToolInputRunCallSubAgentTool = {
1743
1743
  type: "call_sub_agent";
1744
1744
  /**
1745
1745
  * Whether this tool requires approval before execution
@@ -1754,7 +1754,7 @@ export type StreamRunAgentAgentToolInputRunCallSubAgentTool = {
1754
1754
  /**
1755
1755
  * Scrapes and extracts content from web pages
1756
1756
  */
1757
- export type StreamRunAgentAgentToolInputRunWebScraperTool = {
1757
+ export type AgentToolInputRunWebScraperTool = {
1758
1758
  type: "web_scraper";
1759
1759
  /**
1760
1760
  * Whether this tool requires approval before execution
@@ -1769,7 +1769,7 @@ export type StreamRunAgentAgentToolInputRunWebScraperTool = {
1769
1769
  /**
1770
1770
  * Performs Google searches to retrieve web content
1771
1771
  */
1772
- export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
1772
+ export type AgentToolInputRunGoogleSearchTool = {
1773
1773
  type: "google_search";
1774
1774
  /**
1775
1775
  * Whether this tool requires approval before execution
@@ -1785,18 +1785,18 @@ export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
1785
1785
  * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function, JSON Schema, MCP) support full inline definitions for on-the-fly creation.
1786
1786
  */
1787
1787
  export type StreamRunAgentAgentToolInputRun =
1788
- | StreamRunAgentAgentToolInputRunGoogleSearchTool
1789
- | StreamRunAgentAgentToolInputRunWebScraperTool
1790
- | StreamRunAgentAgentToolInputRunCallSubAgentTool
1791
- | StreamRunAgentAgentToolInputRunRetrieveAgentsTool
1792
- | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
1793
- | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
1794
- | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
1795
- | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
1796
- | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
1797
- | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
1798
- | StreamRunAgentAgentToolInputRunCurrentDateTool
1799
- | StreamRunAgentAgentToolInputRunCodeInterpreterTool
1788
+ | AgentToolInputRunGoogleSearchTool
1789
+ | AgentToolInputRunWebScraperTool
1790
+ | AgentToolInputRunCallSubAgentTool
1791
+ | AgentToolInputRunRetrieveAgentsTool
1792
+ | AgentToolInputRunQueryMemoryStoreTool
1793
+ | AgentToolInputRunWriteMemoryStoreTool
1794
+ | AgentToolInputRunRetrieveMemoryStoresTool
1795
+ | AgentToolInputRunDeleteMemoryDocumentTool
1796
+ | AgentToolInputRunRetrieveKnowledgeBasesTool
1797
+ | AgentToolInputRunQueryKnowledgeBaseTool
1798
+ | AgentToolInputRunCurrentDateTool
1799
+ | AgentToolInputRunCodeInterpreterTool
1800
1800
  | AgentToolInputRunHTTPToolRun
1801
1801
  | AgentToolInputRunCodeToolRun
1802
1802
  | AgentToolInputRunFunctionToolRun
@@ -1882,18 +1882,18 @@ export type StreamRunAgentSettings = {
1882
1882
  */
1883
1883
  tools?:
1884
1884
  | Array<
1885
- | StreamRunAgentAgentToolInputRunGoogleSearchTool
1886
- | StreamRunAgentAgentToolInputRunWebScraperTool
1887
- | StreamRunAgentAgentToolInputRunCallSubAgentTool
1888
- | StreamRunAgentAgentToolInputRunRetrieveAgentsTool
1889
- | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
1890
- | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
1891
- | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
1892
- | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
1893
- | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
1894
- | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
1895
- | StreamRunAgentAgentToolInputRunCurrentDateTool
1896
- | StreamRunAgentAgentToolInputRunCodeInterpreterTool
1885
+ | AgentToolInputRunGoogleSearchTool
1886
+ | AgentToolInputRunWebScraperTool
1887
+ | AgentToolInputRunCallSubAgentTool
1888
+ | AgentToolInputRunRetrieveAgentsTool
1889
+ | AgentToolInputRunQueryMemoryStoreTool
1890
+ | AgentToolInputRunWriteMemoryStoreTool
1891
+ | AgentToolInputRunRetrieveMemoryStoresTool
1892
+ | AgentToolInputRunDeleteMemoryDocumentTool
1893
+ | AgentToolInputRunRetrieveKnowledgeBasesTool
1894
+ | AgentToolInputRunQueryKnowledgeBaseTool
1895
+ | AgentToolInputRunCurrentDateTool
1896
+ | AgentToolInputRunCodeInterpreterTool
1897
1897
  | AgentToolInputRunHTTPToolRun
1898
1898
  | AgentToolInputRunCodeToolRun
1899
1899
  | AgentToolInputRunFunctionToolRun
@@ -4110,7 +4110,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
4110
4110
  z.ZodTypeDef,
4111
4111
  AgentToolInputRunTools
4112
4112
  > = z.object({
4113
- id: z.string().default("01KY3S9P2ZWS1MSMSQJYGSN2E3"),
4113
+ id: z.string().default("01KY4GW3X8F27XR9Q71TEMPW7J"),
4114
4114
  name: z.string(),
4115
4115
  description: z.string().optional(),
4116
4116
  schema: z.lazy(() =>
@@ -4795,121 +4795,115 @@ export function agentToolInputRunHTTPToolRunToJSON(
4795
4795
  }
4796
4796
 
4797
4797
  /** @internal */
4798
- export type StreamRunAgentAgentToolInputRunCodeInterpreterTool$Outbound = {
4798
+ export type AgentToolInputRunCodeInterpreterTool$Outbound = {
4799
4799
  type: "code_interpreter";
4800
4800
  requires_approval?: boolean | undefined;
4801
4801
  configuration?: { [k: string]: any } | undefined;
4802
4802
  };
4803
4803
 
4804
4804
  /** @internal */
4805
- export const StreamRunAgentAgentToolInputRunCodeInterpreterTool$outboundSchema:
4806
- z.ZodType<
4807
- StreamRunAgentAgentToolInputRunCodeInterpreterTool$Outbound,
4808
- z.ZodTypeDef,
4809
- StreamRunAgentAgentToolInputRunCodeInterpreterTool
4810
- > = z.object({
4811
- type: z.literal("code_interpreter"),
4812
- requiresApproval: z.boolean().optional(),
4813
- configuration: z.record(z.any()).optional(),
4814
- }).transform((v) => {
4815
- return remap$(v, {
4816
- requiresApproval: "requires_approval",
4817
- });
4805
+ export const AgentToolInputRunCodeInterpreterTool$outboundSchema: z.ZodType<
4806
+ AgentToolInputRunCodeInterpreterTool$Outbound,
4807
+ z.ZodTypeDef,
4808
+ AgentToolInputRunCodeInterpreterTool
4809
+ > = z.object({
4810
+ type: z.literal("code_interpreter"),
4811
+ requiresApproval: z.boolean().optional(),
4812
+ configuration: z.record(z.any()).optional(),
4813
+ }).transform((v) => {
4814
+ return remap$(v, {
4815
+ requiresApproval: "requires_approval",
4818
4816
  });
4817
+ });
4819
4818
 
4820
- export function streamRunAgentAgentToolInputRunCodeInterpreterToolToJSON(
4821
- streamRunAgentAgentToolInputRunCodeInterpreterTool:
4822
- StreamRunAgentAgentToolInputRunCodeInterpreterTool,
4819
+ export function agentToolInputRunCodeInterpreterToolToJSON(
4820
+ agentToolInputRunCodeInterpreterTool: AgentToolInputRunCodeInterpreterTool,
4823
4821
  ): string {
4824
4822
  return JSON.stringify(
4825
- StreamRunAgentAgentToolInputRunCodeInterpreterTool$outboundSchema.parse(
4826
- streamRunAgentAgentToolInputRunCodeInterpreterTool,
4823
+ AgentToolInputRunCodeInterpreterTool$outboundSchema.parse(
4824
+ agentToolInputRunCodeInterpreterTool,
4827
4825
  ),
4828
4826
  );
4829
4827
  }
4830
4828
 
4831
4829
  /** @internal */
4832
- export type StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound = {
4830
+ export type AgentToolInputRunCurrentDateTool$Outbound = {
4833
4831
  type: "current_date";
4834
4832
  requires_approval?: boolean | undefined;
4835
4833
  configuration?: { [k: string]: any } | undefined;
4836
4834
  };
4837
4835
 
4838
4836
  /** @internal */
4839
- export const StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema:
4840
- z.ZodType<
4841
- StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound,
4842
- z.ZodTypeDef,
4843
- StreamRunAgentAgentToolInputRunCurrentDateTool
4844
- > = z.object({
4845
- type: z.literal("current_date"),
4846
- requiresApproval: z.boolean().optional(),
4847
- configuration: z.record(z.any()).optional(),
4848
- }).transform((v) => {
4849
- return remap$(v, {
4850
- requiresApproval: "requires_approval",
4851
- });
4837
+ export const AgentToolInputRunCurrentDateTool$outboundSchema: z.ZodType<
4838
+ AgentToolInputRunCurrentDateTool$Outbound,
4839
+ z.ZodTypeDef,
4840
+ AgentToolInputRunCurrentDateTool
4841
+ > = z.object({
4842
+ type: z.literal("current_date"),
4843
+ requiresApproval: z.boolean().optional(),
4844
+ configuration: z.record(z.any()).optional(),
4845
+ }).transform((v) => {
4846
+ return remap$(v, {
4847
+ requiresApproval: "requires_approval",
4852
4848
  });
4849
+ });
4853
4850
 
4854
- export function streamRunAgentAgentToolInputRunCurrentDateToolToJSON(
4855
- streamRunAgentAgentToolInputRunCurrentDateTool:
4856
- StreamRunAgentAgentToolInputRunCurrentDateTool,
4851
+ export function agentToolInputRunCurrentDateToolToJSON(
4852
+ agentToolInputRunCurrentDateTool: AgentToolInputRunCurrentDateTool,
4857
4853
  ): string {
4858
4854
  return JSON.stringify(
4859
- StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema.parse(
4860
- streamRunAgentAgentToolInputRunCurrentDateTool,
4855
+ AgentToolInputRunCurrentDateTool$outboundSchema.parse(
4856
+ agentToolInputRunCurrentDateTool,
4861
4857
  ),
4862
4858
  );
4863
4859
  }
4864
4860
 
4865
4861
  /** @internal */
4866
- export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
4862
+ export type AgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
4867
4863
  type: "query_knowledge_base";
4868
4864
  requires_approval?: boolean | undefined;
4869
4865
  configuration?: { [k: string]: any } | undefined;
4870
4866
  };
4871
4867
 
4872
4868
  /** @internal */
4873
- export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema:
4874
- z.ZodType<
4875
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound,
4876
- z.ZodTypeDef,
4877
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
4878
- > = z.object({
4879
- type: z.literal("query_knowledge_base"),
4880
- requiresApproval: z.boolean().optional(),
4881
- configuration: z.record(z.any()).optional(),
4882
- }).transform((v) => {
4883
- return remap$(v, {
4884
- requiresApproval: "requires_approval",
4885
- });
4869
+ export const AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
4870
+ AgentToolInputRunQueryKnowledgeBaseTool$Outbound,
4871
+ z.ZodTypeDef,
4872
+ AgentToolInputRunQueryKnowledgeBaseTool
4873
+ > = z.object({
4874
+ type: z.literal("query_knowledge_base"),
4875
+ requiresApproval: z.boolean().optional(),
4876
+ configuration: z.record(z.any()).optional(),
4877
+ }).transform((v) => {
4878
+ return remap$(v, {
4879
+ requiresApproval: "requires_approval",
4886
4880
  });
4881
+ });
4887
4882
 
4888
- export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolToJSON(
4889
- streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool:
4890
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
4883
+ export function agentToolInputRunQueryKnowledgeBaseToolToJSON(
4884
+ agentToolInputRunQueryKnowledgeBaseTool:
4885
+ AgentToolInputRunQueryKnowledgeBaseTool,
4891
4886
  ): string {
4892
4887
  return JSON.stringify(
4893
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
4894
- streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
4888
+ AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
4889
+ agentToolInputRunQueryKnowledgeBaseTool,
4895
4890
  ),
4896
4891
  );
4897
4892
  }
4898
4893
 
4899
4894
  /** @internal */
4900
- export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound =
4901
- {
4902
- type: "retrieve_knowledge_bases";
4903
- requires_approval?: boolean | undefined;
4904
- configuration?: { [k: string]: any } | undefined;
4905
- };
4895
+ export type AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound = {
4896
+ type: "retrieve_knowledge_bases";
4897
+ requires_approval?: boolean | undefined;
4898
+ configuration?: { [k: string]: any } | undefined;
4899
+ };
4906
4900
 
4907
4901
  /** @internal */
4908
- export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
4902
+ export const AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
4909
4903
  z.ZodType<
4910
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
4904
+ AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
4911
4905
  z.ZodTypeDef,
4912
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
4906
+ AgentToolInputRunRetrieveKnowledgeBasesTool
4913
4907
  > = z.object({
4914
4908
  type: z.literal("retrieve_knowledge_bases"),
4915
4909
  requiresApproval: z.boolean().optional(),
@@ -4920,29 +4914,30 @@ export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundS
4920
4914
  });
4921
4915
  });
4922
4916
 
4923
- export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolToJSON(
4924
- streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool:
4925
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
4917
+ export function agentToolInputRunRetrieveKnowledgeBasesToolToJSON(
4918
+ agentToolInputRunRetrieveKnowledgeBasesTool:
4919
+ AgentToolInputRunRetrieveKnowledgeBasesTool,
4926
4920
  ): string {
4927
4921
  return JSON.stringify(
4928
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
4929
- .parse(streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool),
4922
+ AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema.parse(
4923
+ agentToolInputRunRetrieveKnowledgeBasesTool,
4924
+ ),
4930
4925
  );
4931
4926
  }
4932
4927
 
4933
4928
  /** @internal */
4934
- export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
4929
+ export type AgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
4935
4930
  type: "delete_memory_document";
4936
4931
  requires_approval?: boolean | undefined;
4937
4932
  configuration?: { [k: string]: any } | undefined;
4938
4933
  };
4939
4934
 
4940
4935
  /** @internal */
4941
- export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
4936
+ export const AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
4942
4937
  z.ZodType<
4943
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound,
4938
+ AgentToolInputRunDeleteMemoryDocumentTool$Outbound,
4944
4939
  z.ZodTypeDef,
4945
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
4940
+ AgentToolInputRunDeleteMemoryDocumentTool
4946
4941
  > = z.object({
4947
4942
  type: z.literal("delete_memory_document"),
4948
4943
  requiresApproval: z.boolean().optional(),
@@ -4953,29 +4948,30 @@ export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSch
4953
4948
  });
4954
4949
  });
4955
4950
 
4956
- export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolToJSON(
4957
- streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool:
4958
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
4951
+ export function agentToolInputRunDeleteMemoryDocumentToolToJSON(
4952
+ agentToolInputRunDeleteMemoryDocumentTool:
4953
+ AgentToolInputRunDeleteMemoryDocumentTool,
4959
4954
  ): string {
4960
4955
  return JSON.stringify(
4961
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
4962
- .parse(streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool),
4956
+ AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema.parse(
4957
+ agentToolInputRunDeleteMemoryDocumentTool,
4958
+ ),
4963
4959
  );
4964
4960
  }
4965
4961
 
4966
4962
  /** @internal */
4967
- export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
4963
+ export type AgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
4968
4964
  type: "retrieve_memory_stores";
4969
4965
  requires_approval?: boolean | undefined;
4970
4966
  configuration?: { [k: string]: any } | undefined;
4971
4967
  };
4972
4968
 
4973
4969
  /** @internal */
4974
- export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
4970
+ export const AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
4975
4971
  z.ZodType<
4976
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound,
4972
+ AgentToolInputRunRetrieveMemoryStoresTool$Outbound,
4977
4973
  z.ZodTypeDef,
4978
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
4974
+ AgentToolInputRunRetrieveMemoryStoresTool
4979
4975
  > = z.object({
4980
4976
  type: z.literal("retrieve_memory_stores"),
4981
4977
  requiresApproval: z.boolean().optional(),
@@ -4986,234 +4982,223 @@ export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSch
4986
4982
  });
4987
4983
  });
4988
4984
 
4989
- export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolToJSON(
4990
- streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool:
4991
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
4985
+ export function agentToolInputRunRetrieveMemoryStoresToolToJSON(
4986
+ agentToolInputRunRetrieveMemoryStoresTool:
4987
+ AgentToolInputRunRetrieveMemoryStoresTool,
4992
4988
  ): string {
4993
4989
  return JSON.stringify(
4994
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
4995
- .parse(streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool),
4990
+ AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema.parse(
4991
+ agentToolInputRunRetrieveMemoryStoresTool,
4992
+ ),
4996
4993
  );
4997
4994
  }
4998
4995
 
4999
4996
  /** @internal */
5000
- export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound = {
4997
+ export type AgentToolInputRunWriteMemoryStoreTool$Outbound = {
5001
4998
  type: "write_memory_store";
5002
4999
  requires_approval?: boolean | undefined;
5003
5000
  configuration?: { [k: string]: any } | undefined;
5004
5001
  };
5005
5002
 
5006
5003
  /** @internal */
5007
- export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema:
5008
- z.ZodType<
5009
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound,
5010
- z.ZodTypeDef,
5011
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
5012
- > = z.object({
5013
- type: z.literal("write_memory_store"),
5014
- requiresApproval: z.boolean().optional(),
5015
- configuration: z.record(z.any()).optional(),
5016
- }).transform((v) => {
5017
- return remap$(v, {
5018
- requiresApproval: "requires_approval",
5019
- });
5004
+ export const AgentToolInputRunWriteMemoryStoreTool$outboundSchema: z.ZodType<
5005
+ AgentToolInputRunWriteMemoryStoreTool$Outbound,
5006
+ z.ZodTypeDef,
5007
+ AgentToolInputRunWriteMemoryStoreTool
5008
+ > = z.object({
5009
+ type: z.literal("write_memory_store"),
5010
+ requiresApproval: z.boolean().optional(),
5011
+ configuration: z.record(z.any()).optional(),
5012
+ }).transform((v) => {
5013
+ return remap$(v, {
5014
+ requiresApproval: "requires_approval",
5020
5015
  });
5016
+ });
5021
5017
 
5022
- export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolToJSON(
5023
- streamRunAgentAgentToolInputRunWriteMemoryStoreTool:
5024
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
5018
+ export function agentToolInputRunWriteMemoryStoreToolToJSON(
5019
+ agentToolInputRunWriteMemoryStoreTool: AgentToolInputRunWriteMemoryStoreTool,
5025
5020
  ): string {
5026
5021
  return JSON.stringify(
5027
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
5028
- streamRunAgentAgentToolInputRunWriteMemoryStoreTool,
5022
+ AgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
5023
+ agentToolInputRunWriteMemoryStoreTool,
5029
5024
  ),
5030
5025
  );
5031
5026
  }
5032
5027
 
5033
5028
  /** @internal */
5034
- export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound = {
5029
+ export type AgentToolInputRunQueryMemoryStoreTool$Outbound = {
5035
5030
  type: "query_memory_store";
5036
5031
  requires_approval?: boolean | undefined;
5037
5032
  configuration?: { [k: string]: any } | undefined;
5038
5033
  };
5039
5034
 
5040
5035
  /** @internal */
5041
- export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema:
5042
- z.ZodType<
5043
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound,
5044
- z.ZodTypeDef,
5045
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
5046
- > = z.object({
5047
- type: z.literal("query_memory_store"),
5048
- requiresApproval: z.boolean().optional(),
5049
- configuration: z.record(z.any()).optional(),
5050
- }).transform((v) => {
5051
- return remap$(v, {
5052
- requiresApproval: "requires_approval",
5053
- });
5036
+ export const AgentToolInputRunQueryMemoryStoreTool$outboundSchema: z.ZodType<
5037
+ AgentToolInputRunQueryMemoryStoreTool$Outbound,
5038
+ z.ZodTypeDef,
5039
+ AgentToolInputRunQueryMemoryStoreTool
5040
+ > = z.object({
5041
+ type: z.literal("query_memory_store"),
5042
+ requiresApproval: z.boolean().optional(),
5043
+ configuration: z.record(z.any()).optional(),
5044
+ }).transform((v) => {
5045
+ return remap$(v, {
5046
+ requiresApproval: "requires_approval",
5054
5047
  });
5048
+ });
5055
5049
 
5056
- export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolToJSON(
5057
- streamRunAgentAgentToolInputRunQueryMemoryStoreTool:
5058
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
5050
+ export function agentToolInputRunQueryMemoryStoreToolToJSON(
5051
+ agentToolInputRunQueryMemoryStoreTool: AgentToolInputRunQueryMemoryStoreTool,
5059
5052
  ): string {
5060
5053
  return JSON.stringify(
5061
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
5062
- streamRunAgentAgentToolInputRunQueryMemoryStoreTool,
5054
+ AgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
5055
+ agentToolInputRunQueryMemoryStoreTool,
5063
5056
  ),
5064
5057
  );
5065
5058
  }
5066
5059
 
5067
5060
  /** @internal */
5068
- export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound = {
5061
+ export type AgentToolInputRunRetrieveAgentsTool$Outbound = {
5069
5062
  type: "retrieve_agents";
5070
5063
  requires_approval?: boolean | undefined;
5071
5064
  configuration?: { [k: string]: any } | undefined;
5072
5065
  };
5073
5066
 
5074
5067
  /** @internal */
5075
- export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema:
5076
- z.ZodType<
5077
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound,
5078
- z.ZodTypeDef,
5079
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool
5080
- > = z.object({
5081
- type: z.literal("retrieve_agents"),
5082
- requiresApproval: z.boolean().optional(),
5083
- configuration: z.record(z.any()).optional(),
5084
- }).transform((v) => {
5085
- return remap$(v, {
5086
- requiresApproval: "requires_approval",
5087
- });
5068
+ export const AgentToolInputRunRetrieveAgentsTool$outboundSchema: z.ZodType<
5069
+ AgentToolInputRunRetrieveAgentsTool$Outbound,
5070
+ z.ZodTypeDef,
5071
+ AgentToolInputRunRetrieveAgentsTool
5072
+ > = z.object({
5073
+ type: z.literal("retrieve_agents"),
5074
+ requiresApproval: z.boolean().optional(),
5075
+ configuration: z.record(z.any()).optional(),
5076
+ }).transform((v) => {
5077
+ return remap$(v, {
5078
+ requiresApproval: "requires_approval",
5088
5079
  });
5080
+ });
5089
5081
 
5090
- export function streamRunAgentAgentToolInputRunRetrieveAgentsToolToJSON(
5091
- streamRunAgentAgentToolInputRunRetrieveAgentsTool:
5092
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
5082
+ export function agentToolInputRunRetrieveAgentsToolToJSON(
5083
+ agentToolInputRunRetrieveAgentsTool: AgentToolInputRunRetrieveAgentsTool,
5093
5084
  ): string {
5094
5085
  return JSON.stringify(
5095
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
5096
- streamRunAgentAgentToolInputRunRetrieveAgentsTool,
5086
+ AgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
5087
+ agentToolInputRunRetrieveAgentsTool,
5097
5088
  ),
5098
5089
  );
5099
5090
  }
5100
5091
 
5101
5092
  /** @internal */
5102
- export type StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound = {
5093
+ export type AgentToolInputRunCallSubAgentTool$Outbound = {
5103
5094
  type: "call_sub_agent";
5104
5095
  requires_approval?: boolean | undefined;
5105
5096
  configuration?: { [k: string]: any } | undefined;
5106
5097
  };
5107
5098
 
5108
5099
  /** @internal */
5109
- export const StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema:
5110
- z.ZodType<
5111
- StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound,
5112
- z.ZodTypeDef,
5113
- StreamRunAgentAgentToolInputRunCallSubAgentTool
5114
- > = z.object({
5115
- type: z.literal("call_sub_agent"),
5116
- requiresApproval: z.boolean().optional(),
5117
- configuration: z.record(z.any()).optional(),
5118
- }).transform((v) => {
5119
- return remap$(v, {
5120
- requiresApproval: "requires_approval",
5121
- });
5100
+ export const AgentToolInputRunCallSubAgentTool$outboundSchema: z.ZodType<
5101
+ AgentToolInputRunCallSubAgentTool$Outbound,
5102
+ z.ZodTypeDef,
5103
+ AgentToolInputRunCallSubAgentTool
5104
+ > = z.object({
5105
+ type: z.literal("call_sub_agent"),
5106
+ requiresApproval: z.boolean().optional(),
5107
+ configuration: z.record(z.any()).optional(),
5108
+ }).transform((v) => {
5109
+ return remap$(v, {
5110
+ requiresApproval: "requires_approval",
5122
5111
  });
5112
+ });
5123
5113
 
5124
- export function streamRunAgentAgentToolInputRunCallSubAgentToolToJSON(
5125
- streamRunAgentAgentToolInputRunCallSubAgentTool:
5126
- StreamRunAgentAgentToolInputRunCallSubAgentTool,
5114
+ export function agentToolInputRunCallSubAgentToolToJSON(
5115
+ agentToolInputRunCallSubAgentTool: AgentToolInputRunCallSubAgentTool,
5127
5116
  ): string {
5128
5117
  return JSON.stringify(
5129
- StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema.parse(
5130
- streamRunAgentAgentToolInputRunCallSubAgentTool,
5118
+ AgentToolInputRunCallSubAgentTool$outboundSchema.parse(
5119
+ agentToolInputRunCallSubAgentTool,
5131
5120
  ),
5132
5121
  );
5133
5122
  }
5134
5123
 
5135
5124
  /** @internal */
5136
- export type StreamRunAgentAgentToolInputRunWebScraperTool$Outbound = {
5125
+ export type AgentToolInputRunWebScraperTool$Outbound = {
5137
5126
  type: "web_scraper";
5138
5127
  requires_approval?: boolean | undefined;
5139
5128
  configuration?: { [k: string]: any } | undefined;
5140
5129
  };
5141
5130
 
5142
5131
  /** @internal */
5143
- export const StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema:
5144
- z.ZodType<
5145
- StreamRunAgentAgentToolInputRunWebScraperTool$Outbound,
5146
- z.ZodTypeDef,
5147
- StreamRunAgentAgentToolInputRunWebScraperTool
5148
- > = z.object({
5149
- type: z.literal("web_scraper"),
5150
- requiresApproval: z.boolean().optional(),
5151
- configuration: z.record(z.any()).optional(),
5152
- }).transform((v) => {
5153
- return remap$(v, {
5154
- requiresApproval: "requires_approval",
5155
- });
5132
+ export const AgentToolInputRunWebScraperTool$outboundSchema: z.ZodType<
5133
+ AgentToolInputRunWebScraperTool$Outbound,
5134
+ z.ZodTypeDef,
5135
+ AgentToolInputRunWebScraperTool
5136
+ > = z.object({
5137
+ type: z.literal("web_scraper"),
5138
+ requiresApproval: z.boolean().optional(),
5139
+ configuration: z.record(z.any()).optional(),
5140
+ }).transform((v) => {
5141
+ return remap$(v, {
5142
+ requiresApproval: "requires_approval",
5156
5143
  });
5144
+ });
5157
5145
 
5158
- export function streamRunAgentAgentToolInputRunWebScraperToolToJSON(
5159
- streamRunAgentAgentToolInputRunWebScraperTool:
5160
- StreamRunAgentAgentToolInputRunWebScraperTool,
5146
+ export function agentToolInputRunWebScraperToolToJSON(
5147
+ agentToolInputRunWebScraperTool: AgentToolInputRunWebScraperTool,
5161
5148
  ): string {
5162
5149
  return JSON.stringify(
5163
- StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema.parse(
5164
- streamRunAgentAgentToolInputRunWebScraperTool,
5150
+ AgentToolInputRunWebScraperTool$outboundSchema.parse(
5151
+ agentToolInputRunWebScraperTool,
5165
5152
  ),
5166
5153
  );
5167
5154
  }
5168
5155
 
5169
5156
  /** @internal */
5170
- export type StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound = {
5157
+ export type AgentToolInputRunGoogleSearchTool$Outbound = {
5171
5158
  type: "google_search";
5172
5159
  requires_approval?: boolean | undefined;
5173
5160
  configuration?: { [k: string]: any } | undefined;
5174
5161
  };
5175
5162
 
5176
5163
  /** @internal */
5177
- export const StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema:
5178
- z.ZodType<
5179
- StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound,
5180
- z.ZodTypeDef,
5181
- StreamRunAgentAgentToolInputRunGoogleSearchTool
5182
- > = z.object({
5183
- type: z.literal("google_search"),
5184
- requiresApproval: z.boolean().optional(),
5185
- configuration: z.record(z.any()).optional(),
5186
- }).transform((v) => {
5187
- return remap$(v, {
5188
- requiresApproval: "requires_approval",
5189
- });
5164
+ export const AgentToolInputRunGoogleSearchTool$outboundSchema: z.ZodType<
5165
+ AgentToolInputRunGoogleSearchTool$Outbound,
5166
+ z.ZodTypeDef,
5167
+ AgentToolInputRunGoogleSearchTool
5168
+ > = z.object({
5169
+ type: z.literal("google_search"),
5170
+ requiresApproval: z.boolean().optional(),
5171
+ configuration: z.record(z.any()).optional(),
5172
+ }).transform((v) => {
5173
+ return remap$(v, {
5174
+ requiresApproval: "requires_approval",
5190
5175
  });
5176
+ });
5191
5177
 
5192
- export function streamRunAgentAgentToolInputRunGoogleSearchToolToJSON(
5193
- streamRunAgentAgentToolInputRunGoogleSearchTool:
5194
- StreamRunAgentAgentToolInputRunGoogleSearchTool,
5178
+ export function agentToolInputRunGoogleSearchToolToJSON(
5179
+ agentToolInputRunGoogleSearchTool: AgentToolInputRunGoogleSearchTool,
5195
5180
  ): string {
5196
5181
  return JSON.stringify(
5197
- StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema.parse(
5198
- streamRunAgentAgentToolInputRunGoogleSearchTool,
5182
+ AgentToolInputRunGoogleSearchTool$outboundSchema.parse(
5183
+ agentToolInputRunGoogleSearchTool,
5199
5184
  ),
5200
5185
  );
5201
5186
  }
5202
5187
 
5203
5188
  /** @internal */
5204
5189
  export type StreamRunAgentAgentToolInputRun$Outbound =
5205
- | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
5206
- | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
5207
- | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
5208
- | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
5209
- | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
5210
- | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
5211
- | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
5212
- | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
5213
- | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
5214
- | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
5215
- | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound
5216
- | StreamRunAgentAgentToolInputRunCodeInterpreterTool$Outbound
5190
+ | AgentToolInputRunGoogleSearchTool$Outbound
5191
+ | AgentToolInputRunWebScraperTool$Outbound
5192
+ | AgentToolInputRunCallSubAgentTool$Outbound
5193
+ | AgentToolInputRunRetrieveAgentsTool$Outbound
5194
+ | AgentToolInputRunQueryMemoryStoreTool$Outbound
5195
+ | AgentToolInputRunWriteMemoryStoreTool$Outbound
5196
+ | AgentToolInputRunRetrieveMemoryStoresTool$Outbound
5197
+ | AgentToolInputRunDeleteMemoryDocumentTool$Outbound
5198
+ | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
5199
+ | AgentToolInputRunQueryKnowledgeBaseTool$Outbound
5200
+ | AgentToolInputRunCurrentDateTool$Outbound
5201
+ | AgentToolInputRunCodeInterpreterTool$Outbound
5217
5202
  | AgentToolInputRunHTTPToolRun$Outbound
5218
5203
  | AgentToolInputRunCodeToolRun$Outbound
5219
5204
  | AgentToolInputRunFunctionToolRun$Outbound
@@ -5226,34 +5211,18 @@ export const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<
5226
5211
  z.ZodTypeDef,
5227
5212
  StreamRunAgentAgentToolInputRun
5228
5213
  > = z.union([
5229
- z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema),
5230
- z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema),
5231
- z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema),
5232
- z.lazy(() =>
5233
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
5234
- ),
5235
- z.lazy(() =>
5236
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
5237
- ),
5238
- z.lazy(() =>
5239
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
5240
- ),
5241
- z.lazy(() =>
5242
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
5243
- ),
5244
- z.lazy(() =>
5245
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
5246
- ),
5247
- z.lazy(() =>
5248
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
5249
- ),
5250
- z.lazy(() =>
5251
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
5252
- ),
5253
- z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema),
5254
- z.lazy(() =>
5255
- StreamRunAgentAgentToolInputRunCodeInterpreterTool$outboundSchema
5256
- ),
5214
+ z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
5215
+ z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
5216
+ z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
5217
+ z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
5218
+ z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
5219
+ z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
5220
+ z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
5221
+ z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
5222
+ z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
5223
+ z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
5224
+ z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
5225
+ z.lazy(() => AgentToolInputRunCodeInterpreterTool$outboundSchema),
5257
5226
  z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
5258
5227
  z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
5259
5228
  z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
@@ -5352,18 +5321,18 @@ export function streamRunAgentGuardrailsToJSON(
5352
5321
  export type StreamRunAgentSettings$Outbound = {
5353
5322
  tools?:
5354
5323
  | Array<
5355
- | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
5356
- | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
5357
- | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
5358
- | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
5359
- | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
5360
- | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
5361
- | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
5362
- | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
5363
- | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
5364
- | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
5365
- | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound
5366
- | StreamRunAgentAgentToolInputRunCodeInterpreterTool$Outbound
5324
+ | AgentToolInputRunGoogleSearchTool$Outbound
5325
+ | AgentToolInputRunWebScraperTool$Outbound
5326
+ | AgentToolInputRunCallSubAgentTool$Outbound
5327
+ | AgentToolInputRunRetrieveAgentsTool$Outbound
5328
+ | AgentToolInputRunQueryMemoryStoreTool$Outbound
5329
+ | AgentToolInputRunWriteMemoryStoreTool$Outbound
5330
+ | AgentToolInputRunRetrieveMemoryStoresTool$Outbound
5331
+ | AgentToolInputRunDeleteMemoryDocumentTool$Outbound
5332
+ | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
5333
+ | AgentToolInputRunQueryKnowledgeBaseTool$Outbound
5334
+ | AgentToolInputRunCurrentDateTool$Outbound
5335
+ | AgentToolInputRunCodeInterpreterTool$Outbound
5367
5336
  | AgentToolInputRunHTTPToolRun$Outbound
5368
5337
  | AgentToolInputRunCodeToolRun$Outbound
5369
5338
  | AgentToolInputRunFunctionToolRun$Outbound
@@ -5388,42 +5357,18 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
5388
5357
  > = z.object({
5389
5358
  tools: z.array(
5390
5359
  z.union([
5391
- z.lazy(() =>
5392
- StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema
5393
- ),
5394
- z.lazy(() =>
5395
- StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema
5396
- ),
5397
- z.lazy(() =>
5398
- StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema
5399
- ),
5400
- z.lazy(() =>
5401
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
5402
- ),
5403
- z.lazy(() =>
5404
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
5405
- ),
5406
- z.lazy(() =>
5407
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
5408
- ),
5409
- z.lazy(() =>
5410
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
5411
- ),
5412
- z.lazy(() =>
5413
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
5414
- ),
5415
- z.lazy(() =>
5416
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
5417
- ),
5418
- z.lazy(() =>
5419
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
5420
- ),
5421
- z.lazy(() =>
5422
- StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema
5423
- ),
5424
- z.lazy(() =>
5425
- StreamRunAgentAgentToolInputRunCodeInterpreterTool$outboundSchema
5426
- ),
5360
+ z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
5361
+ z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
5362
+ z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
5363
+ z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
5364
+ z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
5365
+ z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
5366
+ z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
5367
+ z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
5368
+ z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
5369
+ z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
5370
+ z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
5371
+ z.lazy(() => AgentToolInputRunCodeInterpreterTool$outboundSchema),
5427
5372
  z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
5428
5373
  z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
5429
5374
  z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),