@letta-ai/letta-client 0.1.159 → 0.1.161
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.
- package/Client.d.ts +3 -0
- package/Client.js +43 -38
- package/api/resources/agents/client/Client.js +13 -13
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/folders/client/Client.d.ts +206 -0
- package/api/resources/folders/client/Client.js +981 -0
- package/api/resources/folders/client/index.d.ts +1 -0
- package/api/resources/folders/client/index.js +17 -0
- package/api/resources/folders/client/requests/BodyUploadFileToFolder.d.ts +14 -0
- package/api/resources/folders/client/requests/BodyUploadFileToFolder.js +5 -0
- package/api/resources/folders/client/requests/FolderCreate.d.ts +26 -0
- package/api/resources/folders/client/requests/FolderCreate.js +5 -0
- package/api/resources/folders/client/requests/FolderUpdate.d.ts +20 -0
- package/api/resources/folders/client/requests/FolderUpdate.js +5 -0
- package/api/resources/folders/client/requests/GetFoldersMetadataRequest.d.ts +10 -0
- package/api/resources/folders/client/requests/GetFoldersMetadataRequest.js +5 -0
- package/api/resources/folders/client/requests/ListFolderFilesRequest.d.ts +21 -0
- package/api/resources/folders/client/requests/ListFolderFilesRequest.js +5 -0
- package/api/resources/folders/client/requests/ListFolderPassagesRequest.d.ts +21 -0
- package/api/resources/folders/client/requests/ListFolderPassagesRequest.js +5 -0
- package/api/resources/folders/client/requests/index.d.ts +6 -0
- package/api/resources/folders/client/requests/index.js +2 -0
- package/api/resources/folders/index.d.ts +1 -0
- package/api/resources/folders/index.js +17 -0
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +19 -19
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
- package/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
- package/api/types/FileBlock.d.ts +37 -0
- package/api/types/FileBlock.js +5 -0
- package/api/types/Folder.d.ts +37 -0
- package/api/types/Folder.js +5 -0
- package/api/types/GenerateToolInput.d.ts +15 -0
- package/api/types/GenerateToolInput.js +5 -0
- package/api/types/GenerateToolOutput.d.ts +12 -0
- package/api/types/GenerateToolOutput.js +5 -0
- package/api/types/Memory.d.ts +2 -2
- package/api/types/ProviderType.d.ts +3 -1
- package/api/types/ProviderType.js +2 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +43 -38
- package/dist/api/resources/agents/client/Client.js +13 -13
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/folders/client/Client.d.ts +206 -0
- package/dist/api/resources/folders/client/Client.js +981 -0
- package/dist/api/resources/folders/client/index.d.ts +1 -0
- package/dist/api/resources/folders/client/index.js +17 -0
- package/dist/api/resources/folders/client/requests/BodyUploadFileToFolder.d.ts +14 -0
- package/dist/api/resources/folders/client/requests/BodyUploadFileToFolder.js +5 -0
- package/dist/api/resources/folders/client/requests/FolderCreate.d.ts +26 -0
- package/dist/api/resources/folders/client/requests/FolderCreate.js +5 -0
- package/dist/api/resources/folders/client/requests/FolderUpdate.d.ts +20 -0
- package/dist/api/resources/folders/client/requests/FolderUpdate.js +5 -0
- package/dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.d.ts +10 -0
- package/dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.js +5 -0
- package/dist/api/resources/folders/client/requests/ListFolderFilesRequest.d.ts +21 -0
- package/dist/api/resources/folders/client/requests/ListFolderFilesRequest.js +5 -0
- package/dist/api/resources/folders/client/requests/ListFolderPassagesRequest.d.ts +21 -0
- package/dist/api/resources/folders/client/requests/ListFolderPassagesRequest.js +5 -0
- package/dist/api/resources/folders/client/requests/index.d.ts +6 -0
- package/dist/api/resources/folders/client/requests/index.js +2 -0
- package/dist/api/resources/folders/index.d.ts +1 -0
- package/dist/api/resources/folders/index.js +17 -0
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +19 -19
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
- package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
- package/dist/api/types/FileBlock.d.ts +37 -0
- package/dist/api/types/FileBlock.js +5 -0
- package/dist/api/types/Folder.d.ts +37 -0
- package/dist/api/types/Folder.js +5 -0
- package/dist/api/types/GenerateToolInput.d.ts +15 -0
- package/dist/api/types/GenerateToolInput.js +5 -0
- package/dist/api/types/GenerateToolOutput.d.ts +12 -0
- package/dist/api/types/GenerateToolOutput.js +5 -0
- package/dist/api/types/Memory.d.ts +2 -2
- package/dist/api/types/ProviderType.d.ts +3 -1
- package/dist/api/types/ProviderType.js +2 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/folders/client/countFolders.d.ts +9 -0
- package/dist/serialization/resources/folders/client/countFolders.js +41 -0
- package/dist/serialization/resources/folders/client/getAgentsForFolder.d.ts +9 -0
- package/dist/serialization/resources/folders/client/getAgentsForFolder.js +41 -0
- package/dist/serialization/resources/folders/client/getFolderIdByName.d.ts +9 -0
- package/dist/serialization/resources/folders/client/getFolderIdByName.js +41 -0
- package/dist/serialization/resources/folders/client/index.d.ts +7 -0
- package/dist/serialization/resources/folders/client/index.js +46 -0
- package/dist/serialization/resources/folders/client/listFolderFiles.d.ts +11 -0
- package/dist/serialization/resources/folders/client/listFolderFiles.js +42 -0
- package/dist/serialization/resources/folders/client/listFolderPassages.d.ts +11 -0
- package/dist/serialization/resources/folders/client/listFolderPassages.js +42 -0
- package/dist/serialization/resources/folders/client/listFolders.d.ts +11 -0
- package/dist/serialization/resources/folders/client/listFolders.js +42 -0
- package/dist/serialization/resources/folders/client/requests/FolderCreate.d.ts +19 -0
- package/dist/serialization/resources/folders/client/requests/FolderCreate.js +50 -0
- package/dist/serialization/resources/folders/client/requests/FolderUpdate.d.ts +17 -0
- package/dist/serialization/resources/folders/client/requests/FolderUpdate.js +48 -0
- package/dist/serialization/resources/folders/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/folders/client/requests/index.js +7 -0
- package/dist/serialization/resources/folders/index.d.ts +1 -0
- package/dist/serialization/resources/folders/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
- package/dist/serialization/types/FileBlock.d.ts +27 -0
- package/dist/serialization/types/FileBlock.js +58 -0
- package/dist/serialization/types/Folder.d.ts +22 -0
- package/dist/serialization/types/Folder.js +53 -0
- package/dist/serialization/types/GenerateToolInput.d.ts +16 -0
- package/dist/serialization/types/GenerateToolInput.js +47 -0
- package/dist/serialization/types/GenerateToolOutput.d.ts +15 -0
- package/dist/serialization/types/GenerateToolOutput.js +46 -0
- package/dist/serialization/types/Memory.d.ts +2 -1
- package/dist/serialization/types/Memory.js +2 -1
- package/dist/serialization/types/ProviderType.d.ts +1 -1
- package/dist/serialization/types/ProviderType.js +2 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +861 -0
- package/serialization/resources/folders/client/countFolders.d.ts +9 -0
- package/serialization/resources/folders/client/countFolders.js +41 -0
- package/serialization/resources/folders/client/getAgentsForFolder.d.ts +9 -0
- package/serialization/resources/folders/client/getAgentsForFolder.js +41 -0
- package/serialization/resources/folders/client/getFolderIdByName.d.ts +9 -0
- package/serialization/resources/folders/client/getFolderIdByName.js +41 -0
- package/serialization/resources/folders/client/index.d.ts +7 -0
- package/serialization/resources/folders/client/index.js +46 -0
- package/serialization/resources/folders/client/listFolderFiles.d.ts +11 -0
- package/serialization/resources/folders/client/listFolderFiles.js +42 -0
- package/serialization/resources/folders/client/listFolderPassages.d.ts +11 -0
- package/serialization/resources/folders/client/listFolderPassages.js +42 -0
- package/serialization/resources/folders/client/listFolders.d.ts +11 -0
- package/serialization/resources/folders/client/listFolders.js +42 -0
- package/serialization/resources/folders/client/requests/FolderCreate.d.ts +19 -0
- package/serialization/resources/folders/client/requests/FolderCreate.js +50 -0
- package/serialization/resources/folders/client/requests/FolderUpdate.d.ts +17 -0
- package/serialization/resources/folders/client/requests/FolderUpdate.js +48 -0
- package/serialization/resources/folders/client/requests/index.d.ts +2 -0
- package/serialization/resources/folders/client/requests/index.js +7 -0
- package/serialization/resources/folders/index.d.ts +1 -0
- package/serialization/resources/folders/index.js +17 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
- package/serialization/types/FileBlock.d.ts +27 -0
- package/serialization/types/FileBlock.js +58 -0
- package/serialization/types/Folder.d.ts +22 -0
- package/serialization/types/Folder.js +53 -0
- package/serialization/types/GenerateToolInput.d.ts +16 -0
- package/serialization/types/GenerateToolInput.js +47 -0
- package/serialization/types/GenerateToolOutput.d.ts +15 -0
- package/serialization/types/GenerateToolOutput.js +46 -0
- package/serialization/types/Memory.d.ts +2 -1
- package/serialization/types/Memory.js +2 -1
- package/serialization/types/ProviderType.d.ts +1 -1
- package/serialization/types/ProviderType.js +2 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface FileBlock {
|
|
5
|
+
/** Value of the block. */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Character limit of the block. */
|
|
8
|
+
limit?: number;
|
|
9
|
+
/** Name of the block if it is a template. */
|
|
10
|
+
name?: string;
|
|
11
|
+
/** Whether the block is a template (e.g. saved human/persona options). */
|
|
12
|
+
isTemplate?: boolean;
|
|
13
|
+
/** Preserve the block on template migration. */
|
|
14
|
+
preserveOnMigration?: boolean;
|
|
15
|
+
/** Label of the block (e.g. 'human', 'persona') in the context window. */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** Whether the agent has read-only access to the block. */
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
/** Description of the block. */
|
|
20
|
+
description?: string;
|
|
21
|
+
/** Metadata of the block. */
|
|
22
|
+
metadata?: Record<string, unknown>;
|
|
23
|
+
/** The human-friendly ID of the Block */
|
|
24
|
+
id?: string;
|
|
25
|
+
/** The id of the user that made this Block. */
|
|
26
|
+
createdById?: string;
|
|
27
|
+
/** The id of the user that last updated this Block. */
|
|
28
|
+
lastUpdatedById?: string;
|
|
29
|
+
/** Unique identifier of the file. */
|
|
30
|
+
fileId: string;
|
|
31
|
+
/** Unique identifier of the source. */
|
|
32
|
+
sourceId: string;
|
|
33
|
+
/** True if the agent currently has the file open. */
|
|
34
|
+
isOpen: boolean;
|
|
35
|
+
/** UTC timestamp of the agent’s most recent access to this file. Any operations from the open, close, or search tools will update this field. */
|
|
36
|
+
lastAccessedAt?: Date;
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Representation of a folder, which is a collection of files and passages.
|
|
7
|
+
*
|
|
8
|
+
* Parameters:
|
|
9
|
+
* id (str): The ID of the folder
|
|
10
|
+
* name (str): The name of the folder.
|
|
11
|
+
* embedding_config (EmbeddingConfig): The embedding configuration used by the folder.
|
|
12
|
+
* user_id (str): The ID of the user that created the folder.
|
|
13
|
+
* metadata (dict): Metadata associated with the folder.
|
|
14
|
+
* description (str): The description of the folder.
|
|
15
|
+
*/
|
|
16
|
+
export interface Folder {
|
|
17
|
+
/** The name of the folder. */
|
|
18
|
+
name: string;
|
|
19
|
+
/** The description of the folder. */
|
|
20
|
+
description?: string;
|
|
21
|
+
/** Instructions for how to use the folder. */
|
|
22
|
+
instructions?: string;
|
|
23
|
+
/** Metadata associated with the folder. */
|
|
24
|
+
metadata?: Record<string, unknown>;
|
|
25
|
+
/** The human-friendly ID of the Folder */
|
|
26
|
+
id?: string;
|
|
27
|
+
/** The embedding configuration used by the folder. */
|
|
28
|
+
embeddingConfig: Letta.EmbeddingConfig;
|
|
29
|
+
/** The id of the user that made this Tool. */
|
|
30
|
+
createdById?: string;
|
|
31
|
+
/** The id of the user that made this Tool. */
|
|
32
|
+
lastUpdatedById?: string;
|
|
33
|
+
/** The timestamp when the folder was created. */
|
|
34
|
+
createdAt?: Date;
|
|
35
|
+
/** The timestamp when the folder was last updated. */
|
|
36
|
+
updatedAt?: Date;
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface GenerateToolInput {
|
|
5
|
+
/** Name of the tool to generate code for */
|
|
6
|
+
toolName: string;
|
|
7
|
+
/** User prompt to generate code */
|
|
8
|
+
prompt: string;
|
|
9
|
+
/** Handle of the tool to generate code for */
|
|
10
|
+
handle?: string;
|
|
11
|
+
/** Python source code to parse for JSON schema */
|
|
12
|
+
starterCode?: string;
|
|
13
|
+
/** List of validation errors */
|
|
14
|
+
validationErrors: string[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface GenerateToolOutput {
|
|
6
|
+
/** Generated tool */
|
|
7
|
+
tool: Letta.Tool;
|
|
8
|
+
/** Sample arguments for the tool */
|
|
9
|
+
sampleArgs: Record<string, unknown>;
|
|
10
|
+
/** Response from the assistant */
|
|
11
|
+
response: string;
|
|
12
|
+
}
|
|
@@ -8,8 +8,8 @@ import * as Letta from "../index";
|
|
|
8
8
|
export interface Memory {
|
|
9
9
|
/** Memory blocks contained in the agent's in-context memory */
|
|
10
10
|
blocks: Letta.Block[];
|
|
11
|
-
/**
|
|
12
|
-
fileBlocks?: Letta.
|
|
11
|
+
/** Special blocks representing the agent's in-context memory of an attached file */
|
|
12
|
+
fileBlocks?: Letta.FileBlock[];
|
|
13
13
|
/** Jinja2 template for compiling memory blocks into a prompt string */
|
|
14
14
|
promptTemplate?: string;
|
|
15
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ProviderType = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
|
|
4
|
+
export type ProviderType = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "cerebras" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock" | "cohere";
|
|
5
5
|
export declare const ProviderType: {
|
|
6
6
|
readonly Anthropic: "anthropic";
|
|
7
7
|
readonly GoogleAi: "google_ai";
|
|
@@ -9,6 +9,7 @@ export declare const ProviderType: {
|
|
|
9
9
|
readonly Openai: "openai";
|
|
10
10
|
readonly Letta: "letta";
|
|
11
11
|
readonly Deepseek: "deepseek";
|
|
12
|
+
readonly Cerebras: "cerebras";
|
|
12
13
|
readonly LmstudioOpenai: "lmstudio_openai";
|
|
13
14
|
readonly Xai: "xai";
|
|
14
15
|
readonly Mistral: "mistral";
|
|
@@ -18,4 +19,5 @@ export declare const ProviderType: {
|
|
|
18
19
|
readonly Azure: "azure";
|
|
19
20
|
readonly Vllm: "vllm";
|
|
20
21
|
readonly Bedrock: "bedrock";
|
|
22
|
+
readonly Cohere: "cohere";
|
|
21
23
|
};
|
|
@@ -11,6 +11,7 @@ exports.ProviderType = {
|
|
|
11
11
|
Openai: "openai",
|
|
12
12
|
Letta: "letta",
|
|
13
13
|
Deepseek: "deepseek",
|
|
14
|
+
Cerebras: "cerebras",
|
|
14
15
|
LmstudioOpenai: "lmstudio_openai",
|
|
15
16
|
Xai: "xai",
|
|
16
17
|
Mistral: "mistral",
|
|
@@ -20,4 +21,5 @@ exports.ProviderType = {
|
|
|
20
21
|
Azure: "azure",
|
|
21
22
|
Vllm: "vllm",
|
|
22
23
|
Bedrock: "bedrock",
|
|
24
|
+
Cohere: "cohere",
|
|
23
25
|
};
|
|
@@ -93,15 +93,19 @@ export * from "./EmbeddingConfigEmbeddingEndpointType";
|
|
|
93
93
|
export * from "./EmbeddingConfig";
|
|
94
94
|
export * from "./FeedbackType";
|
|
95
95
|
export * from "./File_";
|
|
96
|
+
export * from "./FileBlock";
|
|
96
97
|
export * from "./FileFile";
|
|
97
98
|
export * from "./FileMetadata";
|
|
98
99
|
export * from "./FileProcessingStatus";
|
|
99
100
|
export * from "./FileStats";
|
|
101
|
+
export * from "./Folder";
|
|
100
102
|
export * from "./FunctionOutput";
|
|
101
103
|
export * from "./FunctionCall";
|
|
102
104
|
export * from "./FunctionDefinitionInput";
|
|
103
105
|
export * from "./FunctionDefinitionOutput";
|
|
104
106
|
export * from "./FunctionTool";
|
|
107
|
+
export * from "./GenerateToolInput";
|
|
108
|
+
export * from "./GenerateToolOutput";
|
|
105
109
|
export * from "./Group";
|
|
106
110
|
export * from "./HttpValidationError";
|
|
107
111
|
export * from "./Health";
|
package/dist/api/types/index.js
CHANGED
|
@@ -109,15 +109,19 @@ __exportStar(require("./EmbeddingConfigEmbeddingEndpointType"), exports);
|
|
|
109
109
|
__exportStar(require("./EmbeddingConfig"), exports);
|
|
110
110
|
__exportStar(require("./FeedbackType"), exports);
|
|
111
111
|
__exportStar(require("./File_"), exports);
|
|
112
|
+
__exportStar(require("./FileBlock"), exports);
|
|
112
113
|
__exportStar(require("./FileFile"), exports);
|
|
113
114
|
__exportStar(require("./FileMetadata"), exports);
|
|
114
115
|
__exportStar(require("./FileProcessingStatus"), exports);
|
|
115
116
|
__exportStar(require("./FileStats"), exports);
|
|
117
|
+
__exportStar(require("./Folder"), exports);
|
|
116
118
|
__exportStar(require("./FunctionOutput"), exports);
|
|
117
119
|
__exportStar(require("./FunctionCall"), exports);
|
|
118
120
|
__exportStar(require("./FunctionDefinitionInput"), exports);
|
|
119
121
|
__exportStar(require("./FunctionDefinitionOutput"), exports);
|
|
120
122
|
__exportStar(require("./FunctionTool"), exports);
|
|
123
|
+
__exportStar(require("./GenerateToolInput"), exports);
|
|
124
|
+
__exportStar(require("./GenerateToolOutput"), exports);
|
|
121
125
|
__exportStar(require("./Group"), exports);
|
|
122
126
|
__exportStar(require("./HttpValidationError"), exports);
|
|
123
127
|
__exportStar(require("./Health"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.folders.countFolders.Response.Raw, number>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.number();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.folders.getAgentsForFolder.Response.Raw, string[]>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = string[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.list(core.serialization.string());
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.folders.getFolderIdByName.Response.Raw, string>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.string();
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * as countFolders from "./countFolders";
|
|
2
|
+
export * as getFolderIdByName from "./getFolderIdByName";
|
|
3
|
+
export * as listFolders from "./listFolders";
|
|
4
|
+
export * as getAgentsForFolder from "./getAgentsForFolder";
|
|
5
|
+
export * as listFolderPassages from "./listFolderPassages";
|
|
6
|
+
export * as listFolderFiles from "./listFolderFiles";
|
|
7
|
+
export * from "./requests";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.listFolderFiles = exports.listFolderPassages = exports.getAgentsForFolder = exports.listFolders = exports.getFolderIdByName = exports.countFolders = void 0;
|
|
40
|
+
exports.countFolders = __importStar(require("./countFolders"));
|
|
41
|
+
exports.getFolderIdByName = __importStar(require("./getFolderIdByName"));
|
|
42
|
+
exports.listFolders = __importStar(require("./listFolders"));
|
|
43
|
+
exports.getAgentsForFolder = __importStar(require("./getAgentsForFolder"));
|
|
44
|
+
exports.listFolderPassages = __importStar(require("./listFolderPassages"));
|
|
45
|
+
exports.listFolderFiles = __importStar(require("./listFolderFiles"));
|
|
46
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Letta from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { FileMetadata } from "../../../types/FileMetadata";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.folders.listFolderFiles.Response.Raw, Letta.FileMetadata[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = FileMetadata.Raw[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const FileMetadata_1 = require("../../../types/FileMetadata");
|
|
42
|
+
exports.Response = core.serialization.list(FileMetadata_1.FileMetadata);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Letta from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { Passage } from "../../../types/Passage";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.folders.listFolderPassages.Response.Raw, Letta.Passage[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Passage.Raw[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const Passage_1 = require("../../../types/Passage");
|
|
42
|
+
exports.Response = core.serialization.list(Passage_1.Passage);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Letta from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { Folder } from "../../../types/Folder";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.folders.listFolders.Response.Raw, Letta.Folder[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Folder.Raw[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const Folder_1 = require("../../../types/Folder");
|
|
42
|
+
exports.Response = core.serialization.list(Folder_1.Folder);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Letta from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
import { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
|
|
8
|
+
export declare const FolderCreate: core.serialization.Schema<serializers.FolderCreate.Raw, Letta.FolderCreate>;
|
|
9
|
+
export declare namespace FolderCreate {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string | null;
|
|
13
|
+
instructions?: string | null;
|
|
14
|
+
metadata?: Record<string, unknown> | null;
|
|
15
|
+
embedding?: string | null;
|
|
16
|
+
embedding_chunk_size?: number | null;
|
|
17
|
+
embedding_config?: EmbeddingConfig.Raw | null;
|
|
18
|
+
}
|
|
19
|
+
}
|