@letta-ai/letta-client 1.0.0-alpha.13 → 1.0.0-alpha.15
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/CHANGELOG.md +28 -0
- package/client.d.mts +7 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -1
- package/client.d.ts.map +1 -1
- package/client.js +7 -2
- package/client.js.map +1 -1
- package/client.mjs +7 -2
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +6 -6
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +6 -6
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +4 -4
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +4 -4
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/files.d.mts +39 -79
- package/resources/agents/files.d.mts.map +1 -1
- package/resources/agents/files.d.ts +39 -79
- package/resources/agents/files.d.ts.map +1 -1
- package/resources/agents/files.js +5 -1
- package/resources/agents/files.js.map +1 -1
- package/resources/agents/files.mjs +5 -1
- package/resources/agents/files.mjs.map +1 -1
- package/resources/agents/index.d.mts +2 -2
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +2 -2
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +258 -21
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +258 -21
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/batches/batches.d.mts +44 -4
- package/resources/batches/batches.d.mts.map +1 -1
- package/resources/batches/batches.d.ts +44 -4
- package/resources/batches/batches.d.ts.map +1 -1
- package/resources/batches/batches.js.map +1 -1
- package/resources/batches/batches.mjs.map +1 -1
- package/resources/groups/messages.d.mts +88 -8
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +88 -8
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/steps/messages.d.mts +1 -1
- package/resources/steps/messages.d.mts.map +1 -1
- package/resources/steps/messages.d.ts +1 -1
- package/resources/steps/messages.d.ts.map +1 -1
- package/resources/templates/agents.d.mts +9 -14
- package/resources/templates/agents.d.mts.map +1 -1
- package/resources/templates/agents.d.ts +9 -14
- package/resources/templates/agents.d.ts.map +1 -1
- package/resources/templates/agents.js +2 -3
- package/resources/templates/agents.js.map +1 -1
- package/resources/templates/agents.mjs +2 -3
- package/resources/templates/agents.mjs.map +1 -1
- package/src/client.ts +13 -1
- package/src/core/pagination.ts +7 -7
- package/src/resources/agents/agents.ts +6 -0
- package/src/resources/agents/files.ts +47 -90
- package/src/resources/agents/index.ts +3 -0
- package/src/resources/agents/messages.ts +382 -23
- package/src/resources/batches/batches.ts +64 -5
- package/src/resources/groups/messages.ts +129 -9
- package/src/resources/steps/messages.ts +3 -1
- package/src/resources/templates/agents.ts +14 -17
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { NextFilesPage, type NextFilesPageParams, PagePromise } from "../../core/pagination.js";
|
|
3
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
5
|
export declare class Files extends APIResource {
|
|
5
6
|
/**
|
|
6
7
|
* Get the files attached to an agent with their open/closed status.
|
|
7
8
|
*/
|
|
8
|
-
list(agentID: string, query?: FileListParams | null | undefined, options?: RequestOptions):
|
|
9
|
+
list(agentID: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<FileListResponsesNextFilesPage, FileListResponse>;
|
|
9
10
|
/**
|
|
10
11
|
* Closes a specific file for a given agent.
|
|
11
12
|
*
|
|
@@ -29,106 +30,65 @@ export declare class Files extends APIResource {
|
|
|
29
30
|
*/
|
|
30
31
|
open(fileID: string, params: FileOpenParams, options?: RequestOptions): APIPromise<FileOpenResponse>;
|
|
31
32
|
}
|
|
33
|
+
export type FileListResponsesNextFilesPage = NextFilesPage<FileListResponse>;
|
|
32
34
|
/**
|
|
33
|
-
*
|
|
35
|
+
* Response model for agent file attachments showing file status in agent context
|
|
34
36
|
*/
|
|
35
37
|
export interface FileListResponse {
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
39
|
+
* Unique identifier of the file-agent relationship
|
|
38
40
|
*/
|
|
39
|
-
|
|
41
|
+
id: string;
|
|
40
42
|
/**
|
|
41
|
-
*
|
|
43
|
+
* Unique identifier of the file
|
|
42
44
|
*/
|
|
43
|
-
|
|
45
|
+
file_id: string;
|
|
44
46
|
/**
|
|
45
|
-
*
|
|
47
|
+
* Name of the file
|
|
46
48
|
*/
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
export declare namespace FileListResponse {
|
|
50
|
-
/**
|
|
51
|
-
* Response model for agent file attachments showing file status in agent context
|
|
52
|
-
*/
|
|
53
|
-
interface File {
|
|
54
|
-
/**
|
|
55
|
-
* Unique identifier of the file-agent relationship
|
|
56
|
-
*/
|
|
57
|
-
id: string;
|
|
58
|
-
/**
|
|
59
|
-
* Unique identifier of the file
|
|
60
|
-
*/
|
|
61
|
-
file_id: string;
|
|
62
|
-
/**
|
|
63
|
-
* Name of the file
|
|
64
|
-
*/
|
|
65
|
-
file_name: string;
|
|
66
|
-
/**
|
|
67
|
-
* Unique identifier of the folder/source
|
|
68
|
-
*/
|
|
69
|
-
folder_id: string;
|
|
70
|
-
/**
|
|
71
|
-
* Name of the folder/source
|
|
72
|
-
*/
|
|
73
|
-
folder_name: string;
|
|
74
|
-
/**
|
|
75
|
-
* Whether the file is currently open in the agent's context
|
|
76
|
-
*/
|
|
77
|
-
is_open: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Ending line number if file was opened with line range
|
|
80
|
-
*/
|
|
81
|
-
end_line?: number | null;
|
|
82
|
-
/**
|
|
83
|
-
* Timestamp of last access by the agent
|
|
84
|
-
*/
|
|
85
|
-
last_accessed_at?: string | null;
|
|
86
|
-
/**
|
|
87
|
-
* Starting line number if file was opened with line range
|
|
88
|
-
*/
|
|
89
|
-
start_line?: number | null;
|
|
90
|
-
/**
|
|
91
|
-
* Portion of the file visible to the agent if open
|
|
92
|
-
*/
|
|
93
|
-
visible_content?: string | null;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
export type FileCloseResponse = unknown;
|
|
97
|
-
export type FileCloseAllResponse = Array<string>;
|
|
98
|
-
export type FileOpenResponse = Array<string>;
|
|
99
|
-
export interface FileListParams {
|
|
49
|
+
file_name: string;
|
|
100
50
|
/**
|
|
101
|
-
*
|
|
102
|
-
* specified sort order
|
|
51
|
+
* Unique identifier of the folder/source
|
|
103
52
|
*/
|
|
104
|
-
|
|
53
|
+
folder_id: string;
|
|
105
54
|
/**
|
|
106
|
-
*
|
|
107
|
-
* the specified sort order
|
|
55
|
+
* Name of the folder/source
|
|
108
56
|
*/
|
|
109
|
-
|
|
57
|
+
folder_name: string;
|
|
110
58
|
/**
|
|
111
|
-
*
|
|
112
|
-
* before/after)
|
|
59
|
+
* Whether the file is currently open in the agent's context
|
|
113
60
|
*/
|
|
114
|
-
|
|
61
|
+
is_open: boolean;
|
|
115
62
|
/**
|
|
116
|
-
*
|
|
63
|
+
* Ending line number if file was opened with line range
|
|
117
64
|
*/
|
|
118
|
-
|
|
65
|
+
end_line?: number | null;
|
|
119
66
|
/**
|
|
120
|
-
*
|
|
67
|
+
* Timestamp of last access by the agent
|
|
121
68
|
*/
|
|
122
|
-
|
|
69
|
+
last_accessed_at?: string | null;
|
|
123
70
|
/**
|
|
124
|
-
*
|
|
125
|
-
* first
|
|
71
|
+
* Starting line number if file was opened with line range
|
|
126
72
|
*/
|
|
127
|
-
|
|
73
|
+
start_line?: number | null;
|
|
128
74
|
/**
|
|
129
|
-
*
|
|
75
|
+
* Portion of the file visible to the agent if open
|
|
130
76
|
*/
|
|
131
|
-
|
|
77
|
+
visible_content?: string | null;
|
|
78
|
+
}
|
|
79
|
+
export type FileCloseResponse = unknown;
|
|
80
|
+
export type FileCloseAllResponse = Array<string>;
|
|
81
|
+
export type FileOpenResponse = Array<string>;
|
|
82
|
+
export interface FileListParams extends NextFilesPageParams {
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Pagination cursor from previous response (deprecated, use
|
|
85
|
+
* before/after)
|
|
86
|
+
*/
|
|
87
|
+
cursor?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Filter by open status (true for open files, false for closed files)
|
|
90
|
+
*/
|
|
91
|
+
is_open?: boolean | null;
|
|
132
92
|
}
|
|
133
93
|
export interface FileCloseParams {
|
|
134
94
|
/**
|
|
@@ -143,6 +103,6 @@ export interface FileOpenParams {
|
|
|
143
103
|
agent_id: string;
|
|
144
104
|
}
|
|
145
105
|
export declare namespace Files {
|
|
146
|
-
export { type FileListResponse as FileListResponse, type FileCloseResponse as FileCloseResponse, type FileCloseAllResponse as FileCloseAllResponse, type FileOpenResponse as FileOpenResponse, type FileListParams as FileListParams, type FileCloseParams as FileCloseParams, type FileOpenParams as FileOpenParams, };
|
|
106
|
+
export { type FileListResponse as FileListResponse, type FileCloseResponse as FileCloseResponse, type FileCloseAllResponse as FileCloseAllResponse, type FileOpenResponse as FileOpenResponse, type FileListResponsesNextFilesPage as FileListResponsesNextFilesPage, type FileListParams as FileListParams, type FileCloseParams as FileCloseParams, type FileOpenParams as FileOpenParams, };
|
|
147
107
|
}
|
|
148
108
|
//# sourceMappingURL=files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/agents/files.ts"],"names":[],"m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IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Files = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
6
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
8
|
class Files extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
9
10
|
* Get the files attached to an agent with their open/closed status.
|
|
10
11
|
*/
|
|
11
12
|
list(agentID, query = {}, options) {
|
|
12
|
-
return this._client.
|
|
13
|
+
return this._client.getAPIList((0, path_1.path) `/v1/agents/${agentID}/files`, (pagination_1.NextFilesPage), {
|
|
14
|
+
query,
|
|
15
|
+
...options,
|
|
16
|
+
});
|
|
13
17
|
}
|
|
14
18
|
/**
|
|
15
19
|
* Closes a specific file for a given agent.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/agents/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/agents/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA6F;AAE7F,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,QAAQ,EAAE,CAAA,0BAA+B,CAAA,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAc,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,UAAU,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,MAAc,EAAE,MAAsB,EAAE,OAAwB;QACnE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,UAAU,MAAM,OAAO,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;CACF;AA/CD,sBA+CC"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { NextFilesPage } from "../../core/pagination.mjs";
|
|
3
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
5
|
export class Files extends APIResource {
|
|
5
6
|
/**
|
|
6
7
|
* Get the files attached to an agent with their open/closed status.
|
|
7
8
|
*/
|
|
8
9
|
list(agentID, query = {}, options) {
|
|
9
|
-
return this._client.
|
|
10
|
+
return this._client.getAPIList(path `/v1/agents/${agentID}/files`, (NextFilesPage), {
|
|
11
|
+
query,
|
|
12
|
+
...options,
|
|
13
|
+
});
|
|
10
14
|
}
|
|
11
15
|
/**
|
|
12
16
|
* Closes a specific file for a given agent.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/agents/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/agents/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,aAAa,EAAyC;OAExD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,cAAc,OAAO,QAAQ,EAAE,CAAA,aAA+B,CAAA,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAc,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,UAAU,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,OAAO,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CAAC,MAAc,EAAE,MAAsB,EAAE,OAAwB;QACnE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,UAAU,MAAM,OAAO,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;CACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType, type ChildToolRule, type ConditionalToolRule, type ContinueToolRule, type InitToolRule, type JsonObjectResponseFormat, type JsonSchemaResponseFormat, type LettaMessageContentUnion, type MaxCountPerStepToolRule, type MessageCreate, type ParentToolRule, type RequiredBeforeExitToolRule, type RequiresApprovalToolRule, type TerminalToolRule, type TextResponseFormat, type AgentDeleteResponse, type AgentCountResponse, type AgentExportFileResponse, type AgentImportFileResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentListParams, type AgentExportFileParams, type AgentImportFileParams, type AgentModifyParams, type AgentStatesArrayPage, } from "./agents.mjs";
|
|
2
2
|
export { Blocks, type Block, type BlockModify, type BlockRetrieveParams, type BlockListParams, type BlockAttachParams, type BlockDetachParams, type BlockModifyParams, } from "./blocks.mjs";
|
|
3
|
-
export { Files, type FileListResponse, type FileCloseResponse, type FileCloseAllResponse, type FileOpenResponse, type FileListParams, type FileCloseParams, type FileOpenParams, } from "./files.mjs";
|
|
3
|
+
export { Files, type FileListResponse, type FileCloseResponse, type FileCloseAllResponse, type FileOpenResponse, type FileListParams, type FileCloseParams, type FileOpenParams, type FileListResponsesNextFilesPage, } from "./files.mjs";
|
|
4
4
|
export { Folders, type FolderListResponse, type FolderListParams, type FolderAttachParams, type FolderDetachParams, } from "./folders.mjs";
|
|
5
5
|
export { Groups, type GroupListParams } from "./groups.mjs";
|
|
6
|
-
export { Messages, type ApprovalCreate, type ApprovalRequestMessage, type ApprovalResponseMessage, type AssistantMessage, type HiddenReasoningMessage, type ImageContent, type JobStatus, type JobType, type LettaAssistantMessageContentUnion, type LettaMessageUnion, type LettaRequest, type LettaResponse, type LettaStreamingRequest, type LettaStreamingResponse, type LettaUserMessageContentUnion, type Message, type MessageRole, type MessageType, type OmittedReasoningContent, type ReasoningContent, type ReasoningMessage, type RedactedReasoningContent, type Run, type SystemMessage, type TextContent, type ToolCall, type ToolCallContent, type ToolCallDelta, type ToolCallMessage, type ToolReturn, type ToolReturnContent, type UpdateAssistantMessage, type UpdateReasoningMessage, type UpdateSystemMessage, type UpdateUserMessage, type UserMessage, type MessageCancelResponse, type MessageModifyResponse, type MessageListParams, type MessageCancelParams, type MessageModifyParams, type MessageResetParams, type MessageSendParams, type MessageSendAsyncParams, type MessageStreamParams, type LettaMessageUnionsArrayPage, } from "./messages.mjs";
|
|
6
|
+
export { Messages, type ApprovalCreate, type ApprovalRequestMessage, type ApprovalResponseMessage, type AssistantMessage, type EventMessage, type HiddenReasoningMessage, type ImageContent, type JobStatus, type JobType, type LettaAssistantMessageContentUnion, type LettaMessageUnion, type LettaRequest, type LettaResponse, type LettaStreamingRequest, type LettaStreamingResponse, type LettaUserMessageContentUnion, type Message, type MessageRole, type MessageType, type OmittedReasoningContent, type ReasoningContent, type ReasoningMessage, type RedactedReasoningContent, type Run, type SummaryMessage, type SystemMessage, type TextContent, type ToolCall, type ToolCallContent, type ToolCallDelta, type ToolCallMessage, type ToolReturn, type ToolReturnContent, type UpdateAssistantMessage, type UpdateReasoningMessage, type UpdateSystemMessage, type UpdateUserMessage, type UserMessage, type MessageCancelResponse, type MessageModifyResponse, type MessageListParams, type MessageCancelParams, type MessageModifyParams, type MessageResetParams, type MessageSendParams, type MessageSendAsyncParams, type MessageStreamParams, type LettaMessageUnionsArrayPage, } from "./messages.mjs";
|
|
7
7
|
export { Tools, type ToolListResponse, type ToolListParams, type ToolAttachParams, type ToolDetachParams, type ToolUpdateApprovalParams, } from "./tools.mjs";
|
|
8
8
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAA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3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,GAC9B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType, type ChildToolRule, type ConditionalToolRule, type ContinueToolRule, type InitToolRule, type JsonObjectResponseFormat, type JsonSchemaResponseFormat, type LettaMessageContentUnion, type MaxCountPerStepToolRule, type MessageCreate, type ParentToolRule, type RequiredBeforeExitToolRule, type RequiresApprovalToolRule, type TerminalToolRule, type TextResponseFormat, type AgentDeleteResponse, type AgentCountResponse, type AgentExportFileResponse, type AgentImportFileResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentListParams, type AgentExportFileParams, type AgentImportFileParams, type AgentModifyParams, type AgentStatesArrayPage, } from "./agents.js";
|
|
2
2
|
export { Blocks, type Block, type BlockModify, type BlockRetrieveParams, type BlockListParams, type BlockAttachParams, type BlockDetachParams, type BlockModifyParams, } from "./blocks.js";
|
|
3
|
-
export { Files, type FileListResponse, type FileCloseResponse, type FileCloseAllResponse, type FileOpenResponse, type FileListParams, type FileCloseParams, type FileOpenParams, } from "./files.js";
|
|
3
|
+
export { Files, type FileListResponse, type FileCloseResponse, type FileCloseAllResponse, type FileOpenResponse, type FileListParams, type FileCloseParams, type FileOpenParams, type FileListResponsesNextFilesPage, } from "./files.js";
|
|
4
4
|
export { Folders, type FolderListResponse, type FolderListParams, type FolderAttachParams, type FolderDetachParams, } from "./folders.js";
|
|
5
5
|
export { Groups, type GroupListParams } from "./groups.js";
|
|
6
|
-
export { Messages, type ApprovalCreate, type ApprovalRequestMessage, type ApprovalResponseMessage, type AssistantMessage, type HiddenReasoningMessage, type ImageContent, type JobStatus, type JobType, type LettaAssistantMessageContentUnion, type LettaMessageUnion, type LettaRequest, type LettaResponse, type LettaStreamingRequest, type LettaStreamingResponse, type LettaUserMessageContentUnion, type Message, type MessageRole, type MessageType, type OmittedReasoningContent, type ReasoningContent, type ReasoningMessage, type RedactedReasoningContent, type Run, type SystemMessage, type TextContent, type ToolCall, type ToolCallContent, type ToolCallDelta, type ToolCallMessage, type ToolReturn, type ToolReturnContent, type UpdateAssistantMessage, type UpdateReasoningMessage, type UpdateSystemMessage, type UpdateUserMessage, type UserMessage, type MessageCancelResponse, type MessageModifyResponse, type MessageListParams, type MessageCancelParams, type MessageModifyParams, type MessageResetParams, type MessageSendParams, type MessageSendAsyncParams, type MessageStreamParams, type LettaMessageUnionsArrayPage, } from "./messages.js";
|
|
6
|
+
export { Messages, type ApprovalCreate, type ApprovalRequestMessage, type ApprovalResponseMessage, type AssistantMessage, type EventMessage, type HiddenReasoningMessage, type ImageContent, type JobStatus, type JobType, type LettaAssistantMessageContentUnion, type LettaMessageUnion, type LettaRequest, type LettaResponse, type LettaStreamingRequest, type LettaStreamingResponse, type LettaUserMessageContentUnion, type Message, type MessageRole, type MessageType, type OmittedReasoningContent, type ReasoningContent, type ReasoningMessage, type RedactedReasoningContent, type Run, type SummaryMessage, type SystemMessage, type TextContent, type ToolCall, type ToolCallContent, type ToolCallDelta, type ToolCallMessage, type ToolReturn, type ToolReturnContent, type UpdateAssistantMessage, type UpdateReasoningMessage, type UpdateSystemMessage, type UpdateUserMessage, type UserMessage, type MessageCancelResponse, type MessageModifyResponse, type MessageListParams, type MessageCancelParams, type MessageModifyParams, type MessageResetParams, type MessageSendParams, type MessageSendAsyncParams, type MessageStreamParams, type LettaMessageUnionsArrayPage, } from "./messages.js";
|
|
7
7
|
export { Tools, type ToolListResponse, type ToolListParams, type ToolAttachParams, type ToolDetachParams, type ToolUpdateApprovalParams, } from "./tools.js";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,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,KAAK,iCAAiC,EACtC,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,GAAG,EACR,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,GAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCA8BkB;AA7BhB,gGAAA,MAAM,OAAA;AA8BR,sCASkB;AARhB,gGAAA,MAAM,OAAA;AASR,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCA8BkB;AA7BhB,gGAAA,MAAM,OAAA;AA8BR,sCASkB;AARhB,gGAAA,MAAM,OAAA;AASR,oCAUiB;AATf,8FAAA,KAAK,OAAA;AAUP,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,sCAAwD;AAA/C,gGAAA,MAAM,OAAA;AACf,0CAkDoB;AAjDlB,oGAAA,QAAQ,OAAA;AAkDV,oCAOiB;AANf,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GA6BP;OACM,EACL,MAAM,GAQP;OACM,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GA6BP;OACM,EACL,MAAM,GAQP;OACM,EACL,KAAK,GASN;OACM,EACL,OAAO,GAKR;OACM,EAAE,MAAM,EAAwB;OAChC,EACL,QAAQ,GAiDT;OACM,EACL,KAAK,GAMN"}
|