@letta-ai/letta-client 0.1.193 → 0.1.194
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.js +11 -11
- package/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +1 -0
- 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/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- 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.d.ts +2 -9
- package/api/resources/agents/resources/passages/client/Client.js +14 -42
- package/api/resources/agents/resources/passages/client/requests/CreateArchivalMemory.d.ts +4 -0
- package/api/resources/agents/resources/passages/client/requests/index.d.ts +0 -1
- 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.js +9 -9
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- 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/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.d.ts +8 -0
- package/api/resources/models/client/Client.js +52 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.js +5 -5
- 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 +3 -3
- 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 +8 -8
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/LlmConfig.d.ts +2 -0
- package/api/types/StopReasonType.d.ts +2 -1
- package/api/types/StopReasonType.js +1 -0
- package/dist/api/resources/agents/client/Client.js +11 -11
- package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +1 -0
- 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/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- 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.d.ts +2 -9
- package/dist/api/resources/agents/resources/passages/client/Client.js +14 -42
- package/dist/api/resources/agents/resources/passages/client/requests/CreateArchivalMemory.d.ts +4 -0
- package/dist/api/resources/agents/resources/passages/client/requests/index.d.ts +0 -1
- 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.js +9 -9
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- 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/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.d.ts +8 -0
- package/dist/api/resources/models/client/Client.js +52 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.js +5 -5
- 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 +3 -3
- 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 +8 -8
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/LlmConfig.d.ts +2 -0
- package/dist/api/types/StopReasonType.d.ts +2 -1
- package/dist/api/types/StopReasonType.js +1 -0
- package/dist/serialization/resources/agents/resources/passages/client/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/passages/client/index.js +1 -2
- package/dist/serialization/resources/agents/resources/passages/client/requests/CreateArchivalMemory.d.ts +2 -0
- package/dist/serialization/resources/agents/resources/passages/client/requests/CreateArchivalMemory.js +2 -0
- package/dist/serialization/resources/agents/resources/passages/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/passages/client/requests/index.js +1 -3
- package/dist/serialization/types/LlmConfig.d.ts +1 -0
- package/dist/serialization/types/LlmConfig.js +1 -0
- package/dist/serialization/types/StopReasonType.d.ts +1 -1
- package/dist/serialization/types/StopReasonType.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +42 -27
- package/serialization/resources/agents/resources/passages/client/index.d.ts +0 -1
- package/serialization/resources/agents/resources/passages/client/index.js +1 -2
- package/serialization/resources/agents/resources/passages/client/requests/CreateArchivalMemory.d.ts +2 -0
- package/serialization/resources/agents/resources/passages/client/requests/CreateArchivalMemory.js +2 -0
- package/serialization/resources/agents/resources/passages/client/requests/index.d.ts +0 -1
- package/serialization/resources/agents/resources/passages/client/requests/index.js +1 -3
- package/serialization/types/LlmConfig.d.ts +1 -0
- package/serialization/types/LlmConfig.js +1 -0
- package/serialization/types/StopReasonType.d.ts +1 -1
- package/serialization/types/StopReasonType.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +0 -40
- package/api/resources/agents/resources/passages/client/requests/PassageUpdate.js +0 -5
- package/dist/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +0 -40
- package/dist/api/resources/agents/resources/passages/client/requests/PassageUpdate.js +0 -5
- package/dist/serialization/resources/agents/resources/passages/client/modify.d.ts +0 -11
- package/dist/serialization/resources/agents/resources/passages/client/modify.js +0 -42
- package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +0 -26
- package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +0 -57
- package/serialization/resources/agents/resources/passages/client/modify.d.ts +0 -11
- package/serialization/resources/agents/resources/passages/client/modify.js +0 -42
- package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +0 -26
- package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +0 -57
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Letta from "../../../../../../index";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* id: "id"
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
|
-
export interface PassageUpdate {
|
|
12
|
-
/** The id of the user that made this object. */
|
|
13
|
-
createdById?: string;
|
|
14
|
-
/** The id of the user that made this object. */
|
|
15
|
-
lastUpdatedById?: string;
|
|
16
|
-
/** The timestamp when the object was created. */
|
|
17
|
-
createdAt?: Date;
|
|
18
|
-
/** The timestamp when the object was last updated. */
|
|
19
|
-
updatedAt?: Date;
|
|
20
|
-
/** Whether this passage is deleted or not. */
|
|
21
|
-
isDeleted?: boolean;
|
|
22
|
-
/** The unique identifier of the archive containing this passage. */
|
|
23
|
-
archiveId?: string;
|
|
24
|
-
/** The data source of the passage. */
|
|
25
|
-
sourceId?: string;
|
|
26
|
-
/** The unique identifier of the file associated with the passage. */
|
|
27
|
-
fileId?: string;
|
|
28
|
-
/** The name of the file (only for source passages). */
|
|
29
|
-
fileName?: string;
|
|
30
|
-
/** The metadata of the passage. */
|
|
31
|
-
metadata?: Record<string, unknown>;
|
|
32
|
-
/** The text of the passage. */
|
|
33
|
-
text?: string;
|
|
34
|
-
/** The embedding of the passage. */
|
|
35
|
-
embedding?: number[];
|
|
36
|
-
/** The embedding configuration used by the passage. */
|
|
37
|
-
embeddingConfig?: Letta.EmbeddingConfig;
|
|
38
|
-
/** The unique identifier of the passage. */
|
|
39
|
-
id: string;
|
|
40
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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.agents.passages.modify.Response.Raw, Letta.Passage[]>;
|
|
9
|
-
export declare namespace Response {
|
|
10
|
-
type Raw = Passage.Raw[];
|
|
11
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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);
|
package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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 PassageUpdate: core.serialization.Schema<serializers.agents.PassageUpdate.Raw, Letta.agents.PassageUpdate>;
|
|
9
|
-
export declare namespace PassageUpdate {
|
|
10
|
-
interface Raw {
|
|
11
|
-
created_by_id?: string | null;
|
|
12
|
-
last_updated_by_id?: string | null;
|
|
13
|
-
created_at?: string | null;
|
|
14
|
-
updated_at?: string | null;
|
|
15
|
-
is_deleted?: boolean | null;
|
|
16
|
-
archive_id?: string | null;
|
|
17
|
-
source_id?: string | null;
|
|
18
|
-
file_id?: string | null;
|
|
19
|
-
file_name?: string | null;
|
|
20
|
-
metadata_?: Record<string, unknown> | null;
|
|
21
|
-
text?: string | null;
|
|
22
|
-
embedding?: number[] | null;
|
|
23
|
-
embedding_config?: EmbeddingConfig.Raw | null;
|
|
24
|
-
id: string;
|
|
25
|
-
}
|
|
26
|
-
}
|
package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
archiveId: core.serialization.property("archive_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
|
-
fileName: core.serialization.property("file_name", core.serialization.string().optional()),
|
|
52
|
-
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
53
|
-
text: core.serialization.string().optional(),
|
|
54
|
-
embedding: core.serialization.list(core.serialization.number()).optional(),
|
|
55
|
-
embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
|
|
56
|
-
id: core.serialization.string(),
|
|
57
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
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.agents.passages.modify.Response.Raw, Letta.Passage[]>;
|
|
9
|
-
export declare namespace Response {
|
|
10
|
-
type Raw = Passage.Raw[];
|
|
11
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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);
|
package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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 PassageUpdate: core.serialization.Schema<serializers.agents.PassageUpdate.Raw, Letta.agents.PassageUpdate>;
|
|
9
|
-
export declare namespace PassageUpdate {
|
|
10
|
-
interface Raw {
|
|
11
|
-
created_by_id?: string | null;
|
|
12
|
-
last_updated_by_id?: string | null;
|
|
13
|
-
created_at?: string | null;
|
|
14
|
-
updated_at?: string | null;
|
|
15
|
-
is_deleted?: boolean | null;
|
|
16
|
-
archive_id?: string | null;
|
|
17
|
-
source_id?: string | null;
|
|
18
|
-
file_id?: string | null;
|
|
19
|
-
file_name?: string | null;
|
|
20
|
-
metadata_?: Record<string, unknown> | null;
|
|
21
|
-
text?: string | null;
|
|
22
|
-
embedding?: number[] | null;
|
|
23
|
-
embedding_config?: EmbeddingConfig.Raw | null;
|
|
24
|
-
id: string;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
archiveId: core.serialization.property("archive_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
|
-
fileName: core.serialization.property("file_name", core.serialization.string().optional()),
|
|
52
|
-
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
53
|
-
text: core.serialization.string().optional(),
|
|
54
|
-
embedding: core.serialization.list(core.serialization.number()).optional(),
|
|
55
|
-
embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
|
|
56
|
-
id: core.serialization.string(),
|
|
57
|
-
});
|