@letta-ai/letta-client 0.1.7 → 0.1.8
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/Client.d.ts +3 -0
- package/Client.js +5 -0
- package/api/resources/agents/client/Client.d.ts +13 -0
- package/api/resources/agents/client/Client.js +78 -6
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/api/resources/agents/client/requests/ResetMessagesRequest.d.ts +13 -0
- package/api/resources/agents/client/requests/ResetMessagesRequest.js +5 -0
- package/api/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +7 -7
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/sources/client/Client.js +1 -1
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/blocks/client/Client.js +7 -7
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- 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.d.ts +115 -0
- package/api/resources/runs/client/Client.js +500 -0
- package/api/resources/runs/client/index.d.ts +1 -0
- package/api/resources/runs/client/index.js +17 -0
- package/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +50 -0
- package/api/resources/runs/client/requests/GetRunMessagesRequest.js +5 -0
- package/api/resources/runs/client/requests/index.d.ts +1 -0
- package/api/resources/runs/client/requests/index.js +2 -0
- package/api/resources/runs/index.d.ts +1 -0
- package/api/resources/runs/index.js +17 -0
- package/api/resources/sources/client/Client.js +8 -8
- 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/tools/client/Client.js +12 -12
- package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +0 -2
- package/api/types/Job.d.ts +2 -0
- package/api/types/JobType.d.ts +8 -0
- package/api/types/JobType.js +10 -0
- package/api/types/LettaSchemasToolTool.d.ts +0 -2
- package/api/types/Run.d.ts +34 -0
- package/api/types/Run.js +5 -0
- package/api/types/ToolCreate.d.ts +0 -2
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/agents/client/Client.d.ts +13 -0
- package/dist/api/resources/agents/client/Client.js +78 -6
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/dist/api/resources/agents/client/requests/ResetMessagesRequest.d.ts +13 -0
- package/dist/api/resources/agents/client/requests/ResetMessagesRequest.js +5 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +7 -7
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/blocks/client/Client.js +7 -7
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- 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.d.ts +115 -0
- package/dist/api/resources/runs/client/Client.js +500 -0
- package/dist/api/resources/runs/client/index.d.ts +1 -0
- package/dist/api/resources/runs/client/index.js +17 -0
- package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.d.ts +50 -0
- package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.js +5 -0
- package/dist/api/resources/runs/client/requests/index.d.ts +1 -0
- package/dist/api/resources/runs/client/requests/index.js +2 -0
- package/dist/api/resources/runs/index.d.ts +1 -0
- package/dist/api/resources/runs/index.js +17 -0
- package/dist/api/resources/sources/client/Client.js +8 -8
- 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/tools/client/Client.js +12 -12
- package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +0 -2
- package/dist/api/types/Job.d.ts +2 -0
- package/dist/api/types/JobType.d.ts +8 -0
- package/dist/api/types/JobType.js +10 -0
- package/dist/api/types/LettaSchemasToolTool.d.ts +0 -2
- package/dist/api/types/Run.d.ts +34 -0
- package/dist/api/types/Run.js +5 -0
- package/dist/api/types/ToolCreate.d.ts +0 -2
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +1 -1
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/runs/client/getRunMessages.d.ts +11 -0
- package/dist/serialization/resources/runs/client/getRunMessages.js +32 -0
- package/dist/serialization/resources/runs/client/index.d.ts +3 -0
- package/dist/serialization/resources/runs/client/index.js +29 -0
- package/dist/serialization/resources/runs/client/listActiveRuns.d.ts +11 -0
- package/dist/serialization/resources/runs/client/listActiveRuns.js +32 -0
- package/dist/serialization/resources/runs/client/listRuns.d.ts +11 -0
- package/dist/serialization/resources/runs/client/listRuns.js +32 -0
- package/dist/serialization/resources/runs/index.d.ts +1 -0
- package/dist/serialization/resources/runs/index.js +17 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -1
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +0 -1
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +0 -1
- package/dist/serialization/types/Job.d.ts +2 -0
- package/dist/serialization/types/Job.js +2 -0
- package/dist/serialization/types/JobType.d.ts +10 -0
- package/dist/serialization/types/JobType.js +34 -0
- package/dist/serialization/types/LettaSchemasToolTool.d.ts +0 -1
- package/dist/serialization/types/LettaSchemasToolTool.js +0 -1
- package/dist/serialization/types/Run.d.ts +22 -0
- package/dist/serialization/types/Run.js +43 -0
- package/dist/serialization/types/ToolCreate.d.ts +0 -1
- package/dist/serialization/types/ToolCreate.js +0 -1
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +458 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +1 -1
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js +1 -1
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/runs/client/getRunMessages.d.ts +11 -0
- package/serialization/resources/runs/client/getRunMessages.js +32 -0
- package/serialization/resources/runs/client/index.d.ts +3 -0
- package/serialization/resources/runs/client/index.js +29 -0
- package/serialization/resources/runs/client/listActiveRuns.d.ts +11 -0
- package/serialization/resources/runs/client/listActiveRuns.js +32 -0
- package/serialization/resources/runs/client/listRuns.d.ts +11 -0
- package/serialization/resources/runs/client/listRuns.js +32 -0
- package/serialization/resources/runs/index.d.ts +1 -0
- package/serialization/resources/runs/index.js +17 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -1
- package/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -1
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +0 -1
- package/serialization/resources/tools/client/requests/ToolUpdate.js +0 -1
- package/serialization/types/Job.d.ts +2 -0
- package/serialization/types/Job.js +2 -0
- package/serialization/types/JobType.d.ts +10 -0
- package/serialization/types/JobType.js +34 -0
- package/serialization/types/LettaSchemasToolTool.d.ts +0 -1
- package/serialization/types/LettaSchemasToolTool.js +0 -1
- package/serialization/types/Run.d.ts +22 -0
- package/serialization/types/Run.js +43 -0
- package/serialization/types/ToolCreate.d.ts +0 -1
- package/serialization/types/ToolCreate.js +0 -1
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Response = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const LettaSchemasMessageMessage_1 = require("../../../types/LettaSchemasMessageMessage");
|
|
32
|
+
exports.Response = core.serialization.list(LettaSchemasMessageMessage_1.LettaSchemasMessageMessage);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.getRunMessages = exports.listActiveRuns = exports.listRuns = void 0;
|
|
27
|
+
exports.listRuns = __importStar(require("./listRuns"));
|
|
28
|
+
exports.listActiveRuns = __importStar(require("./listActiveRuns"));
|
|
29
|
+
exports.getRunMessages = __importStar(require("./getRunMessages"));
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { Run } from "../../../types/Run";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.runs.listActiveRuns.Response.Raw, Letta.Run[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Run.Raw[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Response = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const Run_1 = require("../../../types/Run");
|
|
32
|
+
exports.Response = core.serialization.list(Run_1.Run);
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { Run } from "../../../types/Run";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.runs.listRuns.Response.Raw, Letta.Run[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Run.Raw[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Response = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const Run_1 = require("../../../types/Run");
|
|
32
|
+
exports.Response = core.serialization.list(Run_1.Run);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -8,7 +8,7 @@ export declare const ToolRunFromSource: core.serialization.Schema<serializers.To
|
|
|
8
8
|
export declare namespace ToolRunFromSource {
|
|
9
9
|
interface Raw {
|
|
10
10
|
source_code: string;
|
|
11
|
-
args: Record<string,
|
|
11
|
+
args: Record<string, unknown>;
|
|
12
12
|
env_vars?: Record<string, string> | null;
|
|
13
13
|
name?: string | null;
|
|
14
14
|
source_type?: string | null;
|
|
@@ -30,7 +30,7 @@ exports.ToolRunFromSource = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
31
|
exports.ToolRunFromSource = core.serialization.object({
|
|
32
32
|
sourceCode: core.serialization.property("source_code", core.serialization.string()),
|
|
33
|
-
args: core.serialization.record(core.serialization.string(), core.serialization.
|
|
33
|
+
args: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
34
34
|
envVars: core.serialization.property("env_vars", core.serialization.record(core.serialization.string(), core.serialization.string()).optional()),
|
|
35
35
|
name: core.serialization.string().optional(),
|
|
36
36
|
sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
|
|
@@ -32,7 +32,6 @@ exports.ToolUpdate = core.serialization.object({
|
|
|
32
32
|
description: core.serialization.string().optional(),
|
|
33
33
|
name: core.serialization.string().optional(),
|
|
34
34
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
35
|
-
module: core.serialization.string().optional(),
|
|
36
35
|
sourceCode: core.serialization.property("source_code", core.serialization.string().optional()),
|
|
37
36
|
sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
|
|
38
37
|
jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { JobStatus } from "./JobStatus";
|
|
8
|
+
import { JobType } from "./JobType";
|
|
8
9
|
export declare const Job: core.serialization.ObjectSchema<serializers.Job.Raw, Letta.Job>;
|
|
9
10
|
export declare namespace Job {
|
|
10
11
|
interface Raw {
|
|
@@ -15,6 +16,7 @@ export declare namespace Job {
|
|
|
15
16
|
status?: JobStatus.Raw | null;
|
|
16
17
|
completed_at?: string | null;
|
|
17
18
|
metadata_?: Record<string, unknown> | null;
|
|
19
|
+
job_type?: JobType.Raw | null;
|
|
18
20
|
id?: string | null;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Job = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const JobStatus_1 = require("./JobStatus");
|
|
32
|
+
const JobType_1 = require("./JobType");
|
|
32
33
|
exports.Job = core.serialization.object({
|
|
33
34
|
createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
|
|
34
35
|
lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
|
|
@@ -37,5 +38,6 @@ exports.Job = core.serialization.object({
|
|
|
37
38
|
status: JobStatus_1.JobStatus.optional(),
|
|
38
39
|
completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
|
|
39
40
|
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
41
|
+
jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
|
|
40
42
|
id: core.serialization.string().optional(),
|
|
41
43
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 JobType: core.serialization.Schema<serializers.JobType.Raw, Letta.JobType>;
|
|
8
|
+
export declare namespace JobType {
|
|
9
|
+
type Raw = "job" | "run";
|
|
10
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.JobType = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.JobType = core.serialization.enum_([
|
|
32
|
+
"job",
|
|
33
|
+
"run",
|
|
34
|
+
]);
|
|
@@ -34,7 +34,6 @@ exports.LettaSchemasToolTool = core.serialization.object({
|
|
|
34
34
|
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
35
35
|
description: core.serialization.string().optional(),
|
|
36
36
|
sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
|
|
37
|
-
module: core.serialization.string().optional(),
|
|
38
37
|
name: core.serialization.string().optional(),
|
|
39
38
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
40
39
|
sourceCode: core.serialization.property("source_code", core.serialization.string().optional()),
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { JobStatus } from "./JobStatus";
|
|
8
|
+
import { JobType } from "./JobType";
|
|
9
|
+
export declare const Run: core.serialization.ObjectSchema<serializers.Run.Raw, Letta.Run>;
|
|
10
|
+
export declare namespace Run {
|
|
11
|
+
interface Raw {
|
|
12
|
+
created_by_id?: string | null;
|
|
13
|
+
last_updated_by_id?: string | null;
|
|
14
|
+
created_at?: string | null;
|
|
15
|
+
updated_at?: string | null;
|
|
16
|
+
status?: JobStatus.Raw | null;
|
|
17
|
+
completed_at?: string | null;
|
|
18
|
+
metadata_?: Record<string, unknown> | null;
|
|
19
|
+
job_type?: JobType.Raw | null;
|
|
20
|
+
id?: string | null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Run = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const JobStatus_1 = require("./JobStatus");
|
|
32
|
+
const JobType_1 = require("./JobType");
|
|
33
|
+
exports.Run = core.serialization.object({
|
|
34
|
+
createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
|
|
35
|
+
lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
|
|
36
|
+
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
37
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
38
|
+
status: JobStatus_1.JobStatus.optional(),
|
|
39
|
+
completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
|
|
40
|
+
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
41
|
+
jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
|
|
42
|
+
id: core.serialization.string().optional(),
|
|
43
|
+
});
|
|
@@ -32,7 +32,6 @@ exports.ToolCreate = core.serialization.object({
|
|
|
32
32
|
name: core.serialization.string().optional(),
|
|
33
33
|
description: core.serialization.string().optional(),
|
|
34
34
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
35
|
-
module: core.serialization.string().optional(),
|
|
36
35
|
sourceCode: core.serialization.property("source_code", core.serialization.string()),
|
|
37
36
|
sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
|
|
38
37
|
jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
@@ -48,6 +48,7 @@ export * from "./Health";
|
|
|
48
48
|
export * from "./InitToolRule";
|
|
49
49
|
export * from "./Job";
|
|
50
50
|
export * from "./JobStatus";
|
|
51
|
+
export * from "./JobType";
|
|
51
52
|
export * from "./LlmConfigModelEndpointType";
|
|
52
53
|
export * from "./LlmConfig";
|
|
53
54
|
export * from "./LettaRequest";
|
|
@@ -69,6 +70,7 @@ export * from "./Provider";
|
|
|
69
70
|
export * from "./ReasoningMessage";
|
|
70
71
|
export * from "./RecallMemorySummary";
|
|
71
72
|
export * from "./ResponseFormat";
|
|
73
|
+
export * from "./Run";
|
|
72
74
|
export * from "./SandboxConfig";
|
|
73
75
|
export * from "./SandboxConfigCreateConfig";
|
|
74
76
|
export * from "./SandboxConfigCreate";
|
|
@@ -64,6 +64,7 @@ __exportStar(require("./Health"), exports);
|
|
|
64
64
|
__exportStar(require("./InitToolRule"), exports);
|
|
65
65
|
__exportStar(require("./Job"), exports);
|
|
66
66
|
__exportStar(require("./JobStatus"), exports);
|
|
67
|
+
__exportStar(require("./JobType"), exports);
|
|
67
68
|
__exportStar(require("./LlmConfigModelEndpointType"), exports);
|
|
68
69
|
__exportStar(require("./LlmConfig"), exports);
|
|
69
70
|
__exportStar(require("./LettaRequest"), exports);
|
|
@@ -85,6 +86,7 @@ __exportStar(require("./Provider"), exports);
|
|
|
85
86
|
__exportStar(require("./ReasoningMessage"), exports);
|
|
86
87
|
__exportStar(require("./RecallMemorySummary"), exports);
|
|
87
88
|
__exportStar(require("./ResponseFormat"), exports);
|
|
89
|
+
__exportStar(require("./Run"), exports);
|
|
88
90
|
__exportStar(require("./SandboxConfig"), exports);
|
|
89
91
|
__exportStar(require("./SandboxConfigCreateConfig"), exports);
|
|
90
92
|
__exportStar(require("./SandboxConfigCreate"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.8";
|
package/dist/version.js
CHANGED