@letta-ai/letta-client 0.1.47 → 0.1.49
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 +27 -0
- package/api/resources/agents/client/Client.js +142 -8
- package/api/resources/agents/client/requests/BodyUploadAgentSerialized.d.ts +13 -0
- package/api/resources/agents/client/requests/BodyUploadAgentSerialized.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/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +1 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +5 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +5 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +4 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +5 -0
- package/api/resources/agents/types/index.d.ts +2 -0
- package/api/resources/agents/types/index.js +2 -0
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.d.ts +23 -0
- package/api/resources/runs/client/Client.js +97 -6
- package/api/resources/runs/client/requests/ListRunStepsRequest.d.ts +25 -0
- package/api/resources/runs/client/requests/ListRunStepsRequest.js +5 -0
- package/api/resources/runs/client/requests/index.d.ts +1 -0
- package/api/resources/sources/client/Client.js +6 -6
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +1 -0
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.js +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.js +5 -0
- package/api/resources/templates/types/index.d.ts +2 -0
- package/api/resources/templates/types/index.js +2 -0
- package/api/resources/tools/client/Client.js +11 -11
- package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/api/types/Tool.d.ts +2 -0
- package/api/types/ToolCreate.d.ts +2 -0
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/dist/api/resources/agents/client/Client.d.ts +27 -0
- package/dist/api/resources/agents/client/Client.js +142 -8
- package/dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.d.ts +13 -0
- package/dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.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/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +1 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +5 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +4 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +5 -0
- package/dist/api/resources/agents/types/index.d.ts +2 -0
- package/dist/api/resources/agents/types/index.js +2 -0
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.d.ts +23 -0
- package/dist/api/resources/runs/client/Client.js +97 -6
- package/dist/api/resources/runs/client/requests/ListRunStepsRequest.d.ts +25 -0
- package/dist/api/resources/runs/client/requests/ListRunStepsRequest.js +5 -0
- package/dist/api/resources/runs/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sources/client/Client.js +6 -6
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +2 -0
- package/dist/api/resources/templates/types/index.js +2 -0
- package/dist/api/resources/tools/client/Client.js +11 -11
- package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/dist/api/types/Tool.d.ts +2 -0
- package/dist/api/types/ToolCreate.d.ts +2 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +2 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.js +2 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
- package/dist/serialization/resources/agents/types/index.d.ts +2 -0
- package/dist/serialization/resources/agents/types/index.js +2 -0
- package/dist/serialization/resources/runs/client/index.d.ts +1 -0
- package/dist/serialization/resources/runs/client/index.js +2 -1
- package/dist/serialization/resources/runs/client/listRunSteps.d.ts +11 -0
- package/dist/serialization/resources/runs/client/listRunSteps.js +42 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
- package/dist/serialization/resources/templates/types/index.d.ts +2 -0
- package/dist/serialization/resources/templates/types/index.js +2 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.js +2 -0
- package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +2 -0
- package/dist/serialization/types/Tool.d.ts +1 -0
- package/dist/serialization/types/Tool.js +1 -0
- package/dist/serialization/types/ToolCreate.d.ts +1 -0
- package/dist/serialization/types/ToolCreate.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +215 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +2 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.js +2 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
- package/serialization/resources/agents/types/index.d.ts +2 -0
- package/serialization/resources/agents/types/index.js +2 -0
- package/serialization/resources/runs/client/index.d.ts +1 -0
- package/serialization/resources/runs/client/index.js +2 -1
- package/serialization/resources/runs/client/listRunSteps.d.ts +11 -0
- package/serialization/resources/runs/client/listRunSteps.js +42 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.js +46 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.js +41 -0
- package/serialization/resources/templates/types/index.d.ts +2 -0
- package/serialization/resources/templates/types/index.js +2 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +1 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.js +1 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
- package/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/serialization/types/CompletionCreateParamsNonStreamingModel.js +2 -0
- package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/serialization/types/CompletionCreateParamsStreamingModel.js +2 -0
- package/serialization/types/Tool.d.ts +1 -0
- package/serialization/types/Tool.js +1 -0
- package/serialization/types/ToolCreate.d.ts +1 -0
- package/serialization/types/ToolCreate.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -45,6 +45,7 @@ const TemplatesCreateAgentsResponseAgentsItemToolsItemOrganizationId_1 = require
|
|
|
45
45
|
const TemplatesCreateAgentsResponseAgentsItemToolsItemName_1 = require("./TemplatesCreateAgentsResponseAgentsItemToolsItemName");
|
|
46
46
|
const TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode_1 = require("./TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode");
|
|
47
47
|
const TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema_1 = require("./TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema");
|
|
48
|
+
const TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema_1 = require("./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema");
|
|
48
49
|
const TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById_1 = require("./TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById");
|
|
49
50
|
const TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedById_1 = require("./TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedById");
|
|
50
51
|
exports.TemplatesCreateAgentsResponseAgentsItemToolsItem = core.serialization.object({
|
|
@@ -57,6 +58,7 @@ exports.TemplatesCreateAgentsResponseAgentsItemToolsItem = core.serialization.ob
|
|
|
57
58
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
58
59
|
sourceCode: core.serialization.property("source_code", TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode_1.TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode.optional()),
|
|
59
60
|
jsonSchema: core.serialization.property("json_schema", TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema_1.TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema.optional()),
|
|
61
|
+
argsJsonSchema: core.serialization.property("args_json_schema", TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema_1.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.optional()),
|
|
60
62
|
returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
|
|
61
63
|
createdById: core.serialization.property("created_by_id", TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById_1.TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById.optional()),
|
|
62
64
|
lastUpdatedById: core.serialization.property("last_updated_by_id", TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedById_1.TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedById.optional()),
|
|
@@ -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 { TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem } from "./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem";
|
|
8
|
+
export declare const TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema: core.serialization.Schema<serializers.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema.Raw, Letta.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema>;
|
|
9
|
+
export declare namespace TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema {
|
|
10
|
+
type Raw = unknown | (string | null | undefined) | (TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.Raw | null | undefined)[];
|
|
11
|
+
}
|
|
@@ -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.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem_1 = require("./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem");
|
|
42
|
+
exports.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema = core.serialization.undiscriminatedUnion([
|
|
43
|
+
core.serialization.unknown(),
|
|
44
|
+
core.serialization.string().optional(),
|
|
45
|
+
core.serialization.list(TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem_1.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.optional()),
|
|
46
|
+
]);
|
|
@@ -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 TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem: core.serialization.Schema<serializers.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem.Raw, Letta.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem>;
|
|
8
|
+
export declare namespace TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem {
|
|
9
|
+
type Raw = unknown | (string | null | undefined);
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem = core.serialization.undiscriminatedUnion([core.serialization.unknown(), core.serialization.string().optional()]);
|
|
@@ -104,6 +104,8 @@ export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCodeItem"
|
|
|
104
104
|
export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode";
|
|
105
105
|
export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchemaItem";
|
|
106
106
|
export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema";
|
|
107
|
+
export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem";
|
|
108
|
+
export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema";
|
|
107
109
|
export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedByIdItem";
|
|
108
110
|
export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById";
|
|
109
111
|
export * from "./TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedByIdItem";
|
|
@@ -120,6 +120,8 @@ __exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCo
|
|
|
120
120
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemSourceCode"), exports);
|
|
121
121
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchemaItem"), exports);
|
|
122
122
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemJsonSchema"), exports);
|
|
123
|
+
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchemaItem"), exports);
|
|
124
|
+
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemArgsJsonSchema"), exports);
|
|
123
125
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedByIdItem"), exports);
|
|
124
126
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemCreatedById"), exports);
|
|
125
127
|
__exportStar(require("./TemplatesCreateAgentsResponseAgentsItemToolsItemLastUpdatedByIdItem"), exports);
|
|
@@ -44,4 +44,5 @@ exports.ToolRunFromSource = core.serialization.object({
|
|
|
44
44
|
envVars: core.serialization.property("env_vars", core.serialization.record(core.serialization.string(), core.serialization.string()).optional()),
|
|
45
45
|
name: core.serialization.string().optional(),
|
|
46
46
|
sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
|
|
47
|
+
argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
47
48
|
});
|
|
@@ -44,5 +44,6 @@ exports.ToolUpdate = core.serialization.object({
|
|
|
44
44
|
sourceCode: core.serialization.property("source_code", core.serialization.string().optional()),
|
|
45
45
|
sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
|
|
46
46
|
jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
47
|
+
argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
47
48
|
returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
|
|
48
49
|
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const CompletionCreateParamsNonStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsNonStreamingModel.Raw, Letta.CompletionCreateParamsNonStreamingModel>;
|
|
8
8
|
export declare namespace CompletionCreateParamsNonStreamingModel {
|
|
9
|
-
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
9
|
+
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
10
10
|
}
|
|
@@ -48,6 +48,8 @@ exports.CompletionCreateParamsNonStreamingModel = core.serialization.undiscrimin
|
|
|
48
48
|
core.serialization.stringLiteral("o1-preview-2024-09-12"),
|
|
49
49
|
core.serialization.stringLiteral("o1-mini"),
|
|
50
50
|
core.serialization.stringLiteral("o1-mini-2024-09-12"),
|
|
51
|
+
core.serialization.stringLiteral("gpt-4.5-preview"),
|
|
52
|
+
core.serialization.stringLiteral("gpt-4.5-preview-2025-02-27"),
|
|
51
53
|
core.serialization.stringLiteral("gpt-4o"),
|
|
52
54
|
core.serialization.stringLiteral("gpt-4o-2024-11-20"),
|
|
53
55
|
core.serialization.stringLiteral("gpt-4o-2024-08-06"),
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const CompletionCreateParamsStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsStreamingModel.Raw, Letta.CompletionCreateParamsStreamingModel>;
|
|
8
8
|
export declare namespace CompletionCreateParamsStreamingModel {
|
|
9
|
-
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
9
|
+
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
10
10
|
}
|
|
@@ -48,6 +48,8 @@ exports.CompletionCreateParamsStreamingModel = core.serialization.undiscriminate
|
|
|
48
48
|
core.serialization.stringLiteral("o1-preview-2024-09-12"),
|
|
49
49
|
core.serialization.stringLiteral("o1-mini"),
|
|
50
50
|
core.serialization.stringLiteral("o1-mini-2024-09-12"),
|
|
51
|
+
core.serialization.stringLiteral("gpt-4.5-preview"),
|
|
52
|
+
core.serialization.stringLiteral("gpt-4.5-preview-2025-02-27"),
|
|
51
53
|
core.serialization.stringLiteral("gpt-4o"),
|
|
52
54
|
core.serialization.stringLiteral("gpt-4o-2024-11-20"),
|
|
53
55
|
core.serialization.stringLiteral("gpt-4o-2024-08-06"),
|
|
@@ -16,6 +16,7 @@ export declare namespace Tool {
|
|
|
16
16
|
tags?: string[] | null;
|
|
17
17
|
source_code?: string | null;
|
|
18
18
|
json_schema?: Record<string, unknown> | null;
|
|
19
|
+
args_json_schema?: Record<string, unknown> | null;
|
|
19
20
|
return_char_limit?: number | null;
|
|
20
21
|
created_by_id?: string | null;
|
|
21
22
|
last_updated_by_id?: string | null;
|
|
@@ -48,6 +48,7 @@ exports.Tool = core.serialization.object({
|
|
|
48
48
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
49
49
|
sourceCode: core.serialization.property("source_code", core.serialization.string().optional()),
|
|
50
50
|
jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
51
|
+
argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
51
52
|
returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
|
|
52
53
|
createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
|
|
53
54
|
lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
|
|
@@ -44,5 +44,6 @@ exports.ToolCreate = core.serialization.object({
|
|
|
44
44
|
sourceCode: core.serialization.property("source_code", core.serialization.string()),
|
|
45
45
|
sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
|
|
46
46
|
jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
47
|
+
argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
47
48
|
returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
|
|
48
49
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.49";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1207,6 +1207,140 @@ await client.agents.create();
|
|
|
1207
1207
|
</dl>
|
|
1208
1208
|
</details>
|
|
1209
1209
|
|
|
1210
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">downloadAgentSerialized</a>(agentId) -> unknown</code></summary>
|
|
1211
|
+
<dl>
|
|
1212
|
+
<dd>
|
|
1213
|
+
|
|
1214
|
+
#### 📝 Description
|
|
1215
|
+
|
|
1216
|
+
<dl>
|
|
1217
|
+
<dd>
|
|
1218
|
+
|
|
1219
|
+
<dl>
|
|
1220
|
+
<dd>
|
|
1221
|
+
|
|
1222
|
+
Download the serialized JSON representation of an agent.
|
|
1223
|
+
|
|
1224
|
+
</dd>
|
|
1225
|
+
</dl>
|
|
1226
|
+
</dd>
|
|
1227
|
+
</dl>
|
|
1228
|
+
|
|
1229
|
+
#### 🔌 Usage
|
|
1230
|
+
|
|
1231
|
+
<dl>
|
|
1232
|
+
<dd>
|
|
1233
|
+
|
|
1234
|
+
<dl>
|
|
1235
|
+
<dd>
|
|
1236
|
+
|
|
1237
|
+
```typescript
|
|
1238
|
+
await client.agents.downloadAgentSerialized("agent_id");
|
|
1239
|
+
```
|
|
1240
|
+
|
|
1241
|
+
</dd>
|
|
1242
|
+
</dl>
|
|
1243
|
+
</dd>
|
|
1244
|
+
</dl>
|
|
1245
|
+
|
|
1246
|
+
#### ⚙️ Parameters
|
|
1247
|
+
|
|
1248
|
+
<dl>
|
|
1249
|
+
<dd>
|
|
1250
|
+
|
|
1251
|
+
<dl>
|
|
1252
|
+
<dd>
|
|
1253
|
+
|
|
1254
|
+
**agentId:** `string`
|
|
1255
|
+
|
|
1256
|
+
</dd>
|
|
1257
|
+
</dl>
|
|
1258
|
+
|
|
1259
|
+
<dl>
|
|
1260
|
+
<dd>
|
|
1261
|
+
|
|
1262
|
+
**requestOptions:** `Agents.RequestOptions`
|
|
1263
|
+
|
|
1264
|
+
</dd>
|
|
1265
|
+
</dl>
|
|
1266
|
+
</dd>
|
|
1267
|
+
</dl>
|
|
1268
|
+
|
|
1269
|
+
</dd>
|
|
1270
|
+
</dl>
|
|
1271
|
+
</details>
|
|
1272
|
+
|
|
1273
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">uploadAgentSerialized</a>(file, { ...params }) -> Letta.AgentState</code></summary>
|
|
1274
|
+
<dl>
|
|
1275
|
+
<dd>
|
|
1276
|
+
|
|
1277
|
+
#### 📝 Description
|
|
1278
|
+
|
|
1279
|
+
<dl>
|
|
1280
|
+
<dd>
|
|
1281
|
+
|
|
1282
|
+
<dl>
|
|
1283
|
+
<dd>
|
|
1284
|
+
|
|
1285
|
+
Upload a serialized agent JSON file and recreate the agent in the system.
|
|
1286
|
+
|
|
1287
|
+
</dd>
|
|
1288
|
+
</dl>
|
|
1289
|
+
</dd>
|
|
1290
|
+
</dl>
|
|
1291
|
+
|
|
1292
|
+
#### 🔌 Usage
|
|
1293
|
+
|
|
1294
|
+
<dl>
|
|
1295
|
+
<dd>
|
|
1296
|
+
|
|
1297
|
+
<dl>
|
|
1298
|
+
<dd>
|
|
1299
|
+
|
|
1300
|
+
```typescript
|
|
1301
|
+
await client.agents.uploadAgentSerialized(fs.createReadStream("/path/to/your/file"), {});
|
|
1302
|
+
```
|
|
1303
|
+
|
|
1304
|
+
</dd>
|
|
1305
|
+
</dl>
|
|
1306
|
+
</dd>
|
|
1307
|
+
</dl>
|
|
1308
|
+
|
|
1309
|
+
#### ⚙️ Parameters
|
|
1310
|
+
|
|
1311
|
+
<dl>
|
|
1312
|
+
<dd>
|
|
1313
|
+
|
|
1314
|
+
<dl>
|
|
1315
|
+
<dd>
|
|
1316
|
+
|
|
1317
|
+
**file:** `File | fs.ReadStream | Blob`
|
|
1318
|
+
|
|
1319
|
+
</dd>
|
|
1320
|
+
</dl>
|
|
1321
|
+
|
|
1322
|
+
<dl>
|
|
1323
|
+
<dd>
|
|
1324
|
+
|
|
1325
|
+
**request:** `Letta.BodyUploadAgentSerialized`
|
|
1326
|
+
|
|
1327
|
+
</dd>
|
|
1328
|
+
</dl>
|
|
1329
|
+
|
|
1330
|
+
<dl>
|
|
1331
|
+
<dd>
|
|
1332
|
+
|
|
1333
|
+
**requestOptions:** `Agents.RequestOptions`
|
|
1334
|
+
|
|
1335
|
+
</dd>
|
|
1336
|
+
</dl>
|
|
1337
|
+
</dd>
|
|
1338
|
+
</dl>
|
|
1339
|
+
|
|
1340
|
+
</dd>
|
|
1341
|
+
</dl>
|
|
1342
|
+
</details>
|
|
1343
|
+
|
|
1210
1344
|
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">retrieve</a>(agentId) -> Letta.AgentState</code></summary>
|
|
1211
1345
|
<dl>
|
|
1212
1346
|
<dd>
|
|
@@ -3295,6 +3429,87 @@ await client.runs.retrieveRunUsage("run_id");
|
|
|
3295
3429
|
</dl>
|
|
3296
3430
|
</details>
|
|
3297
3431
|
|
|
3432
|
+
<details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">listRunSteps</a>(runId, { ...params }) -> Letta.Step[]</code></summary>
|
|
3433
|
+
<dl>
|
|
3434
|
+
<dd>
|
|
3435
|
+
|
|
3436
|
+
#### 📝 Description
|
|
3437
|
+
|
|
3438
|
+
<dl>
|
|
3439
|
+
<dd>
|
|
3440
|
+
|
|
3441
|
+
<dl>
|
|
3442
|
+
<dd>
|
|
3443
|
+
|
|
3444
|
+
Get messages associated with a run with filtering options.
|
|
3445
|
+
|
|
3446
|
+
Args:
|
|
3447
|
+
run_id: ID of the run
|
|
3448
|
+
before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
3449
|
+
after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
3450
|
+
limit: Maximum number of steps to return
|
|
3451
|
+
order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
|
|
3452
|
+
|
|
3453
|
+
Returns:
|
|
3454
|
+
A list of steps associated with the run.
|
|
3455
|
+
|
|
3456
|
+
</dd>
|
|
3457
|
+
</dl>
|
|
3458
|
+
</dd>
|
|
3459
|
+
</dl>
|
|
3460
|
+
|
|
3461
|
+
#### 🔌 Usage
|
|
3462
|
+
|
|
3463
|
+
<dl>
|
|
3464
|
+
<dd>
|
|
3465
|
+
|
|
3466
|
+
<dl>
|
|
3467
|
+
<dd>
|
|
3468
|
+
|
|
3469
|
+
```typescript
|
|
3470
|
+
await client.runs.listRunSteps("run_id");
|
|
3471
|
+
```
|
|
3472
|
+
|
|
3473
|
+
</dd>
|
|
3474
|
+
</dl>
|
|
3475
|
+
</dd>
|
|
3476
|
+
</dl>
|
|
3477
|
+
|
|
3478
|
+
#### ⚙️ Parameters
|
|
3479
|
+
|
|
3480
|
+
<dl>
|
|
3481
|
+
<dd>
|
|
3482
|
+
|
|
3483
|
+
<dl>
|
|
3484
|
+
<dd>
|
|
3485
|
+
|
|
3486
|
+
**runId:** `string`
|
|
3487
|
+
|
|
3488
|
+
</dd>
|
|
3489
|
+
</dl>
|
|
3490
|
+
|
|
3491
|
+
<dl>
|
|
3492
|
+
<dd>
|
|
3493
|
+
|
|
3494
|
+
**request:** `Letta.ListRunStepsRequest`
|
|
3495
|
+
|
|
3496
|
+
</dd>
|
|
3497
|
+
</dl>
|
|
3498
|
+
|
|
3499
|
+
<dl>
|
|
3500
|
+
<dd>
|
|
3501
|
+
|
|
3502
|
+
**requestOptions:** `Runs.RequestOptions`
|
|
3503
|
+
|
|
3504
|
+
</dd>
|
|
3505
|
+
</dl>
|
|
3506
|
+
</dd>
|
|
3507
|
+
</dl>
|
|
3508
|
+
|
|
3509
|
+
</dd>
|
|
3510
|
+
</dl>
|
|
3511
|
+
</details>
|
|
3512
|
+
|
|
3298
3513
|
## Steps
|
|
3299
3514
|
|
|
3300
3515
|
<details><summary><code>client.steps.<a href="/src/api/resources/steps/client/Client.ts">listSteps</a>({ ...params }) -> Letta.Step[]</code></summary>
|
|
@@ -11,6 +11,7 @@ import { AgentsSearchResponseAgentsItemToolsItemOrganizationId } from "./AgentsS
|
|
|
11
11
|
import { AgentsSearchResponseAgentsItemToolsItemName } from "./AgentsSearchResponseAgentsItemToolsItemName";
|
|
12
12
|
import { AgentsSearchResponseAgentsItemToolsItemSourceCode } from "./AgentsSearchResponseAgentsItemToolsItemSourceCode";
|
|
13
13
|
import { AgentsSearchResponseAgentsItemToolsItemJsonSchema } from "./AgentsSearchResponseAgentsItemToolsItemJsonSchema";
|
|
14
|
+
import { AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema } from "./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema";
|
|
14
15
|
import { AgentsSearchResponseAgentsItemToolsItemCreatedById } from "./AgentsSearchResponseAgentsItemToolsItemCreatedById";
|
|
15
16
|
import { AgentsSearchResponseAgentsItemToolsItemLastUpdatedById } from "./AgentsSearchResponseAgentsItemToolsItemLastUpdatedById";
|
|
16
17
|
export declare const AgentsSearchResponseAgentsItemToolsItem: core.serialization.ObjectSchema<serializers.AgentsSearchResponseAgentsItemToolsItem.Raw, Letta.AgentsSearchResponseAgentsItemToolsItem>;
|
|
@@ -25,6 +26,7 @@ export declare namespace AgentsSearchResponseAgentsItemToolsItem {
|
|
|
25
26
|
tags?: string[] | null;
|
|
26
27
|
source_code?: AgentsSearchResponseAgentsItemToolsItemSourceCode.Raw | null;
|
|
27
28
|
json_schema?: AgentsSearchResponseAgentsItemToolsItemJsonSchema.Raw | null;
|
|
29
|
+
args_json_schema?: AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.Raw | null;
|
|
28
30
|
return_char_limit?: number | null;
|
|
29
31
|
created_by_id?: AgentsSearchResponseAgentsItemToolsItemCreatedById.Raw | null;
|
|
30
32
|
last_updated_by_id?: AgentsSearchResponseAgentsItemToolsItemLastUpdatedById.Raw | null;
|
|
@@ -45,6 +45,7 @@ const AgentsSearchResponseAgentsItemToolsItemOrganizationId_1 = require("./Agent
|
|
|
45
45
|
const AgentsSearchResponseAgentsItemToolsItemName_1 = require("./AgentsSearchResponseAgentsItemToolsItemName");
|
|
46
46
|
const AgentsSearchResponseAgentsItemToolsItemSourceCode_1 = require("./AgentsSearchResponseAgentsItemToolsItemSourceCode");
|
|
47
47
|
const AgentsSearchResponseAgentsItemToolsItemJsonSchema_1 = require("./AgentsSearchResponseAgentsItemToolsItemJsonSchema");
|
|
48
|
+
const AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema_1 = require("./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema");
|
|
48
49
|
const AgentsSearchResponseAgentsItemToolsItemCreatedById_1 = require("./AgentsSearchResponseAgentsItemToolsItemCreatedById");
|
|
49
50
|
const AgentsSearchResponseAgentsItemToolsItemLastUpdatedById_1 = require("./AgentsSearchResponseAgentsItemToolsItemLastUpdatedById");
|
|
50
51
|
exports.AgentsSearchResponseAgentsItemToolsItem = core.serialization.object({
|
|
@@ -57,6 +58,7 @@ exports.AgentsSearchResponseAgentsItemToolsItem = core.serialization.object({
|
|
|
57
58
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
58
59
|
sourceCode: core.serialization.property("source_code", AgentsSearchResponseAgentsItemToolsItemSourceCode_1.AgentsSearchResponseAgentsItemToolsItemSourceCode.optional()),
|
|
59
60
|
jsonSchema: core.serialization.property("json_schema", AgentsSearchResponseAgentsItemToolsItemJsonSchema_1.AgentsSearchResponseAgentsItemToolsItemJsonSchema.optional()),
|
|
61
|
+
argsJsonSchema: core.serialization.property("args_json_schema", AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema_1.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.optional()),
|
|
60
62
|
returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
|
|
61
63
|
createdById: core.serialization.property("created_by_id", AgentsSearchResponseAgentsItemToolsItemCreatedById_1.AgentsSearchResponseAgentsItemToolsItemCreatedById.optional()),
|
|
62
64
|
lastUpdatedById: core.serialization.property("last_updated_by_id", AgentsSearchResponseAgentsItemToolsItemLastUpdatedById_1.AgentsSearchResponseAgentsItemToolsItemLastUpdatedById.optional()),
|
|
@@ -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 { AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem } from "./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem";
|
|
8
|
+
export declare const AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema.Raw, Letta.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema>;
|
|
9
|
+
export declare namespace AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema {
|
|
10
|
+
type Raw = unknown | (string | null | undefined) | (AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.Raw | null | undefined)[];
|
|
11
|
+
}
|
|
@@ -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.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem_1 = require("./AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem");
|
|
42
|
+
exports.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchema = core.serialization.undiscriminatedUnion([
|
|
43
|
+
core.serialization.unknown(),
|
|
44
|
+
core.serialization.string().optional(),
|
|
45
|
+
core.serialization.list(AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem_1.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.optional()),
|
|
46
|
+
]);
|
|
@@ -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 AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem.Raw, Letta.AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem>;
|
|
8
|
+
export declare namespace AgentsSearchResponseAgentsItemToolsItemArgsJsonSchemaItem {
|
|
9
|
+
type Raw = unknown | (string | null | undefined);
|
|
10
|
+
}
|