@letta-ai/letta-client 1.3.3 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/package.json +1 -1
  3. package/resources/agents/agents.d.mts +151 -3
  4. package/resources/agents/agents.d.mts.map +1 -1
  5. package/resources/agents/agents.d.ts +151 -3
  6. package/resources/agents/agents.d.ts.map +1 -1
  7. package/resources/agents/agents.js.map +1 -1
  8. package/resources/agents/agents.mjs.map +1 -1
  9. package/resources/agents/index.d.mts +1 -1
  10. package/resources/agents/index.d.mts.map +1 -1
  11. package/resources/agents/index.d.ts +1 -1
  12. package/resources/agents/index.d.ts.map +1 -1
  13. package/resources/agents/index.js.map +1 -1
  14. package/resources/agents/index.mjs.map +1 -1
  15. package/resources/agents/messages.d.mts +63 -2
  16. package/resources/agents/messages.d.mts.map +1 -1
  17. package/resources/agents/messages.d.ts +63 -2
  18. package/resources/agents/messages.d.ts.map +1 -1
  19. package/resources/agents/messages.js +2 -1
  20. package/resources/agents/messages.js.map +1 -1
  21. package/resources/agents/messages.mjs +2 -1
  22. package/resources/agents/messages.mjs.map +1 -1
  23. package/resources/messages.d.mts +103 -2
  24. package/resources/messages.d.mts.map +1 -1
  25. package/resources/messages.d.ts +103 -2
  26. package/resources/messages.d.ts.map +1 -1
  27. package/resources/messages.js.map +1 -1
  28. package/resources/messages.mjs.map +1 -1
  29. package/resources/models/models.d.mts +2 -2
  30. package/resources/models/models.d.mts.map +1 -1
  31. package/resources/models/models.d.ts +2 -2
  32. package/resources/models/models.d.ts.map +1 -1
  33. package/resources/runs/runs.d.mts +1 -1
  34. package/resources/runs/runs.d.mts.map +1 -1
  35. package/resources/runs/runs.d.ts +1 -1
  36. package/resources/runs/runs.d.ts.map +1 -1
  37. package/resources/runs/runs.js.map +1 -1
  38. package/resources/runs/runs.mjs.map +1 -1
  39. package/src/resources/agents/agents.ts +208 -1
  40. package/src/resources/agents/index.ts +1 -0
  41. package/src/resources/agents/messages.ts +87 -1
  42. package/src/resources/messages.ts +126 -12
  43. package/src/resources/models/models.ts +2 -2
  44. package/src/resources/runs/runs.ts +3 -1
  45. package/src/version.ts +1 -1
  46. package/version.d.mts +1 -1
  47. package/version.d.ts +1 -1
  48. package/version.js +1 -1
  49. package/version.mjs +1 -1
@@ -75,6 +75,7 @@ import {
75
75
  Message,
76
76
  MessageCancelParams,
77
77
  MessageCancelResponse,
78
+ MessageCompactParams,
78
79
  MessageCreateAsyncParams,
79
80
  MessageCreateParams,
80
81
  MessageCreateParamsNonStreaming,
@@ -359,6 +360,15 @@ export interface AgentState {
359
360
  */
360
361
  base_template_id?: string | null;
361
362
 
363
+ /**
364
+ * Configuration for conversation compaction / summarization.
365
+ *
366
+ * `model` is the only required user-facing field – it specifies the summarizer
367
+ * model handle (e.g. `"openai/gpt-4o-mini"`). Per-model settings (temperature, max
368
+ * tokens, etc.) are derived from the default configuration for that handle.
369
+ */
370
+ compaction_settings?: AgentState.CompactionSettings | null;
371
+
362
372
  /**
363
373
  * The timestamp when the object was created.
364
374
  */
@@ -745,6 +755,64 @@ export namespace AgentState {
745
755
  */
746
756
  vector_db_provider?: ArchivesArchivesAPI.VectorDBProvider;
747
757
  }
758
+
759
+ /**
760
+ * Configuration for conversation compaction / summarization.
761
+ *
762
+ * `model` is the only required user-facing field – it specifies the summarizer
763
+ * model handle (e.g. `"openai/gpt-4o-mini"`). Per-model settings (temperature, max
764
+ * tokens, etc.) are derived from the default configuration for that handle.
765
+ */
766
+ export interface CompactionSettings {
767
+ /**
768
+ * Model handle to use for summarization (format: provider/model-name).
769
+ */
770
+ model: string;
771
+
772
+ /**
773
+ * The maximum length of the summary in characters. If none, no clipping is
774
+ * performed.
775
+ */
776
+ clip_chars?: number | null;
777
+
778
+ /**
779
+ * The type of summarization technique use.
780
+ */
781
+ mode?: 'all' | 'sliding_window';
782
+
783
+ /**
784
+ * Optional model settings used to override defaults for the summarizer model.
785
+ */
786
+ model_settings?:
787
+ | AgentsAPI.OpenAIModelSettings
788
+ | AgentsAPI.AnthropicModelSettings
789
+ | AgentsAPI.GoogleAIModelSettings
790
+ | AgentsAPI.GoogleVertexModelSettings
791
+ | AgentsAPI.AzureModelSettings
792
+ | AgentsAPI.XaiModelSettings
793
+ | AgentsAPI.GroqModelSettings
794
+ | AgentsAPI.DeepseekModelSettings
795
+ | AgentsAPI.TogetherModelSettings
796
+ | AgentsAPI.BedrockModelSettings
797
+ | null;
798
+
799
+ /**
800
+ * The prompt to use for summarization.
801
+ */
802
+ prompt?: string;
803
+
804
+ /**
805
+ * Whether to include an acknowledgement post-prompt (helps prevent non-summary
806
+ * outputs).
807
+ */
808
+ prompt_acknowledgement?: boolean;
809
+
810
+ /**
811
+ * The percentage of the context window to keep post-summarization (only used in
812
+ * sliding window mode).
813
+ */
814
+ sliding_window_percentage?: number;
815
+ }
748
816
  }
749
817
 
750
818
  /**
@@ -1312,7 +1380,7 @@ export namespace OpenAIModelSettings {
1312
1380
  /**
1313
1381
  * The reasoning effort to use when generating text reasoning models
1314
1382
  */
1315
- reasoning_effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high';
1383
+ reasoning_effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
1316
1384
  }
1317
1385
  }
1318
1386
 
@@ -1494,6 +1562,15 @@ export interface AgentCreateParams {
1494
1562
  */
1495
1563
  block_ids?: Array<string> | null;
1496
1564
 
1565
+ /**
1566
+ * Configuration for conversation compaction / summarization.
1567
+ *
1568
+ * `model` is the only required user-facing field – it specifies the summarizer
1569
+ * model handle (e.g. `"openai/gpt-4o-mini"`). Per-model settings (temperature, max
1570
+ * tokens, etc.) are derived from the default configuration for that handle.
1571
+ */
1572
+ compaction_settings?: AgentCreateParams.CompactionSettings | null;
1573
+
1497
1574
  /**
1498
1575
  * The context window limit used by the agent.
1499
1576
  */
@@ -1764,6 +1841,66 @@ export interface AgentCreateParams {
1764
1841
  tools?: Array<string> | null;
1765
1842
  }
1766
1843
 
1844
+ export namespace AgentCreateParams {
1845
+ /**
1846
+ * Configuration for conversation compaction / summarization.
1847
+ *
1848
+ * `model` is the only required user-facing field – it specifies the summarizer
1849
+ * model handle (e.g. `"openai/gpt-4o-mini"`). Per-model settings (temperature, max
1850
+ * tokens, etc.) are derived from the default configuration for that handle.
1851
+ */
1852
+ export interface CompactionSettings {
1853
+ /**
1854
+ * Model handle to use for summarization (format: provider/model-name).
1855
+ */
1856
+ model: string;
1857
+
1858
+ /**
1859
+ * The maximum length of the summary in characters. If none, no clipping is
1860
+ * performed.
1861
+ */
1862
+ clip_chars?: number | null;
1863
+
1864
+ /**
1865
+ * The type of summarization technique use.
1866
+ */
1867
+ mode?: 'all' | 'sliding_window';
1868
+
1869
+ /**
1870
+ * Optional model settings used to override defaults for the summarizer model.
1871
+ */
1872
+ model_settings?:
1873
+ | AgentsAPI.OpenAIModelSettings
1874
+ | AgentsAPI.AnthropicModelSettings
1875
+ | AgentsAPI.GoogleAIModelSettings
1876
+ | AgentsAPI.GoogleVertexModelSettings
1877
+ | AgentsAPI.AzureModelSettings
1878
+ | AgentsAPI.XaiModelSettings
1879
+ | AgentsAPI.GroqModelSettings
1880
+ | AgentsAPI.DeepseekModelSettings
1881
+ | AgentsAPI.TogetherModelSettings
1882
+ | AgentsAPI.BedrockModelSettings
1883
+ | null;
1884
+
1885
+ /**
1886
+ * The prompt to use for summarization.
1887
+ */
1888
+ prompt?: string;
1889
+
1890
+ /**
1891
+ * Whether to include an acknowledgement post-prompt (helps prevent non-summary
1892
+ * outputs).
1893
+ */
1894
+ prompt_acknowledgement?: boolean;
1895
+
1896
+ /**
1897
+ * The percentage of the context window to keep post-summarization (only used in
1898
+ * sliding window mode).
1899
+ */
1900
+ sliding_window_percentage?: number;
1901
+ }
1902
+ }
1903
+
1767
1904
  export interface AgentRetrieveParams {
1768
1905
  /**
1769
1906
  * Specify which relational fields to include in the response. No relationships are
@@ -1799,6 +1936,15 @@ export interface AgentUpdateParams {
1799
1936
  */
1800
1937
  block_ids?: Array<string> | null;
1801
1938
 
1939
+ /**
1940
+ * Configuration for conversation compaction / summarization.
1941
+ *
1942
+ * `model` is the only required user-facing field – it specifies the summarizer
1943
+ * model handle (e.g. `"openai/gpt-4o-mini"`). Per-model settings (temperature, max
1944
+ * tokens, etc.) are derived from the default configuration for that handle.
1945
+ */
1946
+ compaction_settings?: AgentUpdateParams.CompactionSettings | null;
1947
+
1802
1948
  /**
1803
1949
  * The context window limit used by the agent.
1804
1950
  */
@@ -2005,6 +2151,66 @@ export interface AgentUpdateParams {
2005
2151
  > | null;
2006
2152
  }
2007
2153
 
2154
+ export namespace AgentUpdateParams {
2155
+ /**
2156
+ * Configuration for conversation compaction / summarization.
2157
+ *
2158
+ * `model` is the only required user-facing field – it specifies the summarizer
2159
+ * model handle (e.g. `"openai/gpt-4o-mini"`). Per-model settings (temperature, max
2160
+ * tokens, etc.) are derived from the default configuration for that handle.
2161
+ */
2162
+ export interface CompactionSettings {
2163
+ /**
2164
+ * Model handle to use for summarization (format: provider/model-name).
2165
+ */
2166
+ model: string;
2167
+
2168
+ /**
2169
+ * The maximum length of the summary in characters. If none, no clipping is
2170
+ * performed.
2171
+ */
2172
+ clip_chars?: number | null;
2173
+
2174
+ /**
2175
+ * The type of summarization technique use.
2176
+ */
2177
+ mode?: 'all' | 'sliding_window';
2178
+
2179
+ /**
2180
+ * Optional model settings used to override defaults for the summarizer model.
2181
+ */
2182
+ model_settings?:
2183
+ | AgentsAPI.OpenAIModelSettings
2184
+ | AgentsAPI.AnthropicModelSettings
2185
+ | AgentsAPI.GoogleAIModelSettings
2186
+ | AgentsAPI.GoogleVertexModelSettings
2187
+ | AgentsAPI.AzureModelSettings
2188
+ | AgentsAPI.XaiModelSettings
2189
+ | AgentsAPI.GroqModelSettings
2190
+ | AgentsAPI.DeepseekModelSettings
2191
+ | AgentsAPI.TogetherModelSettings
2192
+ | AgentsAPI.BedrockModelSettings
2193
+ | null;
2194
+
2195
+ /**
2196
+ * The prompt to use for summarization.
2197
+ */
2198
+ prompt?: string;
2199
+
2200
+ /**
2201
+ * Whether to include an acknowledgement post-prompt (helps prevent non-summary
2202
+ * outputs).
2203
+ */
2204
+ prompt_acknowledgement?: boolean;
2205
+
2206
+ /**
2207
+ * The percentage of the context window to keep post-summarization (only used in
2208
+ * sliding window mode).
2209
+ */
2210
+ sliding_window_percentage?: number;
2211
+ }
2212
+ }
2213
+
2008
2214
  export interface AgentListParams extends ArrayPageParams {
2009
2215
  /**
2010
2216
  * @deprecated Whether to sort agents oldest to newest (True) or newest to oldest
@@ -2274,6 +2480,7 @@ export declare namespace Agents {
2274
2480
  type MessageCreateParamsStreaming as MessageCreateParamsStreaming,
2275
2481
  type MessageListParams as MessageListParams,
2276
2482
  type MessageCancelParams as MessageCancelParams,
2483
+ type MessageCompactParams as MessageCompactParams,
2277
2484
  type MessageCreateAsyncParams as MessageCreateAsyncParams,
2278
2485
  type MessageResetParams as MessageResetParams,
2279
2486
  type MessageStreamParams as MessageStreamParams,
@@ -131,6 +131,7 @@ export {
131
131
  type MessageCreateParamsStreaming,
132
132
  type MessageListParams,
133
133
  type MessageCancelParams,
134
+ type MessageCompactParams,
134
135
  type MessageCreateAsyncParams,
135
136
  type MessageResetParams,
136
137
  type MessageStreamParams,
@@ -87,8 +87,13 @@ export class Messages extends APIResource {
87
87
  /**
88
88
  * Summarize an agent's conversation history.
89
89
  */
90
- compact(agentID: string, options?: RequestOptions): APIPromise<void> {
90
+ compact(
91
+ agentID: string,
92
+ body: MessageCompactParams | null | undefined = {},
93
+ options?: RequestOptions,
94
+ ): APIPromise<void> {
91
95
  return this._client.post(path`/v1/agents/${agentID}/summarize`, {
96
+ body,
92
97
  ...options,
93
98
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
94
99
  });
@@ -704,9 +709,15 @@ export namespace InternalMessage {
704
709
  }
705
710
  }
706
711
 
712
+ /**
713
+ * A call to a function tool created by the model.
714
+ */
707
715
  export interface ToolCall {
708
716
  id: string;
709
717
 
718
+ /**
719
+ * The function that the model called.
720
+ */
710
721
  function: ToolCall.Function;
711
722
 
712
723
  type: 'function';
@@ -715,6 +726,9 @@ export namespace InternalMessage {
715
726
  }
716
727
 
717
728
  export namespace ToolCall {
729
+ /**
730
+ * The function that the model called.
731
+ */
718
732
  export interface Function {
719
733
  arguments: string;
720
734
 
@@ -1952,6 +1966,77 @@ export interface MessageCancelParams {
1952
1966
  run_ids?: Array<string> | null;
1953
1967
  }
1954
1968
 
1969
+ export interface MessageCompactParams {
1970
+ /**
1971
+ * Configuration for conversation compaction / summarization.
1972
+ *
1973
+ * `model` is the only required user-facing field – it specifies the summarizer
1974
+ * model handle (e.g. `"openai/gpt-4o-mini"`). Per-model settings (temperature, max
1975
+ * tokens, etc.) are derived from the default configuration for that handle.
1976
+ */
1977
+ compaction_settings?: MessageCompactParams.CompactionSettings | null;
1978
+ }
1979
+
1980
+ export namespace MessageCompactParams {
1981
+ /**
1982
+ * Configuration for conversation compaction / summarization.
1983
+ *
1984
+ * `model` is the only required user-facing field – it specifies the summarizer
1985
+ * model handle (e.g. `"openai/gpt-4o-mini"`). Per-model settings (temperature, max
1986
+ * tokens, etc.) are derived from the default configuration for that handle.
1987
+ */
1988
+ export interface CompactionSettings {
1989
+ /**
1990
+ * Model handle to use for summarization (format: provider/model-name).
1991
+ */
1992
+ model: string;
1993
+
1994
+ /**
1995
+ * The maximum length of the summary in characters. If none, no clipping is
1996
+ * performed.
1997
+ */
1998
+ clip_chars?: number | null;
1999
+
2000
+ /**
2001
+ * The type of summarization technique use.
2002
+ */
2003
+ mode?: 'all' | 'sliding_window';
2004
+
2005
+ /**
2006
+ * Optional model settings used to override defaults for the summarizer model.
2007
+ */
2008
+ model_settings?:
2009
+ | AgentsAPI.OpenAIModelSettings
2010
+ | AgentsAPI.AnthropicModelSettings
2011
+ | AgentsAPI.GoogleAIModelSettings
2012
+ | AgentsAPI.GoogleVertexModelSettings
2013
+ | AgentsAPI.AzureModelSettings
2014
+ | AgentsAPI.XaiModelSettings
2015
+ | AgentsAPI.GroqModelSettings
2016
+ | AgentsAPI.DeepseekModelSettings
2017
+ | AgentsAPI.TogetherModelSettings
2018
+ | AgentsAPI.BedrockModelSettings
2019
+ | null;
2020
+
2021
+ /**
2022
+ * The prompt to use for summarization.
2023
+ */
2024
+ prompt?: string;
2025
+
2026
+ /**
2027
+ * Whether to include an acknowledgement post-prompt (helps prevent non-summary
2028
+ * outputs).
2029
+ */
2030
+ prompt_acknowledgement?: boolean;
2031
+
2032
+ /**
2033
+ * The percentage of the context window to keep post-summarization (only used in
2034
+ * sliding window mode).
2035
+ */
2036
+ sliding_window_percentage?: number;
2037
+ }
2038
+ }
2039
+
1955
2040
  export interface MessageCreateAsyncParams {
1956
2041
  /**
1957
2042
  * @deprecated The name of the message argument in the designated message tool.
@@ -2242,6 +2327,7 @@ export declare namespace Messages {
2242
2327
  type MessageCreateParamsStreaming as MessageCreateParamsStreaming,
2243
2328
  type MessageListParams as MessageListParams,
2244
2329
  type MessageCancelParams as MessageCancelParams,
2330
+ type MessageCompactParams as MessageCompactParams,
2245
2331
  type MessageCreateAsyncParams as MessageCreateAsyncParams,
2246
2332
  type MessageResetParams as MessageResetParams,
2247
2333
  type MessageStreamParams as MessageStreamParams,
@@ -1,7 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
- import * as ToolsAPI from './tools';
5
4
  import * as AgentsMessagesAPI from './agents/messages';
6
5
  import { APIPromise } from '../core/api-promise';
7
6
  import { RequestOptions } from '../internal/request-options';
@@ -88,19 +87,134 @@ export interface MessageSearchResult {
88
87
  export type MessageListResponse = Array<AgentsMessagesAPI.Message>;
89
88
 
90
89
  export type MessageSearchResponse = Array<
91
- | AgentsMessagesAPI.SystemMessage
92
- | AgentsMessagesAPI.UserMessage
93
- | AgentsMessagesAPI.ReasoningMessage
94
- | AgentsMessagesAPI.HiddenReasoningMessage
95
- | AgentsMessagesAPI.ToolCallMessage
96
- | ToolsAPI.ToolReturnMessage
97
- | AgentsMessagesAPI.AssistantMessage
98
- | AgentsMessagesAPI.ApprovalRequestMessage
99
- | AgentsMessagesAPI.ApprovalResponseMessage
100
- | AgentsMessagesAPI.SummaryMessage
101
- | AgentsMessagesAPI.EventMessage
90
+ | MessageSearchResponse.SystemMessageListResult
91
+ | MessageSearchResponse.UserMessageListResult
92
+ | MessageSearchResponse.ReasoningMessageListResult
93
+ | MessageSearchResponse.AssistantMessageListResult
102
94
  >;
103
95
 
96
+ export namespace MessageSearchResponse {
97
+ /**
98
+ * System message list result with agent context.
99
+ *
100
+ * Shape is identical to UpdateSystemMessage but includes the owning agent_id and
101
+ * message id.
102
+ */
103
+ export interface SystemMessageListResult {
104
+ /**
105
+ * The message content sent by the system (can be a string or an array of
106
+ * multi-modal content parts)
107
+ */
108
+ content: string;
109
+
110
+ /**
111
+ * The time the message was created in ISO format.
112
+ */
113
+ created_at: string;
114
+
115
+ /**
116
+ * The unique identifier of the message.
117
+ */
118
+ message_id: string;
119
+
120
+ /**
121
+ * The unique identifier of the agent that owns the message.
122
+ */
123
+ agent_id?: string | null;
124
+
125
+ message_type?: 'system_message';
126
+ }
127
+
128
+ /**
129
+ * User message list result with agent context.
130
+ *
131
+ * Shape is identical to UpdateUserMessage but includes the owning agent_id and
132
+ * message id.
133
+ */
134
+ export interface UserMessageListResult {
135
+ /**
136
+ * The message content sent by the user (can be a string or an array of multi-modal
137
+ * content parts)
138
+ */
139
+ content: Array<AgentsMessagesAPI.LettaUserMessageContentUnion> | string;
140
+
141
+ /**
142
+ * The time the message was created in ISO format.
143
+ */
144
+ created_at: string;
145
+
146
+ /**
147
+ * The unique identifier of the message.
148
+ */
149
+ message_id: string;
150
+
151
+ /**
152
+ * The unique identifier of the agent that owns the message.
153
+ */
154
+ agent_id?: string | null;
155
+
156
+ message_type?: 'user_message';
157
+ }
158
+
159
+ /**
160
+ * Reasoning message list result with agent context.
161
+ *
162
+ * Shape is identical to UpdateReasoningMessage but includes the owning agent_id
163
+ * and message id.
164
+ */
165
+ export interface ReasoningMessageListResult {
166
+ /**
167
+ * The time the message was created in ISO format.
168
+ */
169
+ created_at: string;
170
+
171
+ /**
172
+ * The unique identifier of the message.
173
+ */
174
+ message_id: string;
175
+
176
+ reasoning: string;
177
+
178
+ /**
179
+ * The unique identifier of the agent that owns the message.
180
+ */
181
+ agent_id?: string | null;
182
+
183
+ message_type?: 'reasoning_message';
184
+ }
185
+
186
+ /**
187
+ * Assistant message list result with agent context.
188
+ *
189
+ * Shape is identical to UpdateAssistantMessage but includes the owning agent_id
190
+ * and message id.
191
+ */
192
+ export interface AssistantMessageListResult {
193
+ /**
194
+ * The message content sent by the assistant (can be a string or an array of
195
+ * content parts)
196
+ */
197
+ content: Array<AgentsMessagesAPI.LettaAssistantMessageContentUnion> | string;
198
+
199
+ /**
200
+ * The time the message was created in ISO format.
201
+ */
202
+ created_at: string;
203
+
204
+ /**
205
+ * The unique identifier of the message.
206
+ */
207
+ message_id: string;
208
+
209
+ /**
210
+ * The unique identifier of the agent that owns the message.
211
+ */
212
+ agent_id?: string | null;
213
+
214
+ message_type?: 'assistant_message';
215
+ }
216
+ }
217
+
104
218
  export interface MessageListParams {
105
219
  /**
106
220
  * Message ID cursor for pagination. Returns messages that come after this message
@@ -325,7 +325,7 @@ export interface LlmConfig {
325
325
  /**
326
326
  * The reasoning effort to use when generating text reasoning models
327
327
  */
328
- reasoning_effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | null;
328
+ reasoning_effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
329
329
 
330
330
  /**
331
331
  * The response format for the model's output. Supports text, json_object, and
@@ -490,7 +490,7 @@ export interface Model {
490
490
  * @deprecated Deprecated: The reasoning effort to use when generating text
491
491
  * reasoning models.
492
492
  */
493
- reasoning_effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | null;
493
+ reasoning_effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
494
494
 
495
495
  /**
496
496
  * The response format for the model's output. Supports text, json_object, and
@@ -140,10 +140,12 @@ export type StopReasonType =
140
140
  | 'invalid_llm_response'
141
141
  | 'invalid_tool_call'
142
142
  | 'max_steps'
143
+ | 'max_tokens_exceeded'
143
144
  | 'no_tool_call'
144
145
  | 'tool_rule'
145
146
  | 'cancelled'
146
- | 'requires_approval';
147
+ | 'requires_approval'
148
+ | 'context_window_overflow_in_system_prompt';
147
149
 
148
150
  export interface RunListParams extends ArrayPageParams {
149
151
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.3.3'; // x-release-please-version
1
+ export const VERSION = '1.5.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.3.3";
1
+ export declare const VERSION = "1.5.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.3.3";
1
+ export declare const VERSION = "1.5.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.3.3'; // x-release-please-version
4
+ exports.VERSION = '1.5.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.3.3'; // x-release-please-version
1
+ export const VERSION = '1.5.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map