@letta-ai/letta-client 0.1.124 → 0.1.126
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 +2 -1
- package/api/resources/agents/client/Client.js +24 -12
- package/api/resources/agents/client/requests/AgentsRetrieveRequest.d.ts +13 -0
- package/api/resources/agents/client/requests/AgentsRetrieveRequest.js +5 -0
- package/api/resources/agents/client/requests/index.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/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 +6 -6
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddingModels/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 +4 -4
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +7 -7
- 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/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +17 -17
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/Base64Image.d.ts +12 -0
- package/api/types/Base64Image.js +5 -0
- package/api/types/ImageContent.d.ts +9 -0
- package/api/types/ImageContent.js +5 -0
- package/api/types/ImageContentSource.d.ts +8 -0
- package/api/types/ImageContentSource.js +5 -0
- package/api/types/LettaImage.d.ts +14 -0
- package/api/types/LettaImage.js +5 -0
- package/api/types/LettaMessageContentUnion.d.ts +1 -1
- package/api/types/LettaUserMessageContentUnion.d.ts +5 -0
- package/api/types/LettaUserMessageContentUnion.js +5 -0
- package/api/types/MessageContentItem.d.ts +1 -1
- package/api/types/UpdateUserMessageContent.d.ts +1 -1
- package/api/types/UrlImage.d.ts +8 -0
- package/api/types/UrlImage.js +5 -0
- package/api/types/UserMessageContent.d.ts +1 -1
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/dist/api/resources/agents/client/Client.d.ts +2 -1
- package/dist/api/resources/agents/client/Client.js +24 -12
- package/dist/api/resources/agents/client/requests/AgentsRetrieveRequest.d.ts +13 -0
- package/dist/api/resources/agents/client/requests/AgentsRetrieveRequest.js +5 -0
- package/dist/api/resources/agents/client/requests/index.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/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 +6 -6
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/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 +4 -4
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +7 -7
- 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/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +17 -17
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/Base64Image.d.ts +12 -0
- package/dist/api/types/Base64Image.js +5 -0
- package/dist/api/types/ImageContent.d.ts +9 -0
- package/dist/api/types/ImageContent.js +5 -0
- package/dist/api/types/ImageContentSource.d.ts +8 -0
- package/dist/api/types/ImageContentSource.js +5 -0
- package/dist/api/types/LettaImage.d.ts +14 -0
- package/dist/api/types/LettaImage.js +5 -0
- package/dist/api/types/LettaMessageContentUnion.d.ts +1 -1
- package/dist/api/types/LettaUserMessageContentUnion.d.ts +5 -0
- package/dist/api/types/LettaUserMessageContentUnion.js +5 -0
- package/dist/api/types/MessageContentItem.d.ts +1 -1
- package/dist/api/types/UpdateUserMessageContent.d.ts +1 -1
- package/dist/api/types/UrlImage.d.ts +8 -0
- package/dist/api/types/UrlImage.js +5 -0
- package/dist/api/types/UserMessageContent.d.ts +1 -1
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/serialization/types/Base64Image.d.ts +15 -0
- package/dist/serialization/types/Base64Image.js +46 -0
- package/dist/serialization/types/ImageContent.d.ts +14 -0
- package/dist/serialization/types/ImageContent.js +45 -0
- package/dist/serialization/types/ImageContentSource.d.ts +13 -0
- package/dist/serialization/types/ImageContentSource.js +44 -0
- package/dist/serialization/types/LettaImage.d.ts +16 -0
- package/dist/serialization/types/LettaImage.js +47 -0
- package/dist/serialization/types/LettaMessageContentUnion.d.ts +2 -1
- package/dist/serialization/types/LettaMessageContentUnion.js +2 -0
- package/dist/serialization/types/LettaUserMessageContentUnion.d.ts +12 -0
- package/dist/serialization/types/LettaUserMessageContentUnion.js +43 -0
- package/dist/serialization/types/MessageContentItem.d.ts +2 -1
- package/dist/serialization/types/MessageContentItem.js +2 -0
- package/dist/serialization/types/UpdateUserMessageContent.d.ts +2 -2
- package/dist/serialization/types/UpdateUserMessageContent.js +2 -2
- package/dist/serialization/types/UrlImage.d.ts +13 -0
- package/dist/serialization/types/UrlImage.js +44 -0
- package/dist/serialization/types/UserMessageContent.d.ts +2 -2
- package/dist/serialization/types/UserMessageContent.js +2 -2
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +9 -1
- package/serialization/types/Base64Image.d.ts +15 -0
- package/serialization/types/Base64Image.js +46 -0
- package/serialization/types/ImageContent.d.ts +14 -0
- package/serialization/types/ImageContent.js +45 -0
- package/serialization/types/ImageContentSource.d.ts +13 -0
- package/serialization/types/ImageContentSource.js +44 -0
- package/serialization/types/LettaImage.d.ts +16 -0
- package/serialization/types/LettaImage.js +47 -0
- package/serialization/types/LettaMessageContentUnion.d.ts +2 -1
- package/serialization/types/LettaMessageContentUnion.js +2 -0
- package/serialization/types/LettaUserMessageContentUnion.d.ts +12 -0
- package/serialization/types/LettaUserMessageContentUnion.js +43 -0
- package/serialization/types/MessageContentItem.d.ts +2 -1
- package/serialization/types/MessageContentItem.js +2 -0
- package/serialization/types/UpdateUserMessageContent.d.ts +2 -2
- package/serialization/types/UpdateUserMessageContent.js +2 -2
- package/serialization/types/UrlImage.d.ts +13 -0
- package/serialization/types/UrlImage.js +44 -0
- package/serialization/types/UserMessageContent.d.ts +2 -2
- package/serialization/types/UserMessageContent.js +2 -2
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export declare const Base64Image: core.serialization.ObjectSchema<serializers.Base64Image.Raw, Letta.Base64Image>;
|
|
8
|
+
export declare namespace Base64Image {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "base64";
|
|
11
|
+
media_type: string;
|
|
12
|
+
data: string;
|
|
13
|
+
detail?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.Base64Image = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.Base64Image = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("base64"),
|
|
43
|
+
mediaType: core.serialization.property("media_type", core.serialization.string()),
|
|
44
|
+
data: core.serialization.string(),
|
|
45
|
+
detail: core.serialization.string().optional(),
|
|
46
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { ImageContentSource } from "./ImageContentSource";
|
|
8
|
+
export declare const ImageContent: core.serialization.ObjectSchema<serializers.ImageContent.Raw, Letta.ImageContent>;
|
|
9
|
+
export declare namespace ImageContent {
|
|
10
|
+
interface Raw {
|
|
11
|
+
type: "image";
|
|
12
|
+
source: ImageContentSource.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.ImageContent = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const ImageContentSource_1 = require("./ImageContentSource");
|
|
42
|
+
exports.ImageContent = core.serialization.object({
|
|
43
|
+
type: core.serialization.stringLiteral("image"),
|
|
44
|
+
source: ImageContentSource_1.ImageContentSource,
|
|
45
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { Base64Image } from "./Base64Image";
|
|
8
|
+
import { LettaImage } from "./LettaImage";
|
|
9
|
+
import { UrlImage } from "./UrlImage";
|
|
10
|
+
export declare const ImageContentSource: core.serialization.Schema<serializers.ImageContentSource.Raw, Letta.ImageContentSource>;
|
|
11
|
+
export declare namespace ImageContentSource {
|
|
12
|
+
type Raw = Base64Image.Raw | LettaImage.Raw | UrlImage.Raw;
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.ImageContentSource = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const Base64Image_1 = require("./Base64Image");
|
|
42
|
+
const LettaImage_1 = require("./LettaImage");
|
|
43
|
+
const UrlImage_1 = require("./UrlImage");
|
|
44
|
+
exports.ImageContentSource = core.serialization.undiscriminatedUnion([Base64Image_1.Base64Image, LettaImage_1.LettaImage, UrlImage_1.UrlImage]);
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export declare const LettaImage: core.serialization.ObjectSchema<serializers.LettaImage.Raw, Letta.LettaImage>;
|
|
8
|
+
export declare namespace LettaImage {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "letta";
|
|
11
|
+
file_id: string;
|
|
12
|
+
media_type?: string | null;
|
|
13
|
+
data?: string | null;
|
|
14
|
+
detail?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.LettaImage = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.LettaImage = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("letta"),
|
|
43
|
+
fileId: core.serialization.property("file_id", core.serialization.string()),
|
|
44
|
+
mediaType: core.serialization.property("media_type", core.serialization.string().optional()),
|
|
45
|
+
data: core.serialization.string().optional(),
|
|
46
|
+
detail: core.serialization.string().optional(),
|
|
47
|
+
});
|
|
@@ -5,11 +5,12 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { TextContent } from "./TextContent";
|
|
8
|
+
import { ImageContent } from "./ImageContent";
|
|
8
9
|
import { ToolCallContent } from "./ToolCallContent";
|
|
9
10
|
import { ReasoningContent } from "./ReasoningContent";
|
|
10
11
|
import { RedactedReasoningContent } from "./RedactedReasoningContent";
|
|
11
12
|
import { OmittedReasoningContent } from "./OmittedReasoningContent";
|
|
12
13
|
export declare const LettaMessageContentUnion: core.serialization.Schema<serializers.LettaMessageContentUnion.Raw, Letta.LettaMessageContentUnion>;
|
|
13
14
|
export declare namespace LettaMessageContentUnion {
|
|
14
|
-
type Raw = TextContent.Raw | ToolCallContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | OmittedReasoningContent.Raw;
|
|
15
|
+
type Raw = TextContent.Raw | ImageContent.Raw | ToolCallContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | OmittedReasoningContent.Raw;
|
|
15
16
|
}
|
|
@@ -39,12 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.LettaMessageContentUnion = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const TextContent_1 = require("./TextContent");
|
|
42
|
+
const ImageContent_1 = require("./ImageContent");
|
|
42
43
|
const ToolCallContent_1 = require("./ToolCallContent");
|
|
43
44
|
const ReasoningContent_1 = require("./ReasoningContent");
|
|
44
45
|
const RedactedReasoningContent_1 = require("./RedactedReasoningContent");
|
|
45
46
|
const OmittedReasoningContent_1 = require("./OmittedReasoningContent");
|
|
46
47
|
exports.LettaMessageContentUnion = core.serialization.undiscriminatedUnion([
|
|
47
48
|
TextContent_1.TextContent,
|
|
49
|
+
ImageContent_1.ImageContent,
|
|
48
50
|
ToolCallContent_1.ToolCallContent,
|
|
49
51
|
ReasoningContent_1.ReasoningContent,
|
|
50
52
|
RedactedReasoningContent_1.RedactedReasoningContent,
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { TextContent } from "./TextContent";
|
|
8
|
+
import { ImageContent } from "./ImageContent";
|
|
9
|
+
export declare const LettaUserMessageContentUnion: core.serialization.Schema<serializers.LettaUserMessageContentUnion.Raw, Letta.LettaUserMessageContentUnion>;
|
|
10
|
+
export declare namespace LettaUserMessageContentUnion {
|
|
11
|
+
type Raw = TextContent.Raw | ImageContent.Raw;
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.LettaUserMessageContentUnion = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const TextContent_1 = require("./TextContent");
|
|
42
|
+
const ImageContent_1 = require("./ImageContent");
|
|
43
|
+
exports.LettaUserMessageContentUnion = core.serialization.undiscriminatedUnion([TextContent_1.TextContent, ImageContent_1.ImageContent]);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { ImageContent } from "./ImageContent";
|
|
7
8
|
import { OmittedReasoningContent } from "./OmittedReasoningContent";
|
|
8
9
|
import { ReasoningContent } from "./ReasoningContent";
|
|
9
10
|
import { RedactedReasoningContent } from "./RedactedReasoningContent";
|
|
@@ -12,5 +13,5 @@ import { ToolCallContent } from "./ToolCallContent";
|
|
|
12
13
|
import { ToolReturnContent } from "./ToolReturnContent";
|
|
13
14
|
export declare const MessageContentItem: core.serialization.Schema<serializers.MessageContentItem.Raw, Letta.MessageContentItem>;
|
|
14
15
|
export declare namespace MessageContentItem {
|
|
15
|
-
type Raw = OmittedReasoningContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | TextContent.Raw | ToolCallContent.Raw | ToolReturnContent.Raw;
|
|
16
|
+
type Raw = ImageContent.Raw | OmittedReasoningContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | TextContent.Raw | ToolCallContent.Raw | ToolReturnContent.Raw;
|
|
16
17
|
}
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.MessageContentItem = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
+
const ImageContent_1 = require("./ImageContent");
|
|
41
42
|
const OmittedReasoningContent_1 = require("./OmittedReasoningContent");
|
|
42
43
|
const ReasoningContent_1 = require("./ReasoningContent");
|
|
43
44
|
const RedactedReasoningContent_1 = require("./RedactedReasoningContent");
|
|
@@ -45,6 +46,7 @@ const TextContent_1 = require("./TextContent");
|
|
|
45
46
|
const ToolCallContent_1 = require("./ToolCallContent");
|
|
46
47
|
const ToolReturnContent_1 = require("./ToolReturnContent");
|
|
47
48
|
exports.MessageContentItem = core.serialization.undiscriminatedUnion([
|
|
49
|
+
ImageContent_1.ImageContent,
|
|
48
50
|
OmittedReasoningContent_1.OmittedReasoningContent,
|
|
49
51
|
ReasoningContent_1.ReasoningContent,
|
|
50
52
|
RedactedReasoningContent_1.RedactedReasoningContent,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { LettaUserMessageContentUnion } from "./LettaUserMessageContentUnion";
|
|
8
8
|
export declare const UpdateUserMessageContent: core.serialization.Schema<serializers.UpdateUserMessageContent.Raw, Letta.UpdateUserMessageContent>;
|
|
9
9
|
export declare namespace UpdateUserMessageContent {
|
|
10
|
-
type Raw =
|
|
10
|
+
type Raw = LettaUserMessageContentUnion.Raw[] | string;
|
|
11
11
|
}
|
|
@@ -38,8 +38,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.UpdateUserMessageContent = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
const
|
|
41
|
+
const LettaUserMessageContentUnion_1 = require("./LettaUserMessageContentUnion");
|
|
42
42
|
exports.UpdateUserMessageContent = core.serialization.undiscriminatedUnion([
|
|
43
|
-
core.serialization.list(
|
|
43
|
+
core.serialization.list(LettaUserMessageContentUnion_1.LettaUserMessageContentUnion),
|
|
44
44
|
core.serialization.string(),
|
|
45
45
|
]);
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export declare const UrlImage: core.serialization.ObjectSchema<serializers.UrlImage.Raw, Letta.UrlImage>;
|
|
8
|
+
export declare namespace UrlImage {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "url";
|
|
11
|
+
url: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.UrlImage = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.UrlImage = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("url"),
|
|
43
|
+
url: core.serialization.string(),
|
|
44
|
+
});
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { LettaUserMessageContentUnion } from "./LettaUserMessageContentUnion";
|
|
8
8
|
export declare const UserMessageContent: core.serialization.Schema<serializers.UserMessageContent.Raw, Letta.UserMessageContent>;
|
|
9
9
|
export declare namespace UserMessageContent {
|
|
10
|
-
type Raw =
|
|
10
|
+
type Raw = LettaUserMessageContentUnion.Raw[] | string;
|
|
11
11
|
}
|
|
@@ -38,8 +38,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.UserMessageContent = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
const
|
|
41
|
+
const LettaUserMessageContentUnion_1 = require("./LettaUserMessageContentUnion");
|
|
42
42
|
exports.UserMessageContent = core.serialization.undiscriminatedUnion([
|
|
43
|
-
core.serialization.list(
|
|
43
|
+
core.serialization.list(LettaUserMessageContentUnion_1.LettaUserMessageContentUnion),
|
|
44
44
|
core.serialization.string(),
|
|
45
45
|
]);
|
|
@@ -23,6 +23,7 @@ export * from "./Audio";
|
|
|
23
23
|
export * from "./AuthRequest";
|
|
24
24
|
export * from "./AuthResponse";
|
|
25
25
|
export * from "./AuthSchemeField";
|
|
26
|
+
export * from "./Base64Image";
|
|
26
27
|
export * from "./BaseToolRuleSchema";
|
|
27
28
|
export * from "./BatchJob";
|
|
28
29
|
export * from "./Block";
|
|
@@ -107,6 +108,8 @@ export * from "./IdentityPropertyValue";
|
|
|
107
108
|
export * from "./IdentityProperty";
|
|
108
109
|
export * from "./IdentityPropertyType";
|
|
109
110
|
export * from "./IdentityType";
|
|
111
|
+
export * from "./ImageContentSource";
|
|
112
|
+
export * from "./ImageContent";
|
|
110
113
|
export * from "./ImageUrlDetail";
|
|
111
114
|
export * from "./ImageUrl";
|
|
112
115
|
export * from "./InitToolRule";
|
|
@@ -123,6 +126,7 @@ export * from "./LlmConfigReasoningEffort";
|
|
|
123
126
|
export * from "./LlmConfig";
|
|
124
127
|
export * from "./LettaBatchMessages";
|
|
125
128
|
export * from "./LettaBatchRequest";
|
|
129
|
+
export * from "./LettaImage";
|
|
126
130
|
export * from "./LettaRequest";
|
|
127
131
|
export * from "./LettaRequestConfig";
|
|
128
132
|
export * from "./LettaResponse";
|
|
@@ -210,6 +214,7 @@ export * from "./UpdateReasoningMessage";
|
|
|
210
214
|
export * from "./UpdateSystemMessage";
|
|
211
215
|
export * from "./UpdateUserMessageContent";
|
|
212
216
|
export * from "./UpdateUserMessage";
|
|
217
|
+
export * from "./UrlImage";
|
|
213
218
|
export * from "./UsageStatistics";
|
|
214
219
|
export * from "./UsageStatisticsCompletionTokenDetails";
|
|
215
220
|
export * from "./UsageStatisticsPromptTokenDetails";
|
|
@@ -232,3 +237,4 @@ export * from "./OpenaiTypesChatCompletionCreateParamsFunction";
|
|
|
232
237
|
export * from "./LettaMessageUnion";
|
|
233
238
|
export * from "./LettaMessageContentUnion";
|
|
234
239
|
export * from "./ComponentsSchemasTextContent";
|
|
240
|
+
export * from "./LettaUserMessageContentUnion";
|
|
@@ -39,6 +39,7 @@ __exportStar(require("./Audio"), exports);
|
|
|
39
39
|
__exportStar(require("./AuthRequest"), exports);
|
|
40
40
|
__exportStar(require("./AuthResponse"), exports);
|
|
41
41
|
__exportStar(require("./AuthSchemeField"), exports);
|
|
42
|
+
__exportStar(require("./Base64Image"), exports);
|
|
42
43
|
__exportStar(require("./BaseToolRuleSchema"), exports);
|
|
43
44
|
__exportStar(require("./BatchJob"), exports);
|
|
44
45
|
__exportStar(require("./Block"), exports);
|
|
@@ -123,6 +124,8 @@ __exportStar(require("./IdentityPropertyValue"), exports);
|
|
|
123
124
|
__exportStar(require("./IdentityProperty"), exports);
|
|
124
125
|
__exportStar(require("./IdentityPropertyType"), exports);
|
|
125
126
|
__exportStar(require("./IdentityType"), exports);
|
|
127
|
+
__exportStar(require("./ImageContentSource"), exports);
|
|
128
|
+
__exportStar(require("./ImageContent"), exports);
|
|
126
129
|
__exportStar(require("./ImageUrlDetail"), exports);
|
|
127
130
|
__exportStar(require("./ImageUrl"), exports);
|
|
128
131
|
__exportStar(require("./InitToolRule"), exports);
|
|
@@ -139,6 +142,7 @@ __exportStar(require("./LlmConfigReasoningEffort"), exports);
|
|
|
139
142
|
__exportStar(require("./LlmConfig"), exports);
|
|
140
143
|
__exportStar(require("./LettaBatchMessages"), exports);
|
|
141
144
|
__exportStar(require("./LettaBatchRequest"), exports);
|
|
145
|
+
__exportStar(require("./LettaImage"), exports);
|
|
142
146
|
__exportStar(require("./LettaRequest"), exports);
|
|
143
147
|
__exportStar(require("./LettaRequestConfig"), exports);
|
|
144
148
|
__exportStar(require("./LettaResponse"), exports);
|
|
@@ -226,6 +230,7 @@ __exportStar(require("./UpdateReasoningMessage"), exports);
|
|
|
226
230
|
__exportStar(require("./UpdateSystemMessage"), exports);
|
|
227
231
|
__exportStar(require("./UpdateUserMessageContent"), exports);
|
|
228
232
|
__exportStar(require("./UpdateUserMessage"), exports);
|
|
233
|
+
__exportStar(require("./UrlImage"), exports);
|
|
229
234
|
__exportStar(require("./UsageStatistics"), exports);
|
|
230
235
|
__exportStar(require("./UsageStatisticsCompletionTokenDetails"), exports);
|
|
231
236
|
__exportStar(require("./UsageStatisticsPromptTokenDetails"), exports);
|
|
@@ -248,3 +253,4 @@ __exportStar(require("./OpenaiTypesChatCompletionCreateParamsFunction"), exports
|
|
|
248
253
|
__exportStar(require("./LettaMessageUnion"), exports);
|
|
249
254
|
__exportStar(require("./LettaMessageContentUnion"), exports);
|
|
250
255
|
__exportStar(require("./ComponentsSchemasTextContent"), exports);
|
|
256
|
+
__exportStar(require("./LettaUserMessageContentUnion"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.126";
|
package/version.js
CHANGED