@letta-ai/letta-client 0.1.44 → 0.1.46
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/api/resources/agents/client/Client.d.ts +16 -0
- package/api/resources/agents/client/Client.js +77 -7
- package/api/resources/agents/client/requests/PassageUpdate.d.ts +38 -0
- package/api/resources/agents/client/requests/PassageUpdate.js +5 -0
- package/api/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/blocks/client/Client.d.ts +5 -5
- package/api/resources/agents/resources/blocks/client/Client.js +10 -10
- 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/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- 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/blocks/client/Client.js +6 -6
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +6 -6
- package/api/resources/sources/client/Client.js +6 -6
- 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/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +11 -11
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/Step.d.ts +2 -0
- package/dist/api/resources/agents/client/Client.d.ts +16 -0
- package/dist/api/resources/agents/client/Client.js +77 -7
- package/dist/api/resources/agents/client/requests/PassageUpdate.d.ts +38 -0
- package/dist/api/resources/agents/client/requests/PassageUpdate.js +5 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +5 -5
- package/dist/api/resources/agents/resources/blocks/client/Client.js +10 -10
- 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/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- 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/blocks/client/Client.js +6 -6
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +6 -6
- package/dist/api/resources/sources/client/Client.js +6 -6
- 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/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +11 -11
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/Step.d.ts +2 -0
- package/dist/serialization/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/index.js +2 -1
- package/dist/serialization/resources/agents/client/modifyPassage.d.ts +11 -0
- package/dist/serialization/resources/agents/client/modifyPassage.js +42 -0
- package/dist/serialization/resources/agents/client/requests/PassageUpdate.d.ts +25 -0
- package/dist/serialization/resources/agents/client/requests/PassageUpdate.js +56 -0
- package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/index.js +3 -1
- package/dist/serialization/types/Step.d.ts +1 -0
- package/dist/serialization/types/Step.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +86 -5
- package/serialization/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/agents/client/index.js +2 -1
- package/serialization/resources/agents/client/modifyPassage.d.ts +11 -0
- package/serialization/resources/agents/client/modifyPassage.js +42 -0
- package/serialization/resources/agents/client/requests/PassageUpdate.d.ts +25 -0
- package/serialization/resources/agents/client/requests/PassageUpdate.js +56 -0
- package/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/client/requests/index.js +3 -1
- package/serialization/types/Step.d.ts +1 -0
- package/serialization/types/Step.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
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.PassageUpdate = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const EmbeddingConfig_1 = require("../../../../types/EmbeddingConfig");
|
|
42
|
+
exports.PassageUpdate = core.serialization.object({
|
|
43
|
+
createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
|
|
44
|
+
lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
|
|
45
|
+
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
46
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
47
|
+
isDeleted: core.serialization.property("is_deleted", core.serialization.boolean().optional()),
|
|
48
|
+
passageUpdateAgentId: core.serialization.property("agent_id", core.serialization.string().optional()),
|
|
49
|
+
sourceId: core.serialization.property("source_id", core.serialization.string().optional()),
|
|
50
|
+
fileId: core.serialization.property("file_id", core.serialization.string().optional()),
|
|
51
|
+
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
52
|
+
text: core.serialization.string().optional(),
|
|
53
|
+
embedding: core.serialization.list(core.serialization.number()).optional(),
|
|
54
|
+
embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
|
|
55
|
+
id: core.serialization.string(),
|
|
56
|
+
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentsSearchRequest = exports.UpdateAgent = exports.CreateAgentRequest = void 0;
|
|
3
|
+
exports.AgentsSearchRequest = exports.PassageUpdate = exports.UpdateAgent = exports.CreateAgentRequest = void 0;
|
|
4
4
|
var CreateAgentRequest_1 = require("./CreateAgentRequest");
|
|
5
5
|
Object.defineProperty(exports, "CreateAgentRequest", { enumerable: true, get: function () { return CreateAgentRequest_1.CreateAgentRequest; } });
|
|
6
6
|
var UpdateAgent_1 = require("./UpdateAgent");
|
|
7
7
|
Object.defineProperty(exports, "UpdateAgent", { enumerable: true, get: function () { return UpdateAgent_1.UpdateAgent; } });
|
|
8
|
+
var PassageUpdate_1 = require("./PassageUpdate");
|
|
9
|
+
Object.defineProperty(exports, "PassageUpdate", { enumerable: true, get: function () { return PassageUpdate_1.PassageUpdate; } });
|
|
8
10
|
var AgentsSearchRequest_1 = require("./AgentsSearchRequest");
|
|
9
11
|
Object.defineProperty(exports, "AgentsSearchRequest", { enumerable: true, get: function () { return AgentsSearchRequest_1.AgentsSearchRequest; } });
|
|
@@ -54,5 +54,6 @@ exports.Step = core.serialization.object({
|
|
|
54
54
|
completionTokensDetails: core.serialization.property("completion_tokens_details", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
55
55
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
56
56
|
tid: core.serialization.string().optional(),
|
|
57
|
+
traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
|
|
57
58
|
messages: core.serialization.list(Message_1.Message).optional(),
|
|
58
59
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.46";
|
package/version.js
CHANGED