@letta-ai/letta-client 1.0.0-alpha.17 → 1.0.0-alpha.19

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 (140) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +5 -15
  3. package/client.d.mts +20 -20
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +20 -20
  6. package/client.d.ts.map +1 -1
  7. package/client.js +29 -23
  8. package/client.js.map +1 -1
  9. package/client.mjs +29 -23
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agents/agents.d.mts +319 -935
  13. package/resources/agents/agents.d.mts.map +1 -1
  14. package/resources/agents/agents.d.ts +319 -935
  15. package/resources/agents/agents.d.ts.map +1 -1
  16. package/resources/agents/agents.js +12 -4
  17. package/resources/agents/agents.js.map +1 -1
  18. package/resources/agents/agents.mjs +12 -4
  19. package/resources/agents/agents.mjs.map +1 -1
  20. package/resources/agents/archives.d.mts +31 -0
  21. package/resources/agents/archives.d.mts.map +1 -0
  22. package/resources/agents/archives.d.ts +31 -0
  23. package/resources/agents/archives.d.ts.map +1 -0
  24. package/resources/agents/archives.js +24 -0
  25. package/resources/agents/archives.js.map +1 -0
  26. package/resources/agents/archives.mjs +20 -0
  27. package/resources/agents/archives.mjs.map +1 -0
  28. package/resources/agents/folders.d.mts +1 -1
  29. package/resources/agents/folders.d.mts.map +1 -1
  30. package/resources/agents/folders.d.ts +1 -1
  31. package/resources/agents/folders.d.ts.map +1 -1
  32. package/resources/agents/identities.d.mts +31 -0
  33. package/resources/agents/identities.d.mts.map +1 -0
  34. package/resources/agents/identities.d.ts +31 -0
  35. package/resources/agents/identities.d.ts.map +1 -0
  36. package/resources/agents/identities.js +24 -0
  37. package/resources/agents/identities.js.map +1 -0
  38. package/resources/agents/identities.mjs +20 -0
  39. package/resources/agents/identities.mjs.map +1 -0
  40. package/resources/agents/index.d.mts +4 -2
  41. package/resources/agents/index.d.mts.map +1 -1
  42. package/resources/agents/index.d.ts +4 -2
  43. package/resources/agents/index.d.ts.map +1 -1
  44. package/resources/agents/index.js +5 -1
  45. package/resources/agents/index.js.map +1 -1
  46. package/resources/agents/index.mjs +2 -0
  47. package/resources/agents/index.mjs.map +1 -1
  48. package/resources/agents/messages.d.mts +244 -284
  49. package/resources/agents/messages.d.mts.map +1 -1
  50. package/resources/agents/messages.d.ts +244 -284
  51. package/resources/agents/messages.d.ts.map +1 -1
  52. package/resources/agents/messages.js.map +1 -1
  53. package/resources/agents/messages.mjs.map +1 -1
  54. package/resources/archives/archives.d.mts +111 -0
  55. package/resources/archives/archives.d.mts.map +1 -0
  56. package/resources/archives/archives.d.ts +111 -0
  57. package/resources/archives/archives.d.ts.map +1 -0
  58. package/resources/archives/archives.js +50 -0
  59. package/resources/archives/archives.js.map +1 -0
  60. package/resources/archives/archives.mjs +45 -0
  61. package/resources/archives/archives.mjs.map +1 -0
  62. package/resources/archives/index.d.mts +3 -0
  63. package/resources/archives/index.d.mts.map +1 -0
  64. package/resources/archives/index.d.ts +3 -0
  65. package/resources/archives/index.d.ts.map +1 -0
  66. package/resources/archives/index.js +9 -0
  67. package/resources/archives/index.js.map +1 -0
  68. package/resources/archives/index.mjs +4 -0
  69. package/resources/archives/index.mjs.map +1 -0
  70. package/resources/archives/passages.d.mts +112 -0
  71. package/resources/archives/passages.d.mts.map +1 -0
  72. package/resources/archives/passages.d.ts +112 -0
  73. package/resources/archives/passages.d.ts.map +1 -0
  74. package/resources/archives/passages.js +32 -0
  75. package/resources/archives/passages.js.map +1 -0
  76. package/resources/archives/passages.mjs +28 -0
  77. package/resources/archives/passages.mjs.map +1 -0
  78. package/resources/archives.d.mts +1 -106
  79. package/resources/archives.d.mts.map +1 -1
  80. package/resources/archives.d.ts +1 -106
  81. package/resources/archives.d.ts.map +1 -1
  82. package/resources/archives.js +2 -38
  83. package/resources/archives.js.map +1 -1
  84. package/resources/archives.mjs +1 -36
  85. package/resources/archives.mjs.map +1 -1
  86. package/resources/batches/messages.d.mts +3 -3
  87. package/resources/batches/messages.d.mts.map +1 -1
  88. package/resources/batches/messages.d.ts +3 -3
  89. package/resources/batches/messages.d.ts.map +1 -1
  90. package/resources/batches/messages.js.map +1 -1
  91. package/resources/batches/messages.mjs.map +1 -1
  92. package/resources/groups/messages.d.mts +3 -3
  93. package/resources/groups/messages.d.mts.map +1 -1
  94. package/resources/groups/messages.d.ts +3 -3
  95. package/resources/groups/messages.d.ts.map +1 -1
  96. package/resources/groups/messages.js +4 -1
  97. package/resources/groups/messages.js.map +1 -1
  98. package/resources/groups/messages.mjs +4 -1
  99. package/resources/groups/messages.mjs.map +1 -1
  100. package/resources/index.d.mts +2 -2
  101. package/resources/index.d.mts.map +1 -1
  102. package/resources/index.d.ts +2 -2
  103. package/resources/index.d.ts.map +1 -1
  104. package/resources/index.js +1 -1
  105. package/resources/index.js.map +1 -1
  106. package/resources/index.mjs +1 -1
  107. package/resources/index.mjs.map +1 -1
  108. package/resources/runs/messages.d.mts +3 -3
  109. package/resources/runs/messages.d.mts.map +1 -1
  110. package/resources/runs/messages.d.ts +3 -3
  111. package/resources/runs/messages.d.ts.map +1 -1
  112. package/resources/runs/messages.js +4 -1
  113. package/resources/runs/messages.js.map +1 -1
  114. package/resources/runs/messages.mjs +4 -1
  115. package/resources/runs/messages.mjs.map +1 -1
  116. package/resources/steps/steps.d.mts +1 -1
  117. package/resources/steps/steps.d.mts.map +1 -1
  118. package/resources/steps/steps.d.ts +1 -1
  119. package/resources/steps/steps.d.ts.map +1 -1
  120. package/src/client.ts +156 -130
  121. package/src/resources/agents/agents.ts +721 -1527
  122. package/src/resources/agents/archives.ts +51 -0
  123. package/src/resources/agents/folders.ts +1 -1
  124. package/src/resources/agents/identities.ts +51 -0
  125. package/src/resources/agents/index.ts +28 -3
  126. package/src/resources/agents/messages.ts +377 -424
  127. package/src/resources/archives/archives.ts +165 -0
  128. package/src/resources/archives/index.ts +17 -0
  129. package/src/resources/archives/passages.ts +149 -0
  130. package/src/resources/archives.ts +1 -150
  131. package/src/resources/batches/messages.ts +4 -4
  132. package/src/resources/groups/messages.ts +7 -8
  133. package/src/resources/index.ts +11 -1
  134. package/src/resources/runs/messages.ts +7 -8
  135. package/src/resources/steps/steps.ts +1 -1
  136. package/src/version.ts +1 -1
  137. package/version.d.mts +1 -1
  138. package/version.d.ts +1 -1
  139. package/version.js +1 -1
  140. package/version.mjs +1 -1
@@ -0,0 +1,165 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as PassagesAPI from './passages';
5
+ import { PassageCreateParams, PassageCreateResponse, PassageDeleteParams, Passages } from './passages';
6
+ import * as ModelsAPI from '../models/models';
7
+ import { APIPromise } from '../../core/api-promise';
8
+ import { ArrayPage, type ArrayPageParams, PagePromise } from '../../core/pagination';
9
+ import { RequestOptions } from '../../internal/request-options';
10
+ import { path } from '../../internal/utils/path';
11
+
12
+ export class Archives extends APIResource {
13
+ passages: PassagesAPI.Passages = new PassagesAPI.Passages(this._client);
14
+
15
+ /**
16
+ * Create a new archive.
17
+ */
18
+ create(body: ArchiveCreateParams, options?: RequestOptions): APIPromise<Archive> {
19
+ return this._client.post('/v1/archives/', { body, ...options });
20
+ }
21
+
22
+ /**
23
+ * Get a single archive by its ID.
24
+ */
25
+ retrieve(archiveID: string, options?: RequestOptions): APIPromise<Archive> {
26
+ return this._client.get(path`/v1/archives/${archiveID}`, options);
27
+ }
28
+
29
+ /**
30
+ * Get a list of all archives for the current organization with optional filters
31
+ * and pagination.
32
+ */
33
+ list(
34
+ query: ArchiveListParams | null | undefined = {},
35
+ options?: RequestOptions,
36
+ ): PagePromise<ArchivesArrayPage, Archive> {
37
+ return this._client.getAPIList('/v1/archives/', ArrayPage<Archive>, { query, ...options });
38
+ }
39
+
40
+ /**
41
+ * Delete an archive by its ID.
42
+ */
43
+ delete(archiveID: string, options?: RequestOptions): APIPromise<Archive> {
44
+ return this._client.delete(path`/v1/archives/${archiveID}`, options);
45
+ }
46
+
47
+ /**
48
+ * Update an existing archive's name and/or description.
49
+ */
50
+ modify(archiveID: string, body: ArchiveModifyParams, options?: RequestOptions): APIPromise<Archive> {
51
+ return this._client.patch(path`/v1/archives/${archiveID}`, { body, ...options });
52
+ }
53
+ }
54
+
55
+ export type ArchivesArrayPage = ArrayPage<Archive>;
56
+
57
+ /**
58
+ * Representation of an archive - a collection of archival passages that can be
59
+ * shared between agents.
60
+ */
61
+ export interface Archive {
62
+ /**
63
+ * The human-friendly ID of the Archive
64
+ */
65
+ id: string;
66
+
67
+ /**
68
+ * The creation date of the archive
69
+ */
70
+ created_at: string;
71
+
72
+ /**
73
+ * Embedding configuration for passages in this archive
74
+ */
75
+ embedding_config: ModelsAPI.EmbeddingConfig;
76
+
77
+ /**
78
+ * The name of the archive
79
+ */
80
+ name: string;
81
+
82
+ /**
83
+ * The id of the user that made this object.
84
+ */
85
+ created_by_id?: string | null;
86
+
87
+ /**
88
+ * A description of the archive
89
+ */
90
+ description?: string | null;
91
+
92
+ /**
93
+ * The id of the user that made this object.
94
+ */
95
+ last_updated_by_id?: string | null;
96
+
97
+ /**
98
+ * Additional metadata
99
+ */
100
+ metadata?: { [key: string]: unknown } | null;
101
+
102
+ /**
103
+ * The timestamp when the object was last updated.
104
+ */
105
+ updated_at?: string | null;
106
+
107
+ /**
108
+ * The vector database provider used for this archive's passages
109
+ */
110
+ vector_db_provider?: VectorDBProvider;
111
+ }
112
+
113
+ /**
114
+ * Supported vector database providers for archival memory
115
+ */
116
+ export type VectorDBProvider = 'native' | 'tpuf' | 'pinecone';
117
+
118
+ export interface ArchiveCreateParams {
119
+ /**
120
+ * Embedding configuration for the archive
121
+ */
122
+ embedding_config: ModelsAPI.EmbeddingConfig;
123
+
124
+ name: string;
125
+
126
+ description?: string | null;
127
+ }
128
+
129
+ export interface ArchiveListParams extends ArrayPageParams {
130
+ /**
131
+ * Only archives attached to this agent ID
132
+ */
133
+ agent_id?: string | null;
134
+
135
+ /**
136
+ * Filter by archive name (exact match)
137
+ */
138
+ name?: string | null;
139
+ }
140
+
141
+ export interface ArchiveModifyParams {
142
+ description?: string | null;
143
+
144
+ name?: string | null;
145
+ }
146
+
147
+ Archives.Passages = Passages;
148
+
149
+ export declare namespace Archives {
150
+ export {
151
+ type Archive as Archive,
152
+ type VectorDBProvider as VectorDBProvider,
153
+ type ArchivesArrayPage as ArchivesArrayPage,
154
+ type ArchiveCreateParams as ArchiveCreateParams,
155
+ type ArchiveListParams as ArchiveListParams,
156
+ type ArchiveModifyParams as ArchiveModifyParams,
157
+ };
158
+
159
+ export {
160
+ Passages as Passages,
161
+ type PassageCreateResponse as PassageCreateResponse,
162
+ type PassageCreateParams as PassageCreateParams,
163
+ type PassageDeleteParams as PassageDeleteParams,
164
+ };
165
+ }
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Archives,
5
+ type Archive,
6
+ type VectorDBProvider,
7
+ type ArchiveCreateParams,
8
+ type ArchiveListParams,
9
+ type ArchiveModifyParams,
10
+ type ArchivesArrayPage,
11
+ } from './archives';
12
+ export {
13
+ Passages,
14
+ type PassageCreateResponse,
15
+ type PassageCreateParams,
16
+ type PassageDeleteParams,
17
+ } from './passages';
@@ -0,0 +1,149 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as ModelsAPI from '../models/models';
5
+ import { APIPromise } from '../../core/api-promise';
6
+ import { buildHeaders } from '../../internal/headers';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { path } from '../../internal/utils/path';
9
+
10
+ export class Passages extends APIResource {
11
+ /**
12
+ * Create a new passage in an archive.
13
+ *
14
+ * This adds a passage to the archive and creates embeddings for vector storage.
15
+ */
16
+ create(
17
+ archiveID: string,
18
+ body: PassageCreateParams,
19
+ options?: RequestOptions,
20
+ ): APIPromise<PassageCreateResponse> {
21
+ return this._client.post(path`/v1/archives/${archiveID}/passages`, { body, ...options });
22
+ }
23
+
24
+ /**
25
+ * Delete a passage from an archive.
26
+ *
27
+ * This permanently removes the passage from both the database and vector storage
28
+ * (if applicable).
29
+ */
30
+ delete(passageID: string, params: PassageDeleteParams, options?: RequestOptions): APIPromise<void> {
31
+ const { archive_id } = params;
32
+ return this._client.delete(path`/v1/archives/${archive_id}/passages/${passageID}`, {
33
+ ...options,
34
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
35
+ });
36
+ }
37
+ }
38
+
39
+ /**
40
+ * Representation of a passage, which is stored in archival memory.
41
+ */
42
+ export interface PassageCreateResponse {
43
+ /**
44
+ * The embedding of the passage.
45
+ */
46
+ embedding: Array<number> | null;
47
+
48
+ /**
49
+ * Configuration for embedding model connection and processing parameters.
50
+ */
51
+ embedding_config: ModelsAPI.EmbeddingConfig | null;
52
+
53
+ /**
54
+ * The text of the passage.
55
+ */
56
+ text: string;
57
+
58
+ /**
59
+ * The human-friendly ID of the Passage
60
+ */
61
+ id?: string;
62
+
63
+ /**
64
+ * The unique identifier of the archive containing this passage.
65
+ */
66
+ archive_id?: string | null;
67
+
68
+ /**
69
+ * The creation date of the passage.
70
+ */
71
+ created_at?: string;
72
+
73
+ /**
74
+ * The id of the user that made this object.
75
+ */
76
+ created_by_id?: string | null;
77
+
78
+ /**
79
+ * The unique identifier of the file associated with the passage.
80
+ */
81
+ file_id?: string | null;
82
+
83
+ /**
84
+ * The name of the file (only for source passages).
85
+ */
86
+ file_name?: string | null;
87
+
88
+ /**
89
+ * Whether this passage is deleted or not.
90
+ */
91
+ is_deleted?: boolean;
92
+
93
+ /**
94
+ * The id of the user that made this object.
95
+ */
96
+ last_updated_by_id?: string | null;
97
+
98
+ /**
99
+ * The metadata of the passage.
100
+ */
101
+ metadata?: { [key: string]: unknown } | null;
102
+
103
+ /**
104
+ * The data source of the passage.
105
+ */
106
+ source_id?: string | null;
107
+
108
+ /**
109
+ * Tags associated with this passage.
110
+ */
111
+ tags?: Array<string> | null;
112
+
113
+ /**
114
+ * The timestamp when the object was last updated.
115
+ */
116
+ updated_at?: string | null;
117
+ }
118
+
119
+ export interface PassageCreateParams {
120
+ /**
121
+ * The text content of the passage
122
+ */
123
+ text: string;
124
+
125
+ /**
126
+ * Optional metadata for the passage
127
+ */
128
+ metadata?: { [key: string]: unknown } | null;
129
+
130
+ /**
131
+ * Optional tags for categorizing the passage
132
+ */
133
+ tags?: Array<string> | null;
134
+ }
135
+
136
+ export interface PassageDeleteParams {
137
+ /**
138
+ * The ID of the archive in the format 'archive-<uuid4>'
139
+ */
140
+ archive_id: string;
141
+ }
142
+
143
+ export declare namespace Passages {
144
+ export {
145
+ type PassageCreateResponse as PassageCreateResponse,
146
+ type PassageCreateParams as PassageCreateParams,
147
+ type PassageDeleteParams as PassageDeleteParams,
148
+ };
149
+ }
@@ -1,152 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../core/resource';
4
- import * as ModelsAPI from './models/models';
5
- import { APIPromise } from '../core/api-promise';
6
- import { ArrayPage, type ArrayPageParams, PagePromise } from '../core/pagination';
7
- import { RequestOptions } from '../internal/request-options';
8
- import { path } from '../internal/utils/path';
9
-
10
- export class Archives extends APIResource {
11
- /**
12
- * Create a new archive.
13
- */
14
- create(body: ArchiveCreateParams, options?: RequestOptions): APIPromise<Archive> {
15
- return this._client.post('/v1/archives/', { body, ...options });
16
- }
17
-
18
- /**
19
- * Get a single archive by its ID.
20
- */
21
- retrieve(archiveID: string, options?: RequestOptions): APIPromise<Archive> {
22
- return this._client.get(path`/v1/archives/${archiveID}`, options);
23
- }
24
-
25
- /**
26
- * Get a list of all archives for the current organization with optional filters
27
- * and pagination.
28
- */
29
- list(
30
- query: ArchiveListParams | null | undefined = {},
31
- options?: RequestOptions,
32
- ): PagePromise<ArchivesArrayPage, Archive> {
33
- return this._client.getAPIList('/v1/archives/', ArrayPage<Archive>, { query, ...options });
34
- }
35
-
36
- /**
37
- * Delete an archive by its ID.
38
- */
39
- delete(archiveID: string, options?: RequestOptions): APIPromise<Archive> {
40
- return this._client.delete(path`/v1/archives/${archiveID}`, options);
41
- }
42
-
43
- /**
44
- * Update an existing archive's name and/or description.
45
- */
46
- modify(archiveID: string, body: ArchiveModifyParams, options?: RequestOptions): APIPromise<Archive> {
47
- return this._client.patch(path`/v1/archives/${archiveID}`, { body, ...options });
48
- }
49
- }
50
-
51
- export type ArchivesArrayPage = ArrayPage<Archive>;
52
-
53
- /**
54
- * Representation of an archive - a collection of archival passages that can be
55
- * shared between agents.
56
- */
57
- export interface Archive {
58
- /**
59
- * The human-friendly ID of the Archive
60
- */
61
- id: string;
62
-
63
- /**
64
- * The creation date of the archive
65
- */
66
- created_at: string;
67
-
68
- /**
69
- * Embedding configuration for passages in this archive
70
- */
71
- embedding_config: ModelsAPI.EmbeddingConfig;
72
-
73
- /**
74
- * The name of the archive
75
- */
76
- name: string;
77
-
78
- /**
79
- * The id of the user that made this object.
80
- */
81
- created_by_id?: string | null;
82
-
83
- /**
84
- * A description of the archive
85
- */
86
- description?: string | null;
87
-
88
- /**
89
- * The id of the user that made this object.
90
- */
91
- last_updated_by_id?: string | null;
92
-
93
- /**
94
- * Additional metadata
95
- */
96
- metadata?: { [key: string]: unknown } | null;
97
-
98
- /**
99
- * The timestamp when the object was last updated.
100
- */
101
- updated_at?: string | null;
102
-
103
- /**
104
- * The vector database provider used for this archive's passages
105
- */
106
- vector_db_provider?: VectorDBProvider;
107
- }
108
-
109
- /**
110
- * Supported vector database providers for archival memory
111
- */
112
- export type VectorDBProvider = 'native' | 'tpuf' | 'pinecone';
113
-
114
- export interface ArchiveCreateParams {
115
- /**
116
- * Embedding configuration for the archive
117
- */
118
- embedding_config: ModelsAPI.EmbeddingConfig;
119
-
120
- name: string;
121
-
122
- description?: string | null;
123
- }
124
-
125
- export interface ArchiveListParams extends ArrayPageParams {
126
- /**
127
- * Only archives attached to this agent ID
128
- */
129
- agent_id?: string | null;
130
-
131
- /**
132
- * Filter by archive name (exact match)
133
- */
134
- name?: string | null;
135
- }
136
-
137
- export interface ArchiveModifyParams {
138
- description?: string | null;
139
-
140
- name?: string | null;
141
- }
142
-
143
- export declare namespace Archives {
144
- export {
145
- type Archive as Archive,
146
- type VectorDBProvider as VectorDBProvider,
147
- type ArchivesArrayPage as ArchivesArrayPage,
148
- type ArchiveCreateParams as ArchiveCreateParams,
149
- type ArchiveListParams as ArchiveListParams,
150
- type ArchiveModifyParams as ArchiveModifyParams,
151
- };
152
- }
3
+ export * from './archives/index';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as MessagesAPI from '../agents/messages';
5
- import { MessagesObjectPage } from '../agents/messages';
5
+ import { InternalMessagesObjectPage } from '../agents/messages';
6
6
  import { ObjectPage, type ObjectPageParams, PagePromise } from '../../core/pagination';
7
7
  import { RequestOptions } from '../../internal/request-options';
8
8
  import { path } from '../../internal/utils/path';
@@ -15,10 +15,10 @@ export class Messages extends APIResource {
15
15
  batchID: string,
16
16
  query: MessageListParams | null | undefined = {},
17
17
  options?: RequestOptions,
18
- ): PagePromise<MessagesObjectPage, MessagesAPI.Message> {
18
+ ): PagePromise<InternalMessagesObjectPage, MessagesAPI.InternalMessage> {
19
19
  return this._client.getAPIList(
20
20
  path`/v1/messages/batches/${batchID}/messages`,
21
- ObjectPage<MessagesAPI.Message>,
21
+ ObjectPage<MessagesAPI.InternalMessage>,
22
22
  { query, ...options },
23
23
  );
24
24
  }
@@ -35,4 +35,4 @@ export declare namespace Messages {
35
35
  export { type MessageListParams as MessageListParams };
36
36
  }
37
37
 
38
- export { type MessagesObjectPage };
38
+ export { type InternalMessagesObjectPage };
@@ -4,7 +4,7 @@ import { APIResource } from '../../core/resource';
4
4
  import * as ToolsAPI from '../tools';
5
5
  import * as AgentsAPI from '../agents/agents';
6
6
  import * as MessagesAPI from '../agents/messages';
7
- import { LettaMessageUnionsArrayPage } from '../agents/messages';
7
+ import { MessagesArrayPage } from '../agents/messages';
8
8
  import { APIPromise } from '../../core/api-promise';
9
9
  import { ArrayPage, type ArrayPageParams, PagePromise } from '../../core/pagination';
10
10
  import { Stream } from '../../core/streaming';
@@ -19,12 +19,11 @@ export class Messages extends APIResource {
19
19
  groupID: string,
20
20
  query: MessageListParams | null | undefined = {},
21
21
  options?: RequestOptions,
22
- ): PagePromise<LettaMessageUnionsArrayPage, MessagesAPI.LettaMessageUnion> {
23
- return this._client.getAPIList(
24
- path`/v1/groups/${groupID}/messages`,
25
- ArrayPage<MessagesAPI.LettaMessageUnion>,
26
- { query, ...options },
27
- );
22
+ ): PagePromise<MessagesArrayPage, MessagesAPI.Message> {
23
+ return this._client.getAPIList(path`/v1/groups/${groupID}/messages`, ArrayPage<MessagesAPI.Message>, {
24
+ query,
25
+ ...options,
26
+ });
28
27
  }
29
28
 
30
29
  /**
@@ -441,4 +440,4 @@ export declare namespace Messages {
441
440
  };
442
441
  }
443
442
 
444
- export { type LettaMessageUnionsArrayPage };
443
+ export { type MessagesArrayPage };
@@ -5,20 +5,30 @@ export {
5
5
  type AgentEnvironmentVariable,
6
6
  type AgentState,
7
7
  type AgentType,
8
+ type AnthropicModelSettings,
9
+ type AzureModelSettings,
10
+ type BedrockModelSettings,
8
11
  type ChildToolRule,
9
12
  type ConditionalToolRule,
10
13
  type ContinueToolRule,
14
+ type DeepseekModelSettings,
15
+ type GoogleAIModelSettings,
16
+ type GoogleVertexModelSettings,
17
+ type GroqModelSettings,
11
18
  type InitToolRule,
12
19
  type JsonObjectResponseFormat,
13
20
  type JsonSchemaResponseFormat,
14
21
  type LettaMessageContentUnion,
15
22
  type MaxCountPerStepToolRule,
16
23
  type MessageCreate,
24
+ type OpenAIModelSettings,
17
25
  type ParentToolRule,
18
26
  type RequiredBeforeExitToolRule,
19
27
  type RequiresApprovalToolRule,
20
28
  type TerminalToolRule,
21
29
  type TextResponseFormat,
30
+ type TogetherModelSettings,
31
+ type XaiModelSettings,
22
32
  type AgentDeleteResponse,
23
33
  type AgentExportFileResponse,
24
34
  type AgentImportFileResponse,
@@ -38,7 +48,7 @@ export {
38
48
  type ArchiveListParams,
39
49
  type ArchiveModifyParams,
40
50
  type ArchivesArrayPage,
41
- } from './archives';
51
+ } from './archives/archives';
42
52
  export {
43
53
  Batches,
44
54
  type BatchJob,
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as MessagesAPI from '../agents/messages';
5
- import { LettaMessageUnionsArrayPage } from '../agents/messages';
5
+ import { MessagesArrayPage } from '../agents/messages';
6
6
  import { APIPromise } from '../../core/api-promise';
7
7
  import { ArrayPage, type ArrayPageParams, PagePromise } from '../../core/pagination';
8
8
  import { Stream } from '../../core/streaming';
@@ -17,12 +17,11 @@ export class Messages extends APIResource {
17
17
  runID: string,
18
18
  query: MessageListParams | null | undefined = {},
19
19
  options?: RequestOptions,
20
- ): PagePromise<LettaMessageUnionsArrayPage, MessagesAPI.LettaMessageUnion> {
21
- return this._client.getAPIList(
22
- path`/v1/runs/${runID}/messages`,
23
- ArrayPage<MessagesAPI.LettaMessageUnion>,
24
- { query, ...options },
25
- );
20
+ ): PagePromise<MessagesArrayPage, MessagesAPI.Message> {
21
+ return this._client.getAPIList(path`/v1/runs/${runID}/messages`, ArrayPage<MessagesAPI.Message>, {
22
+ query,
23
+ ...options,
24
+ });
26
25
  }
27
26
 
28
27
  /**
@@ -77,4 +76,4 @@ export declare namespace Messages {
77
76
  };
78
77
  }
79
78
 
80
- export { type LettaMessageUnionsArrayPage };
79
+ export { type MessagesArrayPage };
@@ -139,7 +139,7 @@ export interface Step {
139
139
  * @deprecated The messages generated during this step. Deprecated: use
140
140
  * `GET /v1/steps/{step_id}/messages` endpoint instead
141
141
  */
142
- messages?: Array<MessagesAPI.Message>;
142
+ messages?: Array<MessagesAPI.InternalMessage>;
143
143
 
144
144
  /**
145
145
  * The name of the model used for this step.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.0.0-alpha.17'; // x-release-please-version
1
+ export const VERSION = '1.0.0-alpha.19'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.0.0-alpha.17";
1
+ export declare const VERSION = "1.0.0-alpha.19";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.0.0-alpha.17";
1
+ export declare const VERSION = "1.0.0-alpha.19";
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.0.0-alpha.17'; // x-release-please-version
4
+ exports.VERSION = '1.0.0-alpha.19'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.0.0-alpha.17'; // x-release-please-version
1
+ export const VERSION = '1.0.0-alpha.19'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map