Skip to content

Commit 9b06ed2

Browse files
feat: move sources to folders
1 parent 416e6f2 commit 9b06ed2

File tree

4 files changed

+26
-9
lines changed

4 files changed

+26
-9
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 115
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/letta-ai%2Fletta-sdk-42e988db37b1b9d396a8e2b6b7c893cc8d72d578f6331ad8d7aa9ab5d377ba09.yml
3-
openapi_spec_hash: 7412733781cfedee652eaa041011bf06
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/letta-ai%2Fletta-sdk-eac34735d1b7ebd52f1163539096bb81609ac8ba44837762b8886022db91153a.yml
3+
openapi_spec_hash: 427717ed2deae58eb4259bcbad9cb859
44
config_hash: 37b13cab89d3e3c75d58ef7fe8a418eb

src/resources/agents/agents.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ export interface AgentState {
314314
name: string;
315315

316316
/**
317-
* The sources used by the agent.
317+
* @deprecated Deprecated: Use `folders` field instead. The sources used by the
318+
* agent.
318319
*/
319320
sources: Array<AgentState.Source>;
320321

@@ -561,7 +562,8 @@ export namespace AgentState {
561562
is_open: boolean;
562563

563564
/**
564-
* Unique identifier of the source.
565+
* @deprecated Deprecated: Use `folder_id` field instead. Unique identifier of the
566+
* source.
565567
*/
566568
source_id: string;
567569

@@ -1498,6 +1500,11 @@ export interface AgentCreateParams {
14981500
*/
14991501
enable_sleeptime?: boolean | null;
15001502

1503+
/**
1504+
* The ids of the folders used by the agent.
1505+
*/
1506+
folder_ids?: Array<string> | null;
1507+
15011508
/**
15021509
* @deprecated Deprecated: please use the 'create agents from a template' endpoint
15031510
* instead.
@@ -1662,7 +1669,8 @@ export interface AgentCreateParams {
16621669
secrets?: { [key: string]: string } | null;
16631670

16641671
/**
1665-
* The ids of the sources used by the agent.
1672+
* @deprecated Deprecated: Use `folder_ids` field instead. The ids of the sources
1673+
* used by the agent.
16661674
*/
16671675
source_ids?: Array<string> | null;
16681676

@@ -1784,6 +1792,11 @@ export interface AgentUpdateParams {
17841792
*/
17851793
enable_sleeptime?: boolean | null;
17861794

1795+
/**
1796+
* The ids of the folders used by the agent.
1797+
*/
1798+
folder_ids?: Array<string> | null;
1799+
17871800
/**
17881801
* If set to True, the agent will be hidden.
17891802
*/
@@ -1909,7 +1922,8 @@ export interface AgentUpdateParams {
19091922
secrets?: { [key: string]: string } | null;
19101923

19111924
/**
1912-
* The ids of the sources used by the agent.
1925+
* @deprecated Deprecated: Use `folder_ids` field instead. The ids of the sources
1926+
* used by the agent.
19131927
*/
19141928
source_ids?: Array<string> | null;
19151929

src/resources/archives/passages.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ export interface PassageCreateResponse {
101101
metadata?: { [key: string]: unknown } | null;
102102

103103
/**
104-
* The data source of the passage.
104+
* @deprecated Deprecated: Use `folder_id` field instead. The data source of the
105+
* passage.
105106
*/
106107
source_id?: string | null;
107108

src/resources/folders/files.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ export interface FileListResponse {
6363
id: string;
6464

6565
/**
66-
* The unique identifier of the source associated with the document.
66+
* @deprecated Deprecated: Use `folder_id` field instead. The unique identifier of
67+
* the source associated with the document.
6768
*/
6869
source_id: string;
6970

@@ -150,7 +151,8 @@ export interface FileUploadResponse {
150151
id: string;
151152

152153
/**
153-
* The unique identifier of the source associated with the document.
154+
* @deprecated Deprecated: Use `folder_id` field instead. The unique identifier of
155+
* the source associated with the document.
154156
*/
155157
source_id: string;
156158

0 commit comments

Comments
 (0)