@letta-ai/letta-client 1.6.4 → 1.6.5
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 +14 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/messages.d.mts +19 -3
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +19 -3
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +10 -3
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +10 -3
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts +96 -0
- package/resources/conversations/conversations.d.mts.map +1 -0
- package/resources/conversations/conversations.d.ts +96 -0
- package/resources/conversations/conversations.d.ts.map +1 -0
- package/resources/conversations/conversations.js +37 -0
- package/resources/conversations/conversations.js.map +1 -0
- package/resources/conversations/conversations.mjs +32 -0
- package/resources/conversations/conversations.mjs.map +1 -0
- package/resources/conversations/index.d.mts +3 -0
- package/resources/conversations/index.d.mts.map +1 -0
- package/resources/conversations/index.d.ts +3 -0
- package/resources/conversations/index.d.ts.map +1 -0
- package/resources/conversations/index.js +9 -0
- package/resources/conversations/index.js.map +1 -0
- package/resources/conversations/index.mjs +4 -0
- package/resources/conversations/index.mjs.map +1 -0
- package/resources/conversations/messages.d.mts +198 -0
- package/resources/conversations/messages.d.mts.map +1 -0
- package/resources/conversations/messages.d.ts +198 -0
- package/resources/conversations/messages.d.ts.map +1 -0
- package/resources/conversations/messages.js +46 -0
- package/resources/conversations/messages.js.map +1 -0
- package/resources/conversations/messages.mjs +42 -0
- package/resources/conversations/messages.mjs.map +1 -0
- package/resources/conversations.d.mts +2 -0
- package/resources/conversations.d.mts.map +1 -0
- package/resources/conversations.d.ts +2 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +6 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +3 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +19 -0
- package/src/resources/agents/messages.ts +21 -3
- package/src/resources/conversations/conversations.ts +148 -0
- package/src/resources/conversations/index.ts +18 -0
- package/src/resources/conversations/messages.ts +277 -0
- package/src/resources/conversations.ts +3 -0
- package/src/resources/index.ts +8 -0
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B;OACM,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,mBAAmB,E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AoB,GAC1B;OACM,EACL,KAAK,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB;OACM,EAAE,KAAK,cAAc,EAAE"}
|
package/resources/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType,
|
|
|
3
3
|
export { Archives, type Archive, type VectorDBProvider, type ArchiveCreateParams, type ArchiveUpdateParams, type ArchiveListParams, type ArchivesArrayPage, } from "./archives/archives.js";
|
|
4
4
|
export { Batches, type BatchJob, type BatchCancelResponse, type BatchCreateParams, type BatchListParams, type BatchJobsArrayPage, } from "./batches/batches.js";
|
|
5
5
|
export { Blocks, type BlockResponse, type CreateBlock, type BlockDeleteResponse, type BlockCreateParams, type BlockUpdateParams, type BlockListParams, type BlockResponsesArrayPage, } from "./blocks/blocks.js";
|
|
6
|
+
export { Conversations, type Conversation, type CreateConversation, type ConversationListResponse, type ConversationCreateParams, type ConversationListParams, } from "./conversations/conversations.js";
|
|
6
7
|
export { Folders, type Folder, type FolderDeleteResponse, type FolderCreateParams, type FolderUpdateParams, type FolderListParams, type FoldersArrayPage, } from "./folders/folders.js";
|
|
7
8
|
export { Groups, type DynamicManager, type Group, type ManagerType, type RoundRobinManager, type SleeptimeManager, type SupervisorManager, type VoiceSleeptimeManager, type GroupDeleteResponse, type GroupCreateParams, type GroupUpdateParams, type GroupListParams, type GroupsArrayPage, } from "./groups/groups.js";
|
|
8
9
|
export { Identities, type Identity, type IdentityProperty, type IdentityType, type IdentityDeleteResponse, type IdentityCreateParams, type IdentityUpdateParams, type IdentityListParams, type IdentityUpsertParams, type IdentitiesArrayPage, } from "./identities/identities.js";
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B;OACM,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAi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M,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB;OACM,EACL,MAAM,EACN,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EAAE,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OAChF,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE;OAC3D,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,IAAI,EACT,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,KAAK,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB;OACM,EAAE,KAAK,cAAc,EAAE"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Tools = exports.Templates = exports.Tags = exports.Steps = exports.Runs = exports.Passages = exports.Models = exports.Messages = exports.McpServers = exports.Identities = exports.Groups = exports.Folders = exports.Blocks = exports.Batches = exports.Archives = exports.Agents = exports.AccessTokens = void 0;
|
|
4
|
+
exports.Tools = exports.Templates = exports.Tags = exports.Steps = exports.Runs = exports.Passages = exports.Models = exports.Messages = exports.McpServers = exports.Identities = exports.Groups = exports.Folders = exports.Conversations = exports.Blocks = exports.Batches = exports.Archives = exports.Agents = exports.AccessTokens = void 0;
|
|
5
5
|
var access_tokens_1 = require("./access-tokens.js");
|
|
6
6
|
Object.defineProperty(exports, "AccessTokens", { enumerable: true, get: function () { return access_tokens_1.AccessTokens; } });
|
|
7
7
|
var agents_1 = require("./agents/agents.js");
|
|
@@ -12,6 +12,8 @@ var batches_1 = require("./batches/batches.js");
|
|
|
12
12
|
Object.defineProperty(exports, "Batches", { enumerable: true, get: function () { return batches_1.Batches; } });
|
|
13
13
|
var blocks_1 = require("./blocks/blocks.js");
|
|
14
14
|
Object.defineProperty(exports, "Blocks", { enumerable: true, get: function () { return blocks_1.Blocks; } });
|
|
15
|
+
var conversations_1 = require("./conversations/conversations.js");
|
|
16
|
+
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } });
|
|
15
17
|
var folders_1 = require("./folders/folders.js");
|
|
16
18
|
Object.defineProperty(exports, "Folders", { enumerable: true, get: function () { return folders_1.Folders; } });
|
|
17
19
|
var groups_1 = require("./groups/groups.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAQyB;AAPvB,6GAAA,YAAY,OAAA;AAQd,6CAuCyB;AAtCvB,gGAAA,MAAM,OAAA;AAuCR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,QAAQ,OAAA;AACjB,uCAAsF;AAA7E,4FAAA,IAAI,OAAA;AACb,0CAMuB;AALrB,8FAAA,KAAK,OAAA;AAMP,kCAAwE;AAA/D,4FAAA,IAAI,OAAA;AACb,sDAQ+B;AAP7B,sGAAA,SAAS,OAAA;AAQX,oCAkBiB;AAjBf,8FAAA,KAAK,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ export { Agents, } from "./agents/agents.mjs";
|
|
|
4
4
|
export { Archives, } from "./archives/archives.mjs";
|
|
5
5
|
export { Batches, } from "./batches/batches.mjs";
|
|
6
6
|
export { Blocks, } from "./blocks/blocks.mjs";
|
|
7
|
+
export { Conversations, } from "./conversations/conversations.mjs";
|
|
7
8
|
export { Folders, } from "./folders/folders.mjs";
|
|
8
9
|
export { Groups, } from "./groups/groups.mjs";
|
|
9
10
|
export { Identities, } from "./identities/identities.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAOb;OACM,EACL,MAAM,GAsCP;OACM,EACL,QAAQ,GAOT;OACM,EACL,OAAO,GAMR;OACM,EACL,MAAM,GAQP;OACM,EACL,OAAO,GAOR;OACM,EACL,MAAM,GAaP;OACM,EACL,UAAU,GAUX;OACM,EACL,UAAU,GAkBX;OACM,EACL,QAAQ,GAOT;OACM,EACL,MAAM,GASP;OACM,EAAE,QAAQ,EAAsE;OAChF,EAAE,IAAI,EAAqD;OAC3D,EACL,KAAK,GAKN;OACM,EAAE,IAAI,EAA4C;OAClD,EACL,SAAS,GAOV;OACM,EACL,KAAK,GAiBN"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAOb;OACM,EACL,MAAM,GAsCP;OACM,EACL,QAAQ,GAOT;OACM,EACL,OAAO,GAMR;OACM,EACL,MAAM,GAQP;OACM,EACL,aAAa,GAMd;OACM,EACL,OAAO,GAOR;OACM,EACL,MAAM,GAaP;OACM,EACL,UAAU,GAUX;OACM,EACL,UAAU,GAkBX;OACM,EACL,QAAQ,GAOT;OACM,EACL,MAAM,GASP;OACM,EAAE,QAAQ,EAAsE;OAChF,EAAE,IAAI,EAAqD;OAC3D,EACL,KAAK,GAKN;OACM,EAAE,IAAI,EAA4C;OAClD,EACL,SAAS,GAOV;OACM,EACL,KAAK,GAiBN"}
|
package/src/client.ts
CHANGED
|
@@ -135,6 +135,14 @@ import {
|
|
|
135
135
|
Blocks,
|
|
136
136
|
CreateBlock,
|
|
137
137
|
} from './resources/blocks/blocks';
|
|
138
|
+
import {
|
|
139
|
+
Conversation,
|
|
140
|
+
ConversationCreateParams,
|
|
141
|
+
ConversationListParams,
|
|
142
|
+
ConversationListResponse,
|
|
143
|
+
Conversations,
|
|
144
|
+
CreateConversation,
|
|
145
|
+
} from './resources/conversations/conversations';
|
|
138
146
|
import {
|
|
139
147
|
Folder,
|
|
140
148
|
FolderCreateParams,
|
|
@@ -978,6 +986,7 @@ export class Letta {
|
|
|
978
986
|
messages: API.Messages = new API.Messages(this);
|
|
979
987
|
passages: API.Passages = new API.Passages(this);
|
|
980
988
|
batches: API.Batches = new API.Batches(this);
|
|
989
|
+
conversations: API.Conversations = new API.Conversations(this);
|
|
981
990
|
accessTokens: API.AccessTokens = new API.AccessTokens(this);
|
|
982
991
|
}
|
|
983
992
|
|
|
@@ -997,6 +1006,7 @@ Letta.Groups = Groups;
|
|
|
997
1006
|
Letta.Messages = Messages;
|
|
998
1007
|
Letta.Passages = Passages;
|
|
999
1008
|
Letta.Batches = Batches;
|
|
1009
|
+
Letta.Conversations = Conversations;
|
|
1000
1010
|
Letta.AccessTokens = AccessTokens;
|
|
1001
1011
|
|
|
1002
1012
|
export declare namespace Letta {
|
|
@@ -1223,6 +1233,15 @@ export declare namespace Letta {
|
|
|
1223
1233
|
type BatchListParams as BatchListParams,
|
|
1224
1234
|
};
|
|
1225
1235
|
|
|
1236
|
+
export {
|
|
1237
|
+
Conversations as Conversations,
|
|
1238
|
+
type Conversation as Conversation,
|
|
1239
|
+
type CreateConversation as CreateConversation,
|
|
1240
|
+
type ConversationListResponse as ConversationListResponse,
|
|
1241
|
+
type ConversationCreateParams as ConversationCreateParams,
|
|
1242
|
+
type ConversationListParams as ConversationListParams,
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1226
1245
|
export {
|
|
1227
1246
|
AccessTokens as AccessTokens,
|
|
1228
1247
|
type AccessTokenCreateResponse as AccessTokenCreateResponse,
|
|
@@ -118,9 +118,16 @@ export class Messages extends APIResource {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* Process a user message and return the agent's response.
|
|
122
|
-
*
|
|
123
|
-
*
|
|
121
|
+
* Process a user message and return the agent's response.
|
|
122
|
+
*
|
|
123
|
+
* Deprecated: Use the `POST /{agent_id}/messages` endpoint with `streaming=true`
|
|
124
|
+
* in the request body instead.
|
|
125
|
+
*
|
|
126
|
+
* This endpoint accepts a message from a user and processes it through the agent.
|
|
127
|
+
* It will stream the steps of the response always, and stream the tokens if
|
|
128
|
+
* 'stream_tokens' is set to True.
|
|
129
|
+
*
|
|
130
|
+
* @deprecated
|
|
124
131
|
*/
|
|
125
132
|
stream(
|
|
126
133
|
agentID: string,
|
|
@@ -1490,6 +1497,11 @@ export interface Run {
|
|
|
1490
1497
|
*/
|
|
1491
1498
|
completed_at?: string | null;
|
|
1492
1499
|
|
|
1500
|
+
/**
|
|
1501
|
+
* The unique identifier of the conversation associated with the run.
|
|
1502
|
+
*/
|
|
1503
|
+
conversation_id?: string | null;
|
|
1504
|
+
|
|
1493
1505
|
/**
|
|
1494
1506
|
* The timestamp when the run was created.
|
|
1495
1507
|
*/
|
|
@@ -2049,6 +2061,12 @@ export interface MessageListParams extends ArrayPageParams {
|
|
|
2049
2061
|
*/
|
|
2050
2062
|
include_err?: boolean | null;
|
|
2051
2063
|
|
|
2064
|
+
/**
|
|
2065
|
+
* Filter to only return specified message types. If None (default), returns all
|
|
2066
|
+
* message types.
|
|
2067
|
+
*/
|
|
2068
|
+
message_types?: Array<MessageType> | null;
|
|
2069
|
+
|
|
2052
2070
|
/**
|
|
2053
2071
|
* @deprecated Whether to use assistant messages
|
|
2054
2072
|
*/
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as MessagesAPI from './messages';
|
|
5
|
+
import {
|
|
6
|
+
MessageCreateParams,
|
|
7
|
+
MessageListParams,
|
|
8
|
+
MessageListResponse,
|
|
9
|
+
MessageStreamParams,
|
|
10
|
+
MessageStreamResponse,
|
|
11
|
+
Messages,
|
|
12
|
+
} from './messages';
|
|
13
|
+
import { APIPromise } from '../../core/api-promise';
|
|
14
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
15
|
+
import { path } from '../../internal/utils/path';
|
|
16
|
+
|
|
17
|
+
export class Conversations extends APIResource {
|
|
18
|
+
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Create a new conversation for an agent.
|
|
22
|
+
*/
|
|
23
|
+
create(params: ConversationCreateParams, options?: RequestOptions): APIPromise<Conversation> {
|
|
24
|
+
const { agent_id, ...body } = params;
|
|
25
|
+
return this._client.post('/v1/conversations/', { query: { agent_id }, body, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a specific conversation.
|
|
30
|
+
*/
|
|
31
|
+
retrieve(conversationID: string, options?: RequestOptions): APIPromise<Conversation> {
|
|
32
|
+
return this._client.get(path`/v1/conversations/${conversationID}`, options);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* List all conversations for an agent.
|
|
37
|
+
*/
|
|
38
|
+
list(query: ConversationListParams, options?: RequestOptions): APIPromise<ConversationListResponse> {
|
|
39
|
+
return this._client.get('/v1/conversations/', { query, ...options });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Represents a conversation on an agent for concurrent messaging.
|
|
45
|
+
*/
|
|
46
|
+
export interface Conversation {
|
|
47
|
+
/**
|
|
48
|
+
* The unique identifier of the conversation.
|
|
49
|
+
*/
|
|
50
|
+
id: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The ID of the agent this conversation belongs to.
|
|
54
|
+
*/
|
|
55
|
+
agent_id: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The timestamp when the object was created.
|
|
59
|
+
*/
|
|
60
|
+
created_at?: string | null;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The id of the user that made this object.
|
|
64
|
+
*/
|
|
65
|
+
created_by_id?: string | null;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The IDs of in-context messages for the conversation.
|
|
69
|
+
*/
|
|
70
|
+
in_context_message_ids?: Array<string>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The id of the user that made this object.
|
|
74
|
+
*/
|
|
75
|
+
last_updated_by_id?: string | null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* A summary of the conversation.
|
|
79
|
+
*/
|
|
80
|
+
summary?: string | null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The timestamp when the object was last updated.
|
|
84
|
+
*/
|
|
85
|
+
updated_at?: string | null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Request model for creating a new conversation.
|
|
90
|
+
*/
|
|
91
|
+
export interface CreateConversation {
|
|
92
|
+
/**
|
|
93
|
+
* A summary of the conversation.
|
|
94
|
+
*/
|
|
95
|
+
summary?: string | null;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type ConversationListResponse = Array<Conversation>;
|
|
99
|
+
|
|
100
|
+
export interface ConversationCreateParams {
|
|
101
|
+
/**
|
|
102
|
+
* Query param: The agent ID to create a conversation for
|
|
103
|
+
*/
|
|
104
|
+
agent_id: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Body param: A summary of the conversation.
|
|
108
|
+
*/
|
|
109
|
+
summary?: string | null;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface ConversationListParams {
|
|
113
|
+
/**
|
|
114
|
+
* The agent ID to list conversations for
|
|
115
|
+
*/
|
|
116
|
+
agent_id: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Cursor for pagination (conversation ID)
|
|
120
|
+
*/
|
|
121
|
+
after?: string | null;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Maximum number of conversations to return
|
|
125
|
+
*/
|
|
126
|
+
limit?: number;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
Conversations.Messages = Messages;
|
|
130
|
+
|
|
131
|
+
export declare namespace Conversations {
|
|
132
|
+
export {
|
|
133
|
+
type Conversation as Conversation,
|
|
134
|
+
type CreateConversation as CreateConversation,
|
|
135
|
+
type ConversationListResponse as ConversationListResponse,
|
|
136
|
+
type ConversationCreateParams as ConversationCreateParams,
|
|
137
|
+
type ConversationListParams as ConversationListParams,
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export {
|
|
141
|
+
Messages as Messages,
|
|
142
|
+
type MessageListResponse as MessageListResponse,
|
|
143
|
+
type MessageStreamResponse as MessageStreamResponse,
|
|
144
|
+
type MessageCreateParams as MessageCreateParams,
|
|
145
|
+
type MessageListParams as MessageListParams,
|
|
146
|
+
type MessageStreamParams as MessageStreamParams,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Conversations,
|
|
5
|
+
type Conversation,
|
|
6
|
+
type CreateConversation,
|
|
7
|
+
type ConversationListResponse,
|
|
8
|
+
type ConversationCreateParams,
|
|
9
|
+
type ConversationListParams,
|
|
10
|
+
} from './conversations';
|
|
11
|
+
export {
|
|
12
|
+
Messages,
|
|
13
|
+
type MessageListResponse,
|
|
14
|
+
type MessageStreamResponse,
|
|
15
|
+
type MessageCreateParams,
|
|
16
|
+
type MessageListParams,
|
|
17
|
+
type MessageStreamParams,
|
|
18
|
+
} from './messages';
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as AgentsAPI from '../agents/agents';
|
|
5
|
+
import * as MessagesAPI from '../agents/messages';
|
|
6
|
+
import { APIPromise } from '../../core/api-promise';
|
|
7
|
+
import { Stream } from '../../core/streaming';
|
|
8
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
9
|
+
import { path } from '../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class Messages extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Send a message to a conversation and get a streaming response.
|
|
14
|
+
*
|
|
15
|
+
* This endpoint sends a message to an existing conversation and streams the
|
|
16
|
+
* agent's response back.
|
|
17
|
+
*/
|
|
18
|
+
create(
|
|
19
|
+
conversationID: string,
|
|
20
|
+
body: MessageCreateParams,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): APIPromise<Stream<MessagesAPI.LettaStreamingResponse>> {
|
|
23
|
+
return this._client.post(path`/v1/conversations/${conversationID}/messages`, {
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
stream: true,
|
|
27
|
+
}) as APIPromise<Stream<MessagesAPI.LettaStreamingResponse>>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* List all messages in a conversation.
|
|
32
|
+
*
|
|
33
|
+
* Returns LettaMessage objects (UserMessage, AssistantMessage, etc.) for all
|
|
34
|
+
* messages in the conversation, ordered by position (oldest first), with support
|
|
35
|
+
* for cursor-based pagination.
|
|
36
|
+
*/
|
|
37
|
+
list(
|
|
38
|
+
conversationID: string,
|
|
39
|
+
query: MessageListParams | null | undefined = {},
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<MessageListResponse> {
|
|
42
|
+
return this._client.get(path`/v1/conversations/${conversationID}/messages`, { query, ...options });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Resume the stream for the most recent active run in a conversation.
|
|
47
|
+
*
|
|
48
|
+
* This endpoint allows you to reconnect to an active background stream for a
|
|
49
|
+
* conversation, enabling recovery from network interruptions.
|
|
50
|
+
*/
|
|
51
|
+
stream(
|
|
52
|
+
conversationID: string,
|
|
53
|
+
body: MessageStreamParams | undefined = {},
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): APIPromise<Stream<MessagesAPI.LettaStreamingResponse>> {
|
|
56
|
+
return this._client.post(path`/v1/conversations/${conversationID}/stream`, {
|
|
57
|
+
body,
|
|
58
|
+
...options,
|
|
59
|
+
stream: true,
|
|
60
|
+
}) as APIPromise<Stream<MessagesAPI.LettaStreamingResponse>>;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type MessageListResponse = Array<MessagesAPI.Message>;
|
|
65
|
+
|
|
66
|
+
export type MessageStreamResponse = unknown;
|
|
67
|
+
|
|
68
|
+
export interface MessageCreateParams {
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated The name of the message argument in the designated message tool.
|
|
71
|
+
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
72
|
+
* onward.
|
|
73
|
+
*/
|
|
74
|
+
assistant_message_tool_kwarg?: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated The name of the designated message tool. Still supported for legacy
|
|
78
|
+
* agent types, but deprecated for letta_v1_agent onward.
|
|
79
|
+
*/
|
|
80
|
+
assistant_message_tool_name?: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Whether to process the request in the background (only used when
|
|
84
|
+
* streaming=true).
|
|
85
|
+
*/
|
|
86
|
+
background?: boolean;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Client-side tools that the agent can call. When the agent calls a client-side
|
|
90
|
+
* tool, execution pauses and returns control to the client to execute the tool and
|
|
91
|
+
* provide the result via a ToolReturn.
|
|
92
|
+
*/
|
|
93
|
+
client_tools?: Array<MessageCreateParams.ClientTool> | null;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated If set to True, enables reasoning before responses or tool calls
|
|
97
|
+
* from the agent.
|
|
98
|
+
*/
|
|
99
|
+
enable_thinking?: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Whether to include periodic keepalive ping messages in the stream to prevent
|
|
103
|
+
* connection timeouts (only used when streaming=true).
|
|
104
|
+
*/
|
|
105
|
+
include_pings?: boolean;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Only return specified message types in the response. If `None` (default) returns
|
|
109
|
+
* all messages.
|
|
110
|
+
*/
|
|
111
|
+
include_return_message_types?: Array<MessagesAPI.MessageType> | null;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Syntactic sugar for a single user message. Equivalent to messages=[{'role':
|
|
115
|
+
* 'user', 'content': input}].
|
|
116
|
+
*/
|
|
117
|
+
input?:
|
|
118
|
+
| string
|
|
119
|
+
| Array<
|
|
120
|
+
| MessagesAPI.TextContent
|
|
121
|
+
| MessagesAPI.ImageContent
|
|
122
|
+
| MessagesAPI.ToolCallContent
|
|
123
|
+
| MessagesAPI.ToolReturnContent
|
|
124
|
+
| MessagesAPI.ReasoningContent
|
|
125
|
+
| MessagesAPI.RedactedReasoningContent
|
|
126
|
+
| MessagesAPI.OmittedReasoningContent
|
|
127
|
+
| MessageCreateParams.SummarizedReasoningContent
|
|
128
|
+
>
|
|
129
|
+
| null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Maximum number of steps the agent should take to process the request.
|
|
133
|
+
*/
|
|
134
|
+
max_steps?: number;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The messages to be sent to the agent.
|
|
138
|
+
*/
|
|
139
|
+
messages?: Array<AgentsAPI.MessageCreate | MessagesAPI.ApprovalCreate> | null;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Flag to determine if individual tokens should be streamed, rather than streaming
|
|
143
|
+
* per step (only used when streaming=true).
|
|
144
|
+
*/
|
|
145
|
+
stream_tokens?: boolean;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* If True, returns a streaming response (Server-Sent Events). If False (default),
|
|
149
|
+
* returns a complete response.
|
|
150
|
+
*/
|
|
151
|
+
streaming?: boolean;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated Whether the server should parse specific tool call arguments
|
|
155
|
+
* (default `send_message`) as `AssistantMessage` objects. Still supported for
|
|
156
|
+
* legacy agent types, but deprecated for letta_v1_agent onward.
|
|
157
|
+
*/
|
|
158
|
+
use_assistant_message?: boolean;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export namespace MessageCreateParams {
|
|
162
|
+
/**
|
|
163
|
+
* Schema for a client-side tool passed in the request.
|
|
164
|
+
*
|
|
165
|
+
* Client-side tools are executed by the client, not the server. When the agent
|
|
166
|
+
* calls a client-side tool, execution pauses and returns control to the client to
|
|
167
|
+
* execute the tool and provide the result.
|
|
168
|
+
*/
|
|
169
|
+
export interface ClientTool {
|
|
170
|
+
/**
|
|
171
|
+
* The name of the tool function
|
|
172
|
+
*/
|
|
173
|
+
name: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Description of what the tool does
|
|
177
|
+
*/
|
|
178
|
+
description?: string | null;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* JSON Schema for the function parameters
|
|
182
|
+
*/
|
|
183
|
+
parameters?: { [key: string]: unknown } | null;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* The style of reasoning content returned by the OpenAI Responses API
|
|
188
|
+
*/
|
|
189
|
+
export interface SummarizedReasoningContent {
|
|
190
|
+
/**
|
|
191
|
+
* The unique identifier for this reasoning step.
|
|
192
|
+
*/
|
|
193
|
+
id: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Summaries of the reasoning content.
|
|
197
|
+
*/
|
|
198
|
+
summary: Array<SummarizedReasoningContent.Summary>;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The encrypted reasoning content.
|
|
202
|
+
*/
|
|
203
|
+
encrypted_content?: string;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Indicates this is a summarized reasoning step.
|
|
207
|
+
*/
|
|
208
|
+
type?: 'summarized_reasoning';
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export namespace SummarizedReasoningContent {
|
|
212
|
+
export interface Summary {
|
|
213
|
+
/**
|
|
214
|
+
* The index of the summary part.
|
|
215
|
+
*/
|
|
216
|
+
index: number;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* The text of the summary part.
|
|
220
|
+
*/
|
|
221
|
+
text: string;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface MessageListParams {
|
|
227
|
+
/**
|
|
228
|
+
* Message ID cursor for pagination. Returns messages that come after this message
|
|
229
|
+
* ID in the conversation
|
|
230
|
+
*/
|
|
231
|
+
after?: string | null;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Message ID cursor for pagination. Returns messages that come before this message
|
|
235
|
+
* ID in the conversation
|
|
236
|
+
*/
|
|
237
|
+
before?: string | null;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Maximum number of messages to return
|
|
241
|
+
*/
|
|
242
|
+
limit?: number | null;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface MessageStreamParams {
|
|
246
|
+
/**
|
|
247
|
+
* Number of entries to read per batch.
|
|
248
|
+
*/
|
|
249
|
+
batch_size?: number | null;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Whether to include periodic keepalive ping messages in the stream to prevent
|
|
253
|
+
* connection timeouts.
|
|
254
|
+
*/
|
|
255
|
+
include_pings?: boolean | null;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Seconds to wait between polls when no new data.
|
|
259
|
+
*/
|
|
260
|
+
poll_interval?: number | null;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Sequence id to use as a cursor for pagination. Response will start streaming
|
|
264
|
+
* after this chunk sequence id
|
|
265
|
+
*/
|
|
266
|
+
starting_after?: number;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export declare namespace Messages {
|
|
270
|
+
export {
|
|
271
|
+
type MessageListResponse as MessageListResponse,
|
|
272
|
+
type MessageStreamResponse as MessageStreamResponse,
|
|
273
|
+
type MessageCreateParams as MessageCreateParams,
|
|
274
|
+
type MessageListParams as MessageListParams,
|
|
275
|
+
type MessageStreamParams as MessageStreamParams,
|
|
276
|
+
};
|
|
277
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -76,6 +76,14 @@ export {
|
|
|
76
76
|
type BlockListParams,
|
|
77
77
|
type BlockResponsesArrayPage,
|
|
78
78
|
} from './blocks/blocks';
|
|
79
|
+
export {
|
|
80
|
+
Conversations,
|
|
81
|
+
type Conversation,
|
|
82
|
+
type CreateConversation,
|
|
83
|
+
type ConversationListResponse,
|
|
84
|
+
type ConversationCreateParams,
|
|
85
|
+
type ConversationListParams,
|
|
86
|
+
} from './conversations/conversations';
|
|
79
87
|
export {
|
|
80
88
|
Folders,
|
|
81
89
|
type Folder,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.6.
|
|
1
|
+
export const VERSION = '1.6.5'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.6.
|
|
1
|
+
export declare const VERSION = "1.6.5";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.6.
|
|
1
|
+
export declare const VERSION = "1.6.5";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.6.
|
|
1
|
+
export const VERSION = '1.6.5'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|