@takeshape/schema 11.91.0 → 11.94.3

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.
@@ -347,10 +347,11 @@ export type RemovePropertyKeyPatternsV3_51_0 = MinimatchPatternV3_51_0[];
347
347
  * Remove Markdown formatting from the LLM response
348
348
  */
349
349
  export type StripMarkdownV3_51_0 = boolean;
350
- export type AgentChatHistoryConfigV3_51_0 = AgentChatHistoryRetainV3_51_0 | AgentChatHistorySummarizeV3_51_0 | AgentChatHistoryClearV3_51_0;
351
350
  export type AgentStateSessionMemoryLocationV3_51_0 = AgentStateSessionMemoryLocationContentV3_51_0 | AgentStateSessionMemoryLocationArtifactV3_51_0 | AgentStateSessionMemoryLocationStaticValueV3_51_0;
352
351
  export type AgentStateSessionMemoryV3_51_0 = AgentStateSessionMemoryLocationV3_51_0[];
353
352
  export type GuardIDV3_51_0 = string;
353
+ export type VariablesV3_51_01 = AgentVariableV3_51_0[];
354
+ export type HistoryStrategyExecutionV3_51_0 = HistoryStrategyExecutionReplaceV3_51_0 | HistoryStrategyExecutionSummarizeV3_51_0;
354
355
  /**
355
356
  * The human-readable name of the Guard.
356
357
  */
@@ -359,6 +360,10 @@ export type NameV3_51_0 = string;
359
360
  * A description of the Guard.
360
361
  */
361
362
  export type DescriptionV3_51_0 = string;
363
+ /**
364
+ * Guards will not run unless enabled.
365
+ */
366
+ export type EnabledV3_51_0 = boolean;
362
367
  /**
363
368
  * The remote id of the Guardrail.
364
369
  */
@@ -1644,7 +1649,7 @@ export interface ShapeSchemaAnyV3_51_0 {
1644
1649
  export interface AIExperimentalV3_51_0 {
1645
1650
  agents?: AgentMapV3_51_0;
1646
1651
  guards?: GuardMapV3_51_0;
1647
- tools?: ToolMapV3_51_0;
1652
+ mcp?: MCPServerConfigurationV3_51_0;
1648
1653
  }
1649
1654
  export interface AgentMapV3_51_0 {
1650
1655
  [k: string]: AgentJSONV3_51_0;
@@ -1663,6 +1668,7 @@ export interface AgentJSONV3_51_0 {
1663
1668
  start: AgentStartV3_51_0;
1664
1669
  states: AgentStatesV3_51_0;
1665
1670
  guards?: AgentGuardV3_51_0[];
1671
+ historyStrategies?: HistoryStrategyMapV3_51_0;
1666
1672
  }
1667
1673
  export interface AgentAPIChatV3_51_0 {
1668
1674
  type: 'chat';
@@ -1700,6 +1706,7 @@ export interface AgentTransitionStepV3_51_0 {
1700
1706
  suspend?: boolean;
1701
1707
  condition?: string;
1702
1708
  limit?: number;
1709
+ historyStrategy?: string;
1703
1710
  }
1704
1711
  /**
1705
1712
  * States that are traversed during the execution of an agent.
@@ -1801,19 +1808,8 @@ export interface AgentExecutionChatV3_51_0 {
1801
1808
  input: AgentAIStateInputV3_51_0;
1802
1809
  artifact?: string;
1803
1810
  tools?: AgentToolConfigV3_51_0[];
1804
- history?: AgentChatHistoryConfigV3_51_0;
1805
1811
  options?: AgentGenerateOptionsV3_51_0;
1806
1812
  }
1807
- export interface AgentChatHistoryRetainV3_51_0 {
1808
- type: 'retain';
1809
- }
1810
- export interface AgentChatHistorySummarizeV3_51_0 {
1811
- type: 'summarize';
1812
- toolCalls: 'retain' | 'clear';
1813
- }
1814
- export interface AgentChatHistoryClearV3_51_0 {
1815
- type: 'clear';
1816
- }
1817
1813
  export interface AgentStateSessionMemoryLocationContentV3_51_0 {
1818
1814
  type: 'content';
1819
1815
  memoryPath?: string;
@@ -1832,6 +1828,34 @@ export interface AgentStateSessionMemoryLocationStaticValueV3_51_0 {
1832
1828
  export interface AgentGuardV3_51_0 {
1833
1829
  guardId: GuardIDV3_51_0;
1834
1830
  }
1831
+ export interface HistoryStrategyMapV3_51_0 {
1832
+ [k: string]: HistoryStrategyV3_51_0;
1833
+ }
1834
+ /**
1835
+ * This interface was referenced by `HistoryStrategyMapV3_51_0`'s JSON-Schema definition
1836
+ * via the `patternProperty` "^[0-9A-Za-z_]+$".
1837
+ */
1838
+ export interface HistoryStrategyV3_51_0 {
1839
+ name: string;
1840
+ variables?: VariablesV3_51_01;
1841
+ filter?: HistoryStrategyFilterV3_51_0;
1842
+ execution: HistoryStrategyExecutionV3_51_0;
1843
+ }
1844
+ export interface HistoryStrategyFilterV3_51_0 {
1845
+ toolCalls?: 'retain' | 'clear';
1846
+ }
1847
+ export interface HistoryStrategyExecutionReplaceV3_51_0 {
1848
+ type: 'replace';
1849
+ template: string;
1850
+ }
1851
+ export interface HistoryStrategyExecutionSummarizeV3_51_0 {
1852
+ type: 'generate';
1853
+ service: string;
1854
+ model: string;
1855
+ systemPrompt: string;
1856
+ tools?: AgentToolConfigV3_51_0[];
1857
+ options?: AgentGenerateOptionsV3_51_0;
1858
+ }
1835
1859
  export interface GuardMapV3_51_0 {
1836
1860
  [k: string]: GuardJSONV3_51_0;
1837
1861
  }
@@ -1844,6 +1868,7 @@ export interface GuardMapV3_51_0 {
1844
1868
  export interface GuardJSONV3_51_0 {
1845
1869
  name: NameV3_51_0;
1846
1870
  description?: DescriptionV3_51_0;
1871
+ enabled?: EnabledV3_51_0;
1847
1872
  guardrailIdentifier?: GuardrailIdentifierV3_51_0;
1848
1873
  guardrailVersion?: GuardrailVersionV3_51_0;
1849
1874
  blockedInputMessaging?: BlockedInputMessagingV3_51_0;
@@ -1886,6 +1911,9 @@ export interface SensitiveInformationPolicyV3_51_0 {
1886
1911
  export interface ContextualGroundingPolicyV3_51_0 {
1887
1912
  filtersConfig: FilterV3_51_01;
1888
1913
  }
1914
+ export interface MCPServerConfigurationV3_51_0 {
1915
+ tools?: ToolMapV3_51_0;
1916
+ }
1889
1917
  export interface ToolMapV3_51_0 {
1890
1918
  [k: string]: ToolJSONV3_51_0;
1891
1919
  }
@@ -347,10 +347,11 @@ export type RemovePropertyKeyPatternsV3_52_0 = MinimatchPatternV3_52_0[];
347
347
  * Remove Markdown formatting from the LLM response
348
348
  */
349
349
  export type StripMarkdownV3_52_0 = boolean;
350
- export type AgentChatHistoryConfigV3_52_0 = AgentChatHistoryRetainV3_52_0 | AgentChatHistorySummarizeV3_52_0 | AgentChatHistoryClearV3_52_0;
351
350
  export type AgentStateSessionMemoryLocationV3_52_0 = AgentStateSessionMemoryLocationContentV3_52_0 | AgentStateSessionMemoryLocationArtifactV3_52_0 | AgentStateSessionMemoryLocationStaticValueV3_52_0;
352
351
  export type AgentStateSessionMemoryV3_52_0 = AgentStateSessionMemoryLocationV3_52_0[];
353
352
  export type GuardIDV3_52_0 = string;
353
+ export type VariablesV3_52_01 = AgentVariableV3_52_0[];
354
+ export type HistoryStrategyExecutionV3_52_0 = HistoryStrategyExecutionReplaceV3_52_0 | HistoryStrategyExecutionSummarizeV3_52_0;
354
355
  /**
355
356
  * The human-readable name of the Guard.
356
357
  */
@@ -359,6 +360,10 @@ export type NameV3_52_0 = string;
359
360
  * A description of the Guard.
360
361
  */
361
362
  export type DescriptionV3_52_0 = string;
363
+ /**
364
+ * Guards will not run unless enabled.
365
+ */
366
+ export type EnabledV3_52_0 = boolean;
362
367
  /**
363
368
  * The remote id of the Guardrail.
364
369
  */
@@ -1644,7 +1649,7 @@ export interface ShapeSchemaAnyV3_52_0 {
1644
1649
  export interface AIExperimentalV3_52_0 {
1645
1650
  agents?: AgentMapV3_52_0;
1646
1651
  guards?: GuardMapV3_52_0;
1647
- tools?: ToolMapV3_52_0;
1652
+ mcp?: MCPServerConfigurationV3_52_0;
1648
1653
  }
1649
1654
  export interface AgentMapV3_52_0 {
1650
1655
  [k: string]: AgentJSONV3_52_0;
@@ -1663,6 +1668,7 @@ export interface AgentJSONV3_52_0 {
1663
1668
  start: AgentStartV3_52_0;
1664
1669
  states: AgentStatesV3_52_0;
1665
1670
  guards?: AgentGuardV3_52_0[];
1671
+ historyStrategies?: HistoryStrategyMapV3_52_0;
1666
1672
  }
1667
1673
  export interface AgentAPIChatV3_52_0 {
1668
1674
  type: 'chat';
@@ -1700,6 +1706,7 @@ export interface AgentTransitionStepV3_52_0 {
1700
1706
  suspend?: boolean;
1701
1707
  condition?: string;
1702
1708
  limit?: number;
1709
+ historyStrategy?: string;
1703
1710
  }
1704
1711
  /**
1705
1712
  * States that are traversed during the execution of an agent.
@@ -1801,19 +1808,8 @@ export interface AgentExecutionChatV3_52_0 {
1801
1808
  input: AgentAIStateInputV3_52_0;
1802
1809
  artifact?: string;
1803
1810
  tools?: AgentToolConfigV3_52_0[];
1804
- history?: AgentChatHistoryConfigV3_52_0;
1805
1811
  options?: AgentGenerateOptionsV3_52_0;
1806
1812
  }
1807
- export interface AgentChatHistoryRetainV3_52_0 {
1808
- type: 'retain';
1809
- }
1810
- export interface AgentChatHistorySummarizeV3_52_0 {
1811
- type: 'summarize';
1812
- toolCalls: 'retain' | 'clear';
1813
- }
1814
- export interface AgentChatHistoryClearV3_52_0 {
1815
- type: 'clear';
1816
- }
1817
1813
  export interface AgentStateSessionMemoryLocationContentV3_52_0 {
1818
1814
  type: 'content';
1819
1815
  memoryPath?: string;
@@ -1832,6 +1828,34 @@ export interface AgentStateSessionMemoryLocationStaticValueV3_52_0 {
1832
1828
  export interface AgentGuardV3_52_0 {
1833
1829
  guardId: GuardIDV3_52_0;
1834
1830
  }
1831
+ export interface HistoryStrategyMapV3_52_0 {
1832
+ [k: string]: HistoryStrategyV3_52_0;
1833
+ }
1834
+ /**
1835
+ * This interface was referenced by `HistoryStrategyMapV3_52_0`'s JSON-Schema definition
1836
+ * via the `patternProperty` "^[0-9A-Za-z_]+$".
1837
+ */
1838
+ export interface HistoryStrategyV3_52_0 {
1839
+ name: string;
1840
+ variables?: VariablesV3_52_01;
1841
+ filter?: HistoryStrategyFilterV3_52_0;
1842
+ execution: HistoryStrategyExecutionV3_52_0;
1843
+ }
1844
+ export interface HistoryStrategyFilterV3_52_0 {
1845
+ toolCalls?: 'retain' | 'clear';
1846
+ }
1847
+ export interface HistoryStrategyExecutionReplaceV3_52_0 {
1848
+ type: 'replace';
1849
+ template: string;
1850
+ }
1851
+ export interface HistoryStrategyExecutionSummarizeV3_52_0 {
1852
+ type: 'generate';
1853
+ service: string;
1854
+ model: string;
1855
+ systemPrompt: string;
1856
+ tools?: AgentToolConfigV3_52_0[];
1857
+ options?: AgentGenerateOptionsV3_52_0;
1858
+ }
1835
1859
  export interface GuardMapV3_52_0 {
1836
1860
  [k: string]: GuardJSONV3_52_0;
1837
1861
  }
@@ -1844,6 +1868,7 @@ export interface GuardMapV3_52_0 {
1844
1868
  export interface GuardJSONV3_52_0 {
1845
1869
  name: NameV3_52_0;
1846
1870
  description?: DescriptionV3_52_0;
1871
+ enabled?: EnabledV3_52_0;
1847
1872
  guardrailIdentifier?: GuardrailIdentifierV3_52_0;
1848
1873
  guardrailVersion?: GuardrailVersionV3_52_0;
1849
1874
  blockedInputMessaging?: BlockedInputMessagingV3_52_0;
@@ -1886,6 +1911,9 @@ export interface SensitiveInformationPolicyV3_52_0 {
1886
1911
  export interface ContextualGroundingPolicyV3_52_0 {
1887
1912
  filtersConfig: FilterV3_52_01;
1888
1913
  }
1914
+ export interface MCPServerConfigurationV3_52_0 {
1915
+ tools?: ToolMapV3_52_0;
1916
+ }
1889
1917
  export interface ToolMapV3_52_0 {
1890
1918
  [k: string]: ToolJSONV3_52_0;
1891
1919
  }
@@ -356,10 +356,11 @@ export type RemovePropertyKeyPatternsV3_53_0 = MinimatchPatternV3_53_0[];
356
356
  * Remove Markdown formatting from the LLM response
357
357
  */
358
358
  export type StripMarkdownV3_53_0 = boolean;
359
- export type AgentChatHistoryConfigV3_53_0 = AgentChatHistoryRetainV3_53_0 | AgentChatHistorySummarizeV3_53_0 | AgentChatHistoryClearV3_53_0;
360
359
  export type AgentStateSessionMemoryLocationV3_53_0 = AgentStateSessionMemoryLocationContentV3_53_0 | AgentStateSessionMemoryLocationArtifactV3_53_0 | AgentStateSessionMemoryLocationStaticValueV3_53_0;
361
360
  export type AgentStateSessionMemoryV3_53_0 = AgentStateSessionMemoryLocationV3_53_0[];
362
361
  export type GuardIDV3_53_0 = string;
362
+ export type VariablesV3_53_01 = AgentVariableV3_53_0[];
363
+ export type HistoryStrategyExecutionV3_53_0 = HistoryStrategyExecutionReplaceV3_53_0 | HistoryStrategyExecutionSummarizeV3_53_0;
363
364
  /**
364
365
  * The human-readable name of the Guard.
365
366
  */
@@ -368,6 +369,10 @@ export type NameV3_53_0 = string;
368
369
  * A description of the Guard.
369
370
  */
370
371
  export type DescriptionV3_53_0 = string;
372
+ /**
373
+ * Guards will not run unless enabled.
374
+ */
375
+ export type EnabledV3_53_0 = boolean;
371
376
  /**
372
377
  * The remote id of the Guardrail.
373
378
  */
@@ -1725,7 +1730,7 @@ export interface ShapeSchemaAnyV3_53_0 {
1725
1730
  export interface AIExperimentalV3_53_0 {
1726
1731
  agents?: AgentMapV3_53_0;
1727
1732
  guards?: GuardMapV3_53_0;
1728
- tools?: ToolMapV3_53_0;
1733
+ mcp?: MCPServerConfigurationV3_53_0;
1729
1734
  }
1730
1735
  export interface AgentMapV3_53_0 {
1731
1736
  [k: string]: AgentJSONV3_53_0;
@@ -1744,6 +1749,7 @@ export interface AgentJSONV3_53_0 {
1744
1749
  start: AgentStartV3_53_0;
1745
1750
  states: AgentStatesV3_53_0;
1746
1751
  guards?: AgentGuardV3_53_0[];
1752
+ historyStrategies?: HistoryStrategyMapV3_53_0;
1747
1753
  }
1748
1754
  export interface AgentAPIChatV3_53_0 {
1749
1755
  type: 'chat';
@@ -1781,6 +1787,7 @@ export interface AgentTransitionStepV3_53_0 {
1781
1787
  suspend?: boolean;
1782
1788
  condition?: string;
1783
1789
  limit?: number;
1790
+ historyStrategy?: string;
1784
1791
  }
1785
1792
  /**
1786
1793
  * States that are traversed during the execution of an agent.
@@ -1882,19 +1889,8 @@ export interface AgentExecutionChatV3_53_0 {
1882
1889
  input: AgentAIStateInputV3_53_0;
1883
1890
  artifact?: string;
1884
1891
  tools?: AgentToolConfigV3_53_0[];
1885
- history?: AgentChatHistoryConfigV3_53_0;
1886
1892
  options?: AgentGenerateOptionsV3_53_0;
1887
1893
  }
1888
- export interface AgentChatHistoryRetainV3_53_0 {
1889
- type: 'retain';
1890
- }
1891
- export interface AgentChatHistorySummarizeV3_53_0 {
1892
- type: 'summarize';
1893
- toolCalls: 'retain' | 'clear';
1894
- }
1895
- export interface AgentChatHistoryClearV3_53_0 {
1896
- type: 'clear';
1897
- }
1898
1894
  export interface AgentStateSessionMemoryLocationContentV3_53_0 {
1899
1895
  type: 'content';
1900
1896
  memoryPath?: string;
@@ -1913,6 +1909,34 @@ export interface AgentStateSessionMemoryLocationStaticValueV3_53_0 {
1913
1909
  export interface AgentGuardV3_53_0 {
1914
1910
  guardId: GuardIDV3_53_0;
1915
1911
  }
1912
+ export interface HistoryStrategyMapV3_53_0 {
1913
+ [k: string]: HistoryStrategyV3_53_0;
1914
+ }
1915
+ /**
1916
+ * This interface was referenced by `HistoryStrategyMapV3_53_0`'s JSON-Schema definition
1917
+ * via the `patternProperty` "^[0-9A-Za-z_]+$".
1918
+ */
1919
+ export interface HistoryStrategyV3_53_0 {
1920
+ name: string;
1921
+ variables?: VariablesV3_53_01;
1922
+ filter?: HistoryStrategyFilterV3_53_0;
1923
+ execution: HistoryStrategyExecutionV3_53_0;
1924
+ }
1925
+ export interface HistoryStrategyFilterV3_53_0 {
1926
+ toolCalls?: 'retain' | 'clear';
1927
+ }
1928
+ export interface HistoryStrategyExecutionReplaceV3_53_0 {
1929
+ type: 'replace';
1930
+ template: string;
1931
+ }
1932
+ export interface HistoryStrategyExecutionSummarizeV3_53_0 {
1933
+ type: 'generate';
1934
+ service: string;
1935
+ model: string;
1936
+ systemPrompt: string;
1937
+ tools?: AgentToolConfigV3_53_0[];
1938
+ options?: AgentGenerateOptionsV3_53_0;
1939
+ }
1916
1940
  export interface GuardMapV3_53_0 {
1917
1941
  [k: string]: GuardJSONV3_53_0;
1918
1942
  }
@@ -1925,6 +1949,7 @@ export interface GuardMapV3_53_0 {
1925
1949
  export interface GuardJSONV3_53_0 {
1926
1950
  name: NameV3_53_0;
1927
1951
  description?: DescriptionV3_53_0;
1952
+ enabled?: EnabledV3_53_0;
1928
1953
  guardrailIdentifier?: GuardrailIdentifierV3_53_0;
1929
1954
  guardrailVersion?: GuardrailVersionV3_53_0;
1930
1955
  blockedInputMessaging?: BlockedInputMessagingV3_53_0;
@@ -1967,6 +1992,9 @@ export interface SensitiveInformationPolicyV3_53_0 {
1967
1992
  export interface ContextualGroundingPolicyV3_53_0 {
1968
1993
  filtersConfig: FilterV3_53_01;
1969
1994
  }
1995
+ export interface MCPServerConfigurationV3_53_0 {
1996
+ tools?: ToolMapV3_53_0;
1997
+ }
1970
1998
  export interface ToolMapV3_53_0 {
1971
1999
  [k: string]: ToolJSONV3_53_0;
1972
2000
  }
@@ -360,10 +360,11 @@ export type RemovePropertyKeyPatternsV3_54_0 = MinimatchPatternV3_54_0[];
360
360
  * Remove Markdown formatting from the LLM response
361
361
  */
362
362
  export type StripMarkdownV3_54_0 = boolean;
363
- export type AgentChatHistoryConfigV3_54_0 = AgentChatHistoryRetainV3_54_0 | AgentChatHistorySummarizeV3_54_0 | AgentChatHistoryClearV3_54_0;
364
363
  export type AgentStateSessionMemoryLocationV3_54_0 = AgentStateSessionMemoryLocationContentV3_54_0 | AgentStateSessionMemoryLocationArtifactV3_54_0 | AgentStateSessionMemoryLocationStaticValueV3_54_0;
365
364
  export type AgentStateSessionMemoryV3_54_0 = AgentStateSessionMemoryLocationV3_54_0[];
366
365
  export type GuardIDV3_54_0 = string;
366
+ export type VariablesV3_54_01 = AgentVariableV3_54_0[];
367
+ export type HistoryStrategyExecutionV3_54_0 = HistoryStrategyExecutionReplaceV3_54_0 | HistoryStrategyExecutionSummarizeV3_54_0;
367
368
  /**
368
369
  * The human-readable name of the Guard.
369
370
  */
@@ -372,6 +373,10 @@ export type NameV3_54_0 = string;
372
373
  * A description of the Guard.
373
374
  */
374
375
  export type DescriptionV3_54_0 = string;
376
+ /**
377
+ * Guards will not run unless enabled.
378
+ */
379
+ export type EnabledV3_54_0 = boolean;
375
380
  /**
376
381
  * The remote id of the Guardrail.
377
382
  */
@@ -1744,7 +1749,7 @@ export interface ShapeSchemaAnyV3_54_0 {
1744
1749
  export interface AIExperimentalV3_54_0 {
1745
1750
  agents?: AgentMapV3_54_0;
1746
1751
  guards?: GuardMapV3_54_0;
1747
- tools?: ToolMapV3_54_0;
1752
+ mcp?: MCPServerConfigurationV3_54_0;
1748
1753
  }
1749
1754
  export interface AgentMapV3_54_0 {
1750
1755
  [k: string]: AgentJSONV3_54_0;
@@ -1763,6 +1768,7 @@ export interface AgentJSONV3_54_0 {
1763
1768
  start: AgentStartV3_54_0;
1764
1769
  states: AgentStatesV3_54_0;
1765
1770
  guards?: AgentGuardV3_54_0[];
1771
+ historyStrategies?: HistoryStrategyMapV3_54_0;
1766
1772
  }
1767
1773
  export interface AgentAPIChatV3_54_0 {
1768
1774
  type: 'chat';
@@ -1800,6 +1806,7 @@ export interface AgentTransitionStepV3_54_0 {
1800
1806
  suspend?: boolean;
1801
1807
  condition?: string;
1802
1808
  limit?: number;
1809
+ historyStrategy?: string;
1803
1810
  }
1804
1811
  /**
1805
1812
  * States that are traversed during the execution of an agent.
@@ -1901,19 +1908,8 @@ export interface AgentExecutionChatV3_54_0 {
1901
1908
  input: AgentAIStateInputV3_54_0;
1902
1909
  artifact?: string;
1903
1910
  tools?: AgentToolConfigV3_54_0[];
1904
- history?: AgentChatHistoryConfigV3_54_0;
1905
1911
  options?: AgentGenerateOptionsV3_54_0;
1906
1912
  }
1907
- export interface AgentChatHistoryRetainV3_54_0 {
1908
- type: 'retain';
1909
- }
1910
- export interface AgentChatHistorySummarizeV3_54_0 {
1911
- type: 'summarize';
1912
- toolCalls: 'retain' | 'clear';
1913
- }
1914
- export interface AgentChatHistoryClearV3_54_0 {
1915
- type: 'clear';
1916
- }
1917
1913
  export interface AgentStateSessionMemoryLocationContentV3_54_0 {
1918
1914
  type: 'content';
1919
1915
  memoryPath?: string;
@@ -1932,6 +1928,34 @@ export interface AgentStateSessionMemoryLocationStaticValueV3_54_0 {
1932
1928
  export interface AgentGuardV3_54_0 {
1933
1929
  guardId: GuardIDV3_54_0;
1934
1930
  }
1931
+ export interface HistoryStrategyMapV3_54_0 {
1932
+ [k: string]: HistoryStrategyV3_54_0;
1933
+ }
1934
+ /**
1935
+ * This interface was referenced by `HistoryStrategyMapV3_54_0`'s JSON-Schema definition
1936
+ * via the `patternProperty` "^[0-9A-Za-z_]+$".
1937
+ */
1938
+ export interface HistoryStrategyV3_54_0 {
1939
+ name: string;
1940
+ variables?: VariablesV3_54_01;
1941
+ filter?: HistoryStrategyFilterV3_54_0;
1942
+ execution: HistoryStrategyExecutionV3_54_0;
1943
+ }
1944
+ export interface HistoryStrategyFilterV3_54_0 {
1945
+ toolCalls?: 'retain' | 'clear';
1946
+ }
1947
+ export interface HistoryStrategyExecutionReplaceV3_54_0 {
1948
+ type: 'replace';
1949
+ template: string;
1950
+ }
1951
+ export interface HistoryStrategyExecutionSummarizeV3_54_0 {
1952
+ type: 'generate';
1953
+ service: string;
1954
+ model: string;
1955
+ systemPrompt: string;
1956
+ tools?: AgentToolConfigV3_54_0[];
1957
+ options?: AgentGenerateOptionsV3_54_0;
1958
+ }
1935
1959
  export interface GuardMapV3_54_0 {
1936
1960
  [k: string]: GuardJSONV3_54_0;
1937
1961
  }
@@ -1944,6 +1968,7 @@ export interface GuardMapV3_54_0 {
1944
1968
  export interface GuardJSONV3_54_0 {
1945
1969
  name: NameV3_54_0;
1946
1970
  description?: DescriptionV3_54_0;
1971
+ enabled?: EnabledV3_54_0;
1947
1972
  guardrailIdentifier?: GuardrailIdentifierV3_54_0;
1948
1973
  guardrailVersion?: GuardrailVersionV3_54_0;
1949
1974
  blockedInputMessaging?: BlockedInputMessagingV3_54_0;
@@ -1986,6 +2011,9 @@ export interface SensitiveInformationPolicyV3_54_0 {
1986
2011
  export interface ContextualGroundingPolicyV3_54_0 {
1987
2012
  filtersConfig: FilterV3_54_01;
1988
2013
  }
2014
+ export interface MCPServerConfigurationV3_54_0 {
2015
+ tools?: ToolMapV3_54_0;
2016
+ }
1989
2017
  export interface ToolMapV3_54_0 {
1990
2018
  [k: string]: ToolJSONV3_54_0;
1991
2019
  }
@@ -360,10 +360,11 @@ export type RemovePropertyKeyPatternsV3_55_0 = MinimatchPatternV3_55_0[];
360
360
  * Remove Markdown formatting from the LLM response
361
361
  */
362
362
  export type StripMarkdownV3_55_0 = boolean;
363
- export type AgentChatHistoryConfigV3_55_0 = AgentChatHistoryRetainV3_55_0 | AgentChatHistorySummarizeV3_55_0 | AgentChatHistoryClearV3_55_0;
364
363
  export type AgentStateSessionMemoryLocationV3_55_0 = AgentStateSessionMemoryLocationContentV3_55_0 | AgentStateSessionMemoryLocationArtifactV3_55_0 | AgentStateSessionMemoryLocationStaticValueV3_55_0;
365
364
  export type AgentStateSessionMemoryV3_55_0 = AgentStateSessionMemoryLocationV3_55_0[];
366
365
  export type GuardIDV3_55_0 = string;
366
+ export type VariablesV3_55_01 = AgentVariableV3_55_0[];
367
+ export type HistoryStrategyExecutionV3_55_0 = HistoryStrategyExecutionReplaceV3_55_0 | HistoryStrategyExecutionSummarizeV3_55_0;
367
368
  /**
368
369
  * The human-readable name of the Guard.
369
370
  */
@@ -372,6 +373,10 @@ export type NameV3_55_0 = string;
372
373
  * A description of the Guard.
373
374
  */
374
375
  export type DescriptionV3_55_0 = string;
376
+ /**
377
+ * Guards will not run unless enabled.
378
+ */
379
+ export type EnabledV3_55_0 = boolean;
375
380
  /**
376
381
  * The remote id of the Guardrail.
377
382
  */
@@ -1744,7 +1749,7 @@ export interface ShapeSchemaAnyV3_55_0 {
1744
1749
  export interface AIExperimentalV3_55_0 {
1745
1750
  agents?: AgentMapV3_55_0;
1746
1751
  guards?: GuardMapV3_55_0;
1747
- tools?: ToolMapV3_55_0;
1752
+ mcp?: MCPServerConfigurationV3_55_0;
1748
1753
  }
1749
1754
  export interface AgentMapV3_55_0 {
1750
1755
  [k: string]: AgentJSONV3_55_0;
@@ -1763,6 +1768,7 @@ export interface AgentJSONV3_55_0 {
1763
1768
  start: AgentStartV3_55_0;
1764
1769
  states: AgentStatesV3_55_0;
1765
1770
  guards?: AgentGuardV3_55_0[];
1771
+ historyStrategies?: HistoryStrategyMapV3_55_0;
1766
1772
  }
1767
1773
  export interface AgentAPIChatV3_55_0 {
1768
1774
  type: 'chat';
@@ -1800,6 +1806,7 @@ export interface AgentTransitionStepV3_55_0 {
1800
1806
  suspend?: boolean;
1801
1807
  condition?: string;
1802
1808
  limit?: number;
1809
+ historyStrategy?: string;
1803
1810
  }
1804
1811
  /**
1805
1812
  * States that are traversed during the execution of an agent.
@@ -1901,19 +1908,8 @@ export interface AgentExecutionChatV3_55_0 {
1901
1908
  input: AgentAIStateInputV3_55_0;
1902
1909
  artifact?: string;
1903
1910
  tools?: AgentToolConfigV3_55_0[];
1904
- history?: AgentChatHistoryConfigV3_55_0;
1905
1911
  options?: AgentGenerateOptionsV3_55_0;
1906
1912
  }
1907
- export interface AgentChatHistoryRetainV3_55_0 {
1908
- type: 'retain';
1909
- }
1910
- export interface AgentChatHistorySummarizeV3_55_0 {
1911
- type: 'summarize';
1912
- toolCalls: 'retain' | 'clear';
1913
- }
1914
- export interface AgentChatHistoryClearV3_55_0 {
1915
- type: 'clear';
1916
- }
1917
1913
  export interface AgentStateSessionMemoryLocationContentV3_55_0 {
1918
1914
  type: 'content';
1919
1915
  memoryPath?: string;
@@ -1932,6 +1928,34 @@ export interface AgentStateSessionMemoryLocationStaticValueV3_55_0 {
1932
1928
  export interface AgentGuardV3_55_0 {
1933
1929
  guardId: GuardIDV3_55_0;
1934
1930
  }
1931
+ export interface HistoryStrategyMapV3_55_0 {
1932
+ [k: string]: HistoryStrategyV3_55_0;
1933
+ }
1934
+ /**
1935
+ * This interface was referenced by `HistoryStrategyMapV3_55_0`'s JSON-Schema definition
1936
+ * via the `patternProperty` "^[0-9A-Za-z_]+$".
1937
+ */
1938
+ export interface HistoryStrategyV3_55_0 {
1939
+ name: string;
1940
+ variables?: VariablesV3_55_01;
1941
+ filter?: HistoryStrategyFilterV3_55_0;
1942
+ execution: HistoryStrategyExecutionV3_55_0;
1943
+ }
1944
+ export interface HistoryStrategyFilterV3_55_0 {
1945
+ toolCalls?: 'retain' | 'clear';
1946
+ }
1947
+ export interface HistoryStrategyExecutionReplaceV3_55_0 {
1948
+ type: 'replace';
1949
+ template: string;
1950
+ }
1951
+ export interface HistoryStrategyExecutionSummarizeV3_55_0 {
1952
+ type: 'generate';
1953
+ service: string;
1954
+ model: string;
1955
+ systemPrompt: string;
1956
+ tools?: AgentToolConfigV3_55_0[];
1957
+ options?: AgentGenerateOptionsV3_55_0;
1958
+ }
1935
1959
  export interface GuardMapV3_55_0 {
1936
1960
  [k: string]: GuardJSONV3_55_0;
1937
1961
  }
@@ -1944,6 +1968,7 @@ export interface GuardMapV3_55_0 {
1944
1968
  export interface GuardJSONV3_55_0 {
1945
1969
  name: NameV3_55_0;
1946
1970
  description?: DescriptionV3_55_0;
1971
+ enabled?: EnabledV3_55_0;
1947
1972
  guardrailIdentifier?: GuardrailIdentifierV3_55_0;
1948
1973
  guardrailVersion?: GuardrailVersionV3_55_0;
1949
1974
  blockedInputMessaging?: BlockedInputMessagingV3_55_0;
@@ -1986,6 +2011,9 @@ export interface SensitiveInformationPolicyV3_55_0 {
1986
2011
  export interface ContextualGroundingPolicyV3_55_0 {
1987
2012
  filtersConfig: FilterV3_55_01;
1988
2013
  }
2014
+ export interface MCPServerConfigurationV3_55_0 {
2015
+ tools?: ToolMapV3_55_0;
2016
+ }
1989
2017
  export interface ToolMapV3_55_0 {
1990
2018
  [k: string]: ToolJSONV3_55_0;
1991
2019
  }