@takeshape/schema 11.63.7 → 11.66.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.
@@ -276,16 +276,10 @@ export type CacheTriggerConfigV3_51_0 = CacheScheduleTriggerConfigV3_51_0 | Cach
276
276
  export type ShapeSchemaV3_51_0 = ShapeSchemaAllOfV3_51_0 | ShapeSchemaExtendsV3_51_0 | ShapeSchemaOneOfV3_51_0 | ShapeSchemaEnumV3_51_0 | ObjectSchemaV3_51_0 | ShapeSchemaAnyV3_51_0;
277
277
  export type AgentAPIV3_51_0 = AgentAPIChatV3_51_0 | AgentAPIGenerateV3_51_0;
278
278
  export type MemoryLocationsV3_51_0 = AgentSessionMemoryLocationV3_51_0[];
279
- export type AgentVariableStepV3_51_0 = AgentVariableStepSessionMemoryV3_51_0 | AgentVariableStepGraphQLArgV3_51_0 | AgentVariableStepStateOutputV3_51_0 | AgentVariableStepPreviousStateOutputV3_51_0 | AgentVariableStepStaticValueV3_51_0;
280
- export type AgentVariableStepConditionV3_51_0 = AgentVariableStepConditionNoneV3_51_0 | AgentVariableStepConditionSourceStateV3_51_0;
281
279
  export type VariablesV3_51_0 = AgentVariableV3_51_0[];
282
280
  export type AgentExecutionV3_51_0 = AgentExecutionGraphQLV3_51_0 | AgentExecutionGenerateV3_51_0 | AgentExecutionChatV3_51_0;
283
281
  export type AgentAIStateInputV3_51_0 = AgentAIStateInputArgumentV3_51_0 | AgentAIStateInputTemplateV3_51_0;
284
- export type MinimatchPatternV3_51_0 = string;
285
- /**
286
- * Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
287
- */
288
- export type RemovePropertyKeyPatternsV3_51_0 = MinimatchPatternV3_51_0[];
282
+ export type AgentToolConfigArgV3_51_0 = AgentToolConfigArgAgentV3_51_0 | AgentToolConfigArgVariableV3_51_0;
289
283
  export type HistoryV3_51_01 = boolean;
290
284
  /**
291
285
  * Maximum number of tokens to generate.
@@ -331,6 +325,11 @@ export type StructuredOutputsV3_51_0 = boolean;
331
325
  * Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
332
326
  */
333
327
  export type EnableOpenAISchemaFormatV3_51_0 = boolean;
328
+ export type MinimatchPatternV3_51_0 = string;
329
+ /**
330
+ * Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
331
+ */
332
+ export type RemovePropertyKeyPatternsV3_51_0 = MinimatchPatternV3_51_0[];
334
333
  export type AgentStateSessionMemoryLocationV3_51_0 = AgentStateSessionMemoryLocationArtifactV3_51_0 | AgentStateSessionMemoryLocationStaticValueV3_51_0;
335
334
  export type AgentStateSessionMemoryV3_51_0 = AgentStateSessionMemoryLocationV3_51_0[];
336
335
  export type GuardIDV3_51_0 = string;
@@ -1681,34 +1680,9 @@ export interface AgentStartV3_51_0 {
1681
1680
  export interface AgentTransitionStepV3_51_0 {
1682
1681
  destination: string;
1683
1682
  suspend?: boolean;
1684
- condition: AgentTransitionStepConditionNoneV3_51_0 | AgentTransitionStepConditionArtifactV3_51_0 | AgentTransitionStepConditionStateOutputV3_51_0 | AgentTransitionStepConditionStringContainsV3_51_0 | AgentTransitionStepConditionArgumentV3_51_0;
1683
+ condition?: string;
1685
1684
  limit?: number;
1686
1685
  }
1687
- export interface AgentTransitionStepConditionNoneV3_51_0 {
1688
- type: 'none';
1689
- }
1690
- export interface AgentTransitionStepConditionArtifactV3_51_0 {
1691
- type: 'artifact';
1692
- path?: string;
1693
- negated?: boolean;
1694
- }
1695
- export interface AgentTransitionStepConditionStateOutputV3_51_0 {
1696
- type: 'stateOutput';
1697
- stateId: string;
1698
- path?: string;
1699
- negated?: boolean;
1700
- }
1701
- export interface AgentTransitionStepConditionStringContainsV3_51_0 {
1702
- type: 'stringContains';
1703
- path?: string;
1704
- string: string;
1705
- negated?: boolean;
1706
- }
1707
- export interface AgentTransitionStepConditionArgumentV3_51_0 {
1708
- type: 'argument';
1709
- argument: string;
1710
- negated?: boolean;
1711
- }
1712
1686
  /**
1713
1687
  * States that are traversed during the execution of an agent.
1714
1688
  */
@@ -1735,39 +1709,9 @@ export interface AgentVariableV3_51_0 {
1735
1709
  */
1736
1710
  steps: AgentVariableStepV3_51_0[];
1737
1711
  }
1738
- export interface AgentVariableStepSessionMemoryV3_51_0 {
1739
- type: 'sessionMemory';
1740
- memoryKey: string;
1741
- path?: string;
1742
- }
1743
- export interface AgentVariableStepGraphQLArgV3_51_0 {
1744
- type: 'graphqlArg';
1745
- argName: string;
1746
- }
1747
- export interface AgentVariableStepStateOutputV3_51_0 {
1748
- type: 'stateOutput';
1749
- stateId: string;
1750
- path?: string;
1751
- }
1752
- export interface AgentVariableStepPreviousStateOutputV3_51_0 {
1753
- type: 'previousStateOutput';
1754
- path?: string;
1755
- }
1756
- /**
1757
- * An Agent Variable that has a static value.
1758
- */
1759
- export interface AgentVariableStepStaticValueV3_51_0 {
1760
- type: 'staticValue';
1761
- condition?: AgentVariableStepConditionV3_51_0;
1762
- value: string;
1763
- }
1764
- export interface AgentVariableStepConditionNoneV3_51_0 {
1765
- type: 'none';
1766
- }
1767
- export interface AgentVariableStepConditionSourceStateV3_51_0 {
1768
- type: 'sourceState';
1769
- stateId: string;
1770
- negated?: boolean;
1712
+ export interface AgentVariableStepV3_51_0 {
1713
+ condition?: string;
1714
+ expression: string;
1771
1715
  }
1772
1716
  export interface AgentExecutionGraphQLV3_51_0 {
1773
1717
  type: 'graphql';
@@ -1792,10 +1736,28 @@ export interface AgentAIStateInputTemplateV3_51_0 {
1792
1736
  inputTemplate: string;
1793
1737
  }
1794
1738
  export interface AgentToolConfigV3_51_0 {
1795
- description?: string;
1796
1739
  ref: string;
1740
+ description?: string;
1741
+ args?: AgentToolConfigArgV3_51_0[];
1797
1742
  selectionSet?: string;
1798
- removePropertyKeyPatterns?: RemovePropertyKeyPatternsV3_51_0;
1743
+ }
1744
+ export interface AgentToolConfigArgAgentV3_51_0 {
1745
+ type: 'agent';
1746
+ /**
1747
+ * The argument name that will be exposed by the tool for the LLM to use.
1748
+ */
1749
+ argName: string;
1750
+ }
1751
+ export interface AgentToolConfigArgVariableV3_51_0 {
1752
+ type: 'variable';
1753
+ /**
1754
+ * Name of argument to pass value to. This prevents the LLM from setting the argument.
1755
+ */
1756
+ argName: string;
1757
+ /**
1758
+ * Name of variable to pull value from.
1759
+ */
1760
+ variableName: string;
1799
1761
  }
1800
1762
  export interface AgentGenerateOptionsV3_51_0 {
1801
1763
  history?: HistoryV3_51_01;
@@ -276,16 +276,10 @@ export type CacheTriggerConfigV3_52_0 = CacheScheduleTriggerConfigV3_52_0 | Cach
276
276
  export type ShapeSchemaV3_52_0 = ShapeSchemaAllOfV3_52_0 | ShapeSchemaExtendsV3_52_0 | ShapeSchemaOneOfV3_52_0 | ShapeSchemaEnumV3_52_0 | ObjectSchemaV3_52_0 | ShapeSchemaAnyV3_52_0;
277
277
  export type AgentAPIV3_52_0 = AgentAPIChatV3_52_0 | AgentAPIGenerateV3_52_0;
278
278
  export type MemoryLocationsV3_52_0 = AgentSessionMemoryLocationV3_52_0[];
279
- export type AgentVariableStepV3_52_0 = AgentVariableStepSessionMemoryV3_52_0 | AgentVariableStepGraphQLArgV3_52_0 | AgentVariableStepStateOutputV3_52_0 | AgentVariableStepPreviousStateOutputV3_52_0 | AgentVariableStepStaticValueV3_52_0;
280
- export type AgentVariableStepConditionV3_52_0 = AgentVariableStepConditionNoneV3_52_0 | AgentVariableStepConditionSourceStateV3_52_0;
281
279
  export type VariablesV3_52_0 = AgentVariableV3_52_0[];
282
280
  export type AgentExecutionV3_52_0 = AgentExecutionGraphQLV3_52_0 | AgentExecutionGenerateV3_52_0 | AgentExecutionChatV3_52_0;
283
281
  export type AgentAIStateInputV3_52_0 = AgentAIStateInputArgumentV3_52_0 | AgentAIStateInputTemplateV3_52_0;
284
- export type MinimatchPatternV3_52_0 = string;
285
- /**
286
- * Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
287
- */
288
- export type RemovePropertyKeyPatternsV3_52_0 = MinimatchPatternV3_52_0[];
282
+ export type AgentToolConfigArgV3_52_0 = AgentToolConfigArgAgentV3_52_0 | AgentToolConfigArgVariableV3_52_0;
289
283
  export type HistoryV3_52_01 = boolean;
290
284
  /**
291
285
  * Maximum number of tokens to generate.
@@ -331,6 +325,11 @@ export type StructuredOutputsV3_52_0 = boolean;
331
325
  * Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
332
326
  */
333
327
  export type EnableOpenAISchemaFormatV3_52_0 = boolean;
328
+ export type MinimatchPatternV3_52_0 = string;
329
+ /**
330
+ * Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
331
+ */
332
+ export type RemovePropertyKeyPatternsV3_52_0 = MinimatchPatternV3_52_0[];
334
333
  export type AgentStateSessionMemoryLocationV3_52_0 = AgentStateSessionMemoryLocationArtifactV3_52_0 | AgentStateSessionMemoryLocationStaticValueV3_52_0;
335
334
  export type AgentStateSessionMemoryV3_52_0 = AgentStateSessionMemoryLocationV3_52_0[];
336
335
  export type GuardIDV3_52_0 = string;
@@ -1681,34 +1680,9 @@ export interface AgentStartV3_52_0 {
1681
1680
  export interface AgentTransitionStepV3_52_0 {
1682
1681
  destination: string;
1683
1682
  suspend?: boolean;
1684
- condition: AgentTransitionStepConditionNoneV3_52_0 | AgentTransitionStepConditionArtifactV3_52_0 | AgentTransitionStepConditionStateOutputV3_52_0 | AgentTransitionStepConditionStringContainsV3_52_0 | AgentTransitionStepConditionArgumentV3_52_0;
1683
+ condition?: string;
1685
1684
  limit?: number;
1686
1685
  }
1687
- export interface AgentTransitionStepConditionNoneV3_52_0 {
1688
- type: 'none';
1689
- }
1690
- export interface AgentTransitionStepConditionArtifactV3_52_0 {
1691
- type: 'artifact';
1692
- path?: string;
1693
- negated?: boolean;
1694
- }
1695
- export interface AgentTransitionStepConditionStateOutputV3_52_0 {
1696
- type: 'stateOutput';
1697
- stateId: string;
1698
- path?: string;
1699
- negated?: boolean;
1700
- }
1701
- export interface AgentTransitionStepConditionStringContainsV3_52_0 {
1702
- type: 'stringContains';
1703
- path?: string;
1704
- string: string;
1705
- negated?: boolean;
1706
- }
1707
- export interface AgentTransitionStepConditionArgumentV3_52_0 {
1708
- type: 'argument';
1709
- argument: string;
1710
- negated?: boolean;
1711
- }
1712
1686
  /**
1713
1687
  * States that are traversed during the execution of an agent.
1714
1688
  */
@@ -1735,39 +1709,9 @@ export interface AgentVariableV3_52_0 {
1735
1709
  */
1736
1710
  steps: AgentVariableStepV3_52_0[];
1737
1711
  }
1738
- export interface AgentVariableStepSessionMemoryV3_52_0 {
1739
- type: 'sessionMemory';
1740
- memoryKey: string;
1741
- path?: string;
1742
- }
1743
- export interface AgentVariableStepGraphQLArgV3_52_0 {
1744
- type: 'graphqlArg';
1745
- argName: string;
1746
- }
1747
- export interface AgentVariableStepStateOutputV3_52_0 {
1748
- type: 'stateOutput';
1749
- stateId: string;
1750
- path?: string;
1751
- }
1752
- export interface AgentVariableStepPreviousStateOutputV3_52_0 {
1753
- type: 'previousStateOutput';
1754
- path?: string;
1755
- }
1756
- /**
1757
- * An Agent Variable that has a static value.
1758
- */
1759
- export interface AgentVariableStepStaticValueV3_52_0 {
1760
- type: 'staticValue';
1761
- condition?: AgentVariableStepConditionV3_52_0;
1762
- value: string;
1763
- }
1764
- export interface AgentVariableStepConditionNoneV3_52_0 {
1765
- type: 'none';
1766
- }
1767
- export interface AgentVariableStepConditionSourceStateV3_52_0 {
1768
- type: 'sourceState';
1769
- stateId: string;
1770
- negated?: boolean;
1712
+ export interface AgentVariableStepV3_52_0 {
1713
+ condition?: string;
1714
+ expression: string;
1771
1715
  }
1772
1716
  export interface AgentExecutionGraphQLV3_52_0 {
1773
1717
  type: 'graphql';
@@ -1792,10 +1736,28 @@ export interface AgentAIStateInputTemplateV3_52_0 {
1792
1736
  inputTemplate: string;
1793
1737
  }
1794
1738
  export interface AgentToolConfigV3_52_0 {
1795
- description?: string;
1796
1739
  ref: string;
1740
+ description?: string;
1741
+ args?: AgentToolConfigArgV3_52_0[];
1797
1742
  selectionSet?: string;
1798
- removePropertyKeyPatterns?: RemovePropertyKeyPatternsV3_52_0;
1743
+ }
1744
+ export interface AgentToolConfigArgAgentV3_52_0 {
1745
+ type: 'agent';
1746
+ /**
1747
+ * The argument name that will be exposed by the tool for the LLM to use.
1748
+ */
1749
+ argName: string;
1750
+ }
1751
+ export interface AgentToolConfigArgVariableV3_52_0 {
1752
+ type: 'variable';
1753
+ /**
1754
+ * Name of argument to pass value to. This prevents the LLM from setting the argument.
1755
+ */
1756
+ argName: string;
1757
+ /**
1758
+ * Name of variable to pull value from.
1759
+ */
1760
+ variableName: string;
1799
1761
  }
1800
1762
  export interface AgentGenerateOptionsV3_52_0 {
1801
1763
  history?: HistoryV3_52_01;
@@ -285,16 +285,10 @@ export type CacheTriggerConfigV3_53_0 = CacheScheduleTriggerConfigV3_53_0 | Cach
285
285
  export type ShapeSchemaV3_53_0 = ShapeSchemaAllOfV3_53_0 | ShapeSchemaExtendsV3_53_0 | ShapeSchemaOneOfV3_53_0 | ShapeSchemaEnumV3_53_0 | ObjectSchemaV3_53_0 | ShapeSchemaAnyV3_53_0;
286
286
  export type AgentAPIV3_53_0 = AgentAPIChatV3_53_0 | AgentAPIGenerateV3_53_0;
287
287
  export type MemoryLocationsV3_53_0 = AgentSessionMemoryLocationV3_53_0[];
288
- export type AgentVariableStepV3_53_0 = AgentVariableStepSessionMemoryV3_53_0 | AgentVariableStepGraphQLArgV3_53_0 | AgentVariableStepStateOutputV3_53_0 | AgentVariableStepPreviousStateOutputV3_53_0 | AgentVariableStepStaticValueV3_53_0;
289
- export type AgentVariableStepConditionV3_53_0 = AgentVariableStepConditionNoneV3_53_0 | AgentVariableStepConditionSourceStateV3_53_0;
290
288
  export type VariablesV3_53_0 = AgentVariableV3_53_0[];
291
289
  export type AgentExecutionV3_53_0 = AgentExecutionGraphQLV3_53_0 | AgentExecutionGenerateV3_53_0 | AgentExecutionChatV3_53_0;
292
290
  export type AgentAIStateInputV3_53_0 = AgentAIStateInputArgumentV3_53_0 | AgentAIStateInputTemplateV3_53_0;
293
- export type MinimatchPatternV3_53_0 = string;
294
- /**
295
- * Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
296
- */
297
- export type RemovePropertyKeyPatternsV3_53_0 = MinimatchPatternV3_53_0[];
291
+ export type AgentToolConfigArgV3_53_0 = AgentToolConfigArgAgentV3_53_0 | AgentToolConfigArgVariableV3_53_0;
298
292
  export type HistoryV3_53_01 = boolean;
299
293
  /**
300
294
  * Maximum number of tokens to generate.
@@ -340,6 +334,11 @@ export type StructuredOutputsV3_53_0 = boolean;
340
334
  * Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
341
335
  */
342
336
  export type EnableOpenAISchemaFormatV3_53_0 = boolean;
337
+ export type MinimatchPatternV3_53_0 = string;
338
+ /**
339
+ * Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
340
+ */
341
+ export type RemovePropertyKeyPatternsV3_53_0 = MinimatchPatternV3_53_0[];
343
342
  export type AgentStateSessionMemoryLocationV3_53_0 = AgentStateSessionMemoryLocationArtifactV3_53_0 | AgentStateSessionMemoryLocationStaticValueV3_53_0;
344
343
  export type AgentStateSessionMemoryV3_53_0 = AgentStateSessionMemoryLocationV3_53_0[];
345
344
  export type GuardIDV3_53_0 = string;
@@ -1762,34 +1761,9 @@ export interface AgentStartV3_53_0 {
1762
1761
  export interface AgentTransitionStepV3_53_0 {
1763
1762
  destination: string;
1764
1763
  suspend?: boolean;
1765
- condition: AgentTransitionStepConditionNoneV3_53_0 | AgentTransitionStepConditionArtifactV3_53_0 | AgentTransitionStepConditionStateOutputV3_53_0 | AgentTransitionStepConditionStringContainsV3_53_0 | AgentTransitionStepConditionArgumentV3_53_0;
1764
+ condition?: string;
1766
1765
  limit?: number;
1767
1766
  }
1768
- export interface AgentTransitionStepConditionNoneV3_53_0 {
1769
- type: 'none';
1770
- }
1771
- export interface AgentTransitionStepConditionArtifactV3_53_0 {
1772
- type: 'artifact';
1773
- path?: string;
1774
- negated?: boolean;
1775
- }
1776
- export interface AgentTransitionStepConditionStateOutputV3_53_0 {
1777
- type: 'stateOutput';
1778
- stateId: string;
1779
- path?: string;
1780
- negated?: boolean;
1781
- }
1782
- export interface AgentTransitionStepConditionStringContainsV3_53_0 {
1783
- type: 'stringContains';
1784
- path?: string;
1785
- string: string;
1786
- negated?: boolean;
1787
- }
1788
- export interface AgentTransitionStepConditionArgumentV3_53_0 {
1789
- type: 'argument';
1790
- argument: string;
1791
- negated?: boolean;
1792
- }
1793
1767
  /**
1794
1768
  * States that are traversed during the execution of an agent.
1795
1769
  */
@@ -1816,39 +1790,9 @@ export interface AgentVariableV3_53_0 {
1816
1790
  */
1817
1791
  steps: AgentVariableStepV3_53_0[];
1818
1792
  }
1819
- export interface AgentVariableStepSessionMemoryV3_53_0 {
1820
- type: 'sessionMemory';
1821
- memoryKey: string;
1822
- path?: string;
1823
- }
1824
- export interface AgentVariableStepGraphQLArgV3_53_0 {
1825
- type: 'graphqlArg';
1826
- argName: string;
1827
- }
1828
- export interface AgentVariableStepStateOutputV3_53_0 {
1829
- type: 'stateOutput';
1830
- stateId: string;
1831
- path?: string;
1832
- }
1833
- export interface AgentVariableStepPreviousStateOutputV3_53_0 {
1834
- type: 'previousStateOutput';
1835
- path?: string;
1836
- }
1837
- /**
1838
- * An Agent Variable that has a static value.
1839
- */
1840
- export interface AgentVariableStepStaticValueV3_53_0 {
1841
- type: 'staticValue';
1842
- condition?: AgentVariableStepConditionV3_53_0;
1843
- value: string;
1844
- }
1845
- export interface AgentVariableStepConditionNoneV3_53_0 {
1846
- type: 'none';
1847
- }
1848
- export interface AgentVariableStepConditionSourceStateV3_53_0 {
1849
- type: 'sourceState';
1850
- stateId: string;
1851
- negated?: boolean;
1793
+ export interface AgentVariableStepV3_53_0 {
1794
+ condition?: string;
1795
+ expression: string;
1852
1796
  }
1853
1797
  export interface AgentExecutionGraphQLV3_53_0 {
1854
1798
  type: 'graphql';
@@ -1873,10 +1817,28 @@ export interface AgentAIStateInputTemplateV3_53_0 {
1873
1817
  inputTemplate: string;
1874
1818
  }
1875
1819
  export interface AgentToolConfigV3_53_0 {
1876
- description?: string;
1877
1820
  ref: string;
1821
+ description?: string;
1822
+ args?: AgentToolConfigArgV3_53_0[];
1878
1823
  selectionSet?: string;
1879
- removePropertyKeyPatterns?: RemovePropertyKeyPatternsV3_53_0;
1824
+ }
1825
+ export interface AgentToolConfigArgAgentV3_53_0 {
1826
+ type: 'agent';
1827
+ /**
1828
+ * The argument name that will be exposed by the tool for the LLM to use.
1829
+ */
1830
+ argName: string;
1831
+ }
1832
+ export interface AgentToolConfigArgVariableV3_53_0 {
1833
+ type: 'variable';
1834
+ /**
1835
+ * Name of argument to pass value to. This prevents the LLM from setting the argument.
1836
+ */
1837
+ argName: string;
1838
+ /**
1839
+ * Name of variable to pull value from.
1840
+ */
1841
+ variableName: string;
1880
1842
  }
1881
1843
  export interface AgentGenerateOptionsV3_53_0 {
1882
1844
  history?: HistoryV3_53_01;