@letta-ai/letta-client 0.1.100 → 0.1.102
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 -9
- package/Client.js +11 -21
- package/api/resources/agents/client/Client.d.ts +1 -9
- package/api/resources/agents/client/Client.js +11 -55
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -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/agents/types/CreateAgentRequestResponseFormat.d.ts +5 -0
- package/api/resources/agents/types/UpdateAgentResponseFormat.d.ts +5 -0
- package/api/resources/agents/types/index.d.ts +2 -0
- package/api/resources/agents/types/index.js +2 -0
- package/api/resources/batches/client/Client.d.ts +5 -1
- package/api/resources/batches/client/Client.js +26 -11
- package/api/resources/blocks/client/Client.js +5 -5
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddings/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +5 -5
- 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 +6 -6
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -4
- package/api/resources/index.js +3 -5
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +6 -24
- package/api/resources/providers/client/Client.js +13 -107
- package/api/resources/providers/client/requests/ProviderUpdate.d.ts +0 -3
- package/api/resources/providers/client/requests/index.d.ts +0 -1
- package/api/resources/runs/client/Client.d.ts +3 -10
- package/api/resources/runs/client/Client.js +8 -51
- package/{dist/api/resources/runs/client/requests/ListRunsRequest.d.ts → api/resources/runs/client/requests/RunsListRequest.d.ts} +1 -1
- package/api/resources/runs/client/requests/index.d.ts +1 -1
- 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 +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 +3 -3
- package/api/resources/tags/client/Client.d.ts +7 -1
- package/api/resources/tags/client/Client.js +46 -10
- package/api/resources/tags/client/index.d.ts +1 -1
- package/api/resources/tags/client/index.js +15 -0
- package/api/resources/{tag/client/requests/ListTagsRequest.d.ts → tags/client/requests/TagsListRequest.d.ts} +1 -1
- package/api/resources/tags/client/requests/index.d.ts +1 -0
- 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 +16 -16
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AgentState.d.ts +2 -0
- package/api/types/AgentStateResponseFormat.d.ts +5 -0
- package/api/types/JsonObjectResponseFormat.d.ts +9 -0
- package/api/types/JsonSchemaResponseFormat.d.ts +11 -0
- package/api/types/JsonSchemaResponseFormat.js +5 -0
- package/api/types/TextResponseFormat.d.ts +9 -0
- package/api/types/TextResponseFormat.js +5 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +3 -9
- package/dist/Client.js +11 -21
- package/dist/api/resources/agents/client/Client.d.ts +1 -9
- package/dist/api/resources/agents/client/Client.js +11 -55
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -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/agents/types/CreateAgentRequestResponseFormat.d.ts +5 -0
- package/dist/api/resources/agents/types/CreateAgentRequestResponseFormat.js +5 -0
- package/dist/api/resources/agents/types/UpdateAgentResponseFormat.d.ts +5 -0
- package/dist/api/resources/agents/types/UpdateAgentResponseFormat.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/batches/client/Client.d.ts +5 -1
- package/dist/api/resources/batches/client/Client.js +26 -11
- package/dist/api/resources/blocks/client/Client.js +5 -5
- 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/embeddings/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +5 -5
- 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 +6 -6
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -4
- package/dist/api/resources/index.js +3 -5
- package/dist/api/resources/jobs/client/Client.js +4 -4
- 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.d.ts +6 -24
- package/dist/api/resources/providers/client/Client.js +13 -107
- package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +0 -3
- package/dist/api/resources/providers/client/requests/index.d.ts +0 -1
- package/dist/api/resources/runs/client/Client.d.ts +3 -10
- package/dist/api/resources/runs/client/Client.js +8 -51
- package/{api/resources/runs/client/requests/ListRunsRequest.d.ts → dist/api/resources/runs/client/requests/RunsListRequest.d.ts} +1 -1
- package/dist/api/resources/runs/client/requests/RunsListRequest.js +5 -0
- package/dist/api/resources/runs/client/requests/index.d.ts +1 -1
- 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 +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 +3 -3
- package/dist/api/resources/tags/client/Client.d.ts +7 -1
- package/dist/api/resources/tags/client/Client.js +46 -10
- package/dist/api/resources/tags/client/index.d.ts +1 -1
- package/dist/api/resources/tags/client/index.js +15 -0
- package/dist/api/resources/{tag/client/requests/ListTagsRequest.d.ts → tags/client/requests/TagsListRequest.d.ts} +1 -1
- package/dist/api/resources/tags/client/requests/TagsListRequest.js +5 -0
- package/dist/api/resources/tags/client/requests/index.d.ts +1 -0
- 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 +16 -16
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AgentState.d.ts +2 -0
- package/dist/api/types/AgentStateResponseFormat.d.ts +5 -0
- package/dist/api/types/AgentStateResponseFormat.js +5 -0
- package/dist/api/types/JsonObjectResponseFormat.d.ts +9 -0
- package/dist/api/types/JsonObjectResponseFormat.js +5 -0
- package/dist/api/types/JsonSchemaResponseFormat.d.ts +11 -0
- package/dist/api/types/JsonSchemaResponseFormat.js +5 -0
- package/dist/api/types/TextResponseFormat.d.ts +9 -0
- package/dist/api/types/TextResponseFormat.js +5 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/agents/client/{exportAgentSerialized.d.ts → export.d.ts} +1 -1
- package/dist/serialization/resources/agents/client/index.d.ts +1 -1
- package/dist/serialization/resources/agents/client/index.js +2 -2
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
- package/dist/serialization/resources/agents/types/CreateAgentRequestResponseFormat.d.ts +13 -0
- package/dist/serialization/resources/agents/types/CreateAgentRequestResponseFormat.js +44 -0
- package/dist/serialization/resources/agents/types/UpdateAgentResponseFormat.d.ts +13 -0
- package/dist/serialization/resources/agents/types/UpdateAgentResponseFormat.js +44 -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/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +0 -1
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +0 -1
- package/dist/serialization/resources/runs/client/index.d.ts +1 -1
- package/dist/serialization/resources/runs/client/index.js +2 -2
- package/{serialization/resources/runs/client/listRuns.d.ts → dist/serialization/resources/runs/client/list.d.ts} +1 -1
- package/dist/serialization/resources/tags/client/index.d.ts +1 -0
- package/dist/serialization/resources/{tag → tags}/client/index.js +2 -2
- package/{serialization/resources/tag/client/listTags.d.ts → dist/serialization/resources/tags/client/list.d.ts} +1 -1
- package/dist/serialization/types/AgentState.d.ts +2 -0
- package/dist/serialization/types/AgentState.js +2 -0
- package/dist/serialization/types/AgentStateResponseFormat.d.ts +13 -0
- package/dist/serialization/types/AgentStateResponseFormat.js +44 -0
- package/dist/serialization/types/JsonObjectResponseFormat.d.ts +12 -0
- package/dist/serialization/types/JsonObjectResponseFormat.js +43 -0
- package/dist/serialization/types/JsonSchemaResponseFormat.d.ts +13 -0
- package/dist/serialization/types/JsonSchemaResponseFormat.js +44 -0
- package/dist/serialization/types/TextResponseFormat.d.ts +12 -0
- package/dist/serialization/types/TextResponseFormat.js +43 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +18 -289
- package/serialization/resources/agents/client/{exportAgentSerialized.d.ts → export.d.ts} +1 -1
- package/serialization/resources/agents/client/index.d.ts +1 -1
- package/serialization/resources/agents/client/index.js +2 -2
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
- package/serialization/resources/agents/types/CreateAgentRequestResponseFormat.d.ts +13 -0
- package/serialization/resources/agents/types/CreateAgentRequestResponseFormat.js +44 -0
- package/serialization/resources/agents/types/UpdateAgentResponseFormat.d.ts +13 -0
- package/serialization/resources/agents/types/UpdateAgentResponseFormat.js +44 -0
- package/serialization/resources/agents/types/index.d.ts +2 -0
- package/serialization/resources/agents/types/index.js +2 -0
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +0 -1
- package/serialization/resources/providers/client/requests/ProviderUpdate.js +0 -1
- package/serialization/resources/runs/client/index.d.ts +1 -1
- package/serialization/resources/runs/client/index.js +2 -2
- package/{dist/serialization/resources/runs/client/listRuns.d.ts → serialization/resources/runs/client/list.d.ts} +1 -1
- package/serialization/resources/tags/client/index.d.ts +1 -0
- package/serialization/resources/{tag → tags}/client/index.js +2 -2
- package/{dist/serialization/resources/tag/client/listTags.d.ts → serialization/resources/tags/client/list.d.ts} +1 -1
- package/serialization/types/AgentState.d.ts +2 -0
- package/serialization/types/AgentState.js +2 -0
- package/serialization/types/AgentStateResponseFormat.d.ts +13 -0
- package/serialization/types/AgentStateResponseFormat.js +44 -0
- package/serialization/types/JsonObjectResponseFormat.d.ts +12 -0
- package/serialization/types/JsonObjectResponseFormat.js +43 -0
- package/serialization/types/JsonSchemaResponseFormat.d.ts +13 -0
- package/serialization/types/JsonSchemaResponseFormat.js +44 -0
- package/serialization/types/TextResponseFormat.d.ts +12 -0
- package/serialization/types/TextResponseFormat.js +43 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/messages/client/Client.d.ts +0 -43
- package/api/resources/messages/client/Client.js +0 -128
- package/api/resources/messages/client/index.d.ts +0 -1
- package/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +0 -15
- package/api/resources/tag/client/Client.d.ts +0 -44
- package/api/resources/tag/client/Client.js +0 -146
- package/api/resources/tag/client/index.d.ts +0 -1
- package/api/resources/tag/client/index.js +0 -17
- package/api/resources/tag/client/requests/index.d.ts +0 -1
- package/dist/api/resources/messages/client/Client.d.ts +0 -43
- package/dist/api/resources/messages/client/Client.js +0 -128
- package/dist/api/resources/messages/client/index.d.ts +0 -1
- package/dist/api/resources/messages/client/index.js +0 -2
- package/dist/api/resources/messages/index.d.ts +0 -1
- package/dist/api/resources/messages/index.js +0 -17
- package/dist/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +0 -15
- package/dist/api/resources/tag/client/Client.d.ts +0 -44
- package/dist/api/resources/tag/client/Client.js +0 -146
- package/dist/api/resources/tag/client/index.d.ts +0 -1
- package/dist/api/resources/tag/client/index.js +0 -17
- package/dist/api/resources/tag/client/requests/index.d.ts +0 -1
- package/dist/api/resources/tag/client/requests/index.js +0 -2
- package/dist/api/resources/tag/index.d.ts +0 -1
- package/dist/api/resources/tag/index.js +0 -17
- package/dist/serialization/resources/tag/client/index.d.ts +0 -1
- package/dist/serialization/resources/tag/index.d.ts +0 -1
- package/dist/serialization/resources/tag/index.js +0 -17
- package/serialization/resources/tag/client/index.d.ts +0 -1
- package/serialization/resources/tag/index.d.ts +0 -1
- package/serialization/resources/tag/index.js +0 -17
- /package/api/resources/{providers/client/requests/DeleteProviderRequest.js → agents/types/CreateAgentRequestResponseFormat.js} +0 -0
- /package/api/resources/{runs/client/requests/ListRunsRequest.js → agents/types/UpdateAgentResponseFormat.js} +0 -0
- /package/api/resources/{tag/client/requests/ListTagsRequest.js → runs/client/requests/RunsListRequest.js} +0 -0
- /package/{dist/api/resources/providers/client/requests/DeleteProviderRequest.js → api/resources/tags/client/requests/TagsListRequest.js} +0 -0
- /package/api/resources/{messages/client → tags/client/requests}/index.js +0 -0
- /package/{dist/api/resources/runs/client/requests/ListRunsRequest.js → api/types/AgentStateResponseFormat.js} +0 -0
- /package/{dist/api/resources/tag/client/requests/ListTagsRequest.js → api/types/JsonObjectResponseFormat.js} +0 -0
- /package/{api/resources/tag → dist/api/resources/tags}/client/requests/index.js +0 -0
- /package/dist/serialization/resources/agents/client/{exportAgentSerialized.js → export.js} +0 -0
- /package/dist/serialization/resources/runs/client/{listRuns.js → list.js} +0 -0
- /package/dist/serialization/resources/{tag/client/listTags.js → tags/client/list.js} +0 -0
- /package/{api/resources/messages → dist/serialization/resources/tags}/index.d.ts +0 -0
- /package/{api/resources/messages → dist/serialization/resources/tags}/index.js +0 -0
- /package/serialization/resources/agents/client/{exportAgentSerialized.js → export.js} +0 -0
- /package/serialization/resources/runs/client/{listRuns.js → list.js} +0 -0
- /package/serialization/resources/{tag/client/listTags.js → tags/client/list.js} +0 -0
- /package/{api/resources/tag → serialization/resources/tags}/index.d.ts +0 -0
- /package/{api/resources/tag → serialization/resources/tags}/index.js +0 -0
|
@@ -7,6 +7,7 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
import { UpdateAgentToolRulesItem } from "../../types/UpdateAgentToolRulesItem";
|
|
8
8
|
import { LlmConfig } from "../../../../types/LlmConfig";
|
|
9
9
|
import { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
|
|
10
|
+
import { UpdateAgentResponseFormat } from "../../types/UpdateAgentResponseFormat";
|
|
10
11
|
export declare const UpdateAgent: core.serialization.Schema<serializers.UpdateAgent.Raw, Letta.UpdateAgent>;
|
|
11
12
|
export declare namespace UpdateAgent {
|
|
12
13
|
interface Raw {
|
|
@@ -31,5 +32,6 @@ export declare namespace UpdateAgent {
|
|
|
31
32
|
model?: string | null;
|
|
32
33
|
embedding?: string | null;
|
|
33
34
|
enable_sleeptime?: boolean | null;
|
|
35
|
+
response_format?: UpdateAgentResponseFormat.Raw | null;
|
|
34
36
|
}
|
|
35
37
|
}
|
|
@@ -41,6 +41,7 @@ const core = __importStar(require("../../../../../core"));
|
|
|
41
41
|
const UpdateAgentToolRulesItem_1 = require("../../types/UpdateAgentToolRulesItem");
|
|
42
42
|
const LlmConfig_1 = require("../../../../types/LlmConfig");
|
|
43
43
|
const EmbeddingConfig_1 = require("../../../../types/EmbeddingConfig");
|
|
44
|
+
const UpdateAgentResponseFormat_1 = require("../../types/UpdateAgentResponseFormat");
|
|
44
45
|
exports.UpdateAgent = core.serialization.object({
|
|
45
46
|
name: core.serialization.string().optional(),
|
|
46
47
|
toolIds: core.serialization.property("tool_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
@@ -63,4 +64,5 @@ exports.UpdateAgent = core.serialization.object({
|
|
|
63
64
|
model: core.serialization.string().optional(),
|
|
64
65
|
embedding: core.serialization.string().optional(),
|
|
65
66
|
enableSleeptime: core.serialization.property("enable_sleeptime", core.serialization.boolean().optional()),
|
|
67
|
+
responseFormat: core.serialization.property("response_format", UpdateAgentResponseFormat_1.UpdateAgentResponseFormat.optional()),
|
|
66
68
|
});
|
|
@@ -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 { JsonObjectResponseFormat } from "../../../types/JsonObjectResponseFormat";
|
|
8
|
+
import { JsonSchemaResponseFormat } from "../../../types/JsonSchemaResponseFormat";
|
|
9
|
+
import { TextResponseFormat } from "../../../types/TextResponseFormat";
|
|
10
|
+
export declare const CreateAgentRequestResponseFormat: core.serialization.Schema<serializers.CreateAgentRequestResponseFormat.Raw, Letta.CreateAgentRequestResponseFormat>;
|
|
11
|
+
export declare namespace CreateAgentRequestResponseFormat {
|
|
12
|
+
type Raw = JsonObjectResponseFormat.Raw | JsonSchemaResponseFormat.Raw | TextResponseFormat.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.CreateAgentRequestResponseFormat = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const JsonObjectResponseFormat_1 = require("../../../types/JsonObjectResponseFormat");
|
|
42
|
+
const JsonSchemaResponseFormat_1 = require("../../../types/JsonSchemaResponseFormat");
|
|
43
|
+
const TextResponseFormat_1 = require("../../../types/TextResponseFormat");
|
|
44
|
+
exports.CreateAgentRequestResponseFormat = core.serialization.undiscriminatedUnion([JsonObjectResponseFormat_1.JsonObjectResponseFormat, JsonSchemaResponseFormat_1.JsonSchemaResponseFormat, TextResponseFormat_1.TextResponseFormat]);
|
|
@@ -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 { JsonObjectResponseFormat } from "../../../types/JsonObjectResponseFormat";
|
|
8
|
+
import { JsonSchemaResponseFormat } from "../../../types/JsonSchemaResponseFormat";
|
|
9
|
+
import { TextResponseFormat } from "../../../types/TextResponseFormat";
|
|
10
|
+
export declare const UpdateAgentResponseFormat: core.serialization.Schema<serializers.UpdateAgentResponseFormat.Raw, Letta.UpdateAgentResponseFormat>;
|
|
11
|
+
export declare namespace UpdateAgentResponseFormat {
|
|
12
|
+
type Raw = JsonObjectResponseFormat.Raw | JsonSchemaResponseFormat.Raw | TextResponseFormat.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.UpdateAgentResponseFormat = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const JsonObjectResponseFormat_1 = require("../../../types/JsonObjectResponseFormat");
|
|
42
|
+
const JsonSchemaResponseFormat_1 = require("../../../types/JsonSchemaResponseFormat");
|
|
43
|
+
const TextResponseFormat_1 = require("../../../types/TextResponseFormat");
|
|
44
|
+
exports.UpdateAgentResponseFormat = core.serialization.undiscriminatedUnion([JsonObjectResponseFormat_1.JsonObjectResponseFormat, JsonSchemaResponseFormat_1.JsonSchemaResponseFormat, TextResponseFormat_1.TextResponseFormat]);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./CreateAgentRequestToolRulesItem";
|
|
2
|
+
export * from "./CreateAgentRequestResponseFormat";
|
|
2
3
|
export * from "./UpdateAgentToolRulesItem";
|
|
4
|
+
export * from "./UpdateAgentResponseFormat";
|
|
3
5
|
export * from "./AgentsSearchRequestSearchItemZero";
|
|
4
6
|
export * from "./AgentsSearchRequestSearchItemOneOperator";
|
|
5
7
|
export * from "./AgentsSearchRequestSearchItemOne";
|
|
@@ -15,7 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CreateAgentRequestToolRulesItem"), exports);
|
|
18
|
+
__exportStar(require("./CreateAgentRequestResponseFormat"), exports);
|
|
18
19
|
__exportStar(require("./UpdateAgentToolRulesItem"), exports);
|
|
20
|
+
__exportStar(require("./UpdateAgentResponseFormat"), exports);
|
|
19
21
|
__exportStar(require("./AgentsSearchRequestSearchItemZero"), exports);
|
|
20
22
|
__exportStar(require("./AgentsSearchRequestSearchItemOneOperator"), exports);
|
|
21
23
|
__exportStar(require("./AgentsSearchRequestSearchItemOne"), exports);
|
|
@@ -21,7 +21,7 @@ export * as jobs from "./jobs";
|
|
|
21
21
|
export * as providers from "./providers";
|
|
22
22
|
export * as runs from "./runs";
|
|
23
23
|
export * as steps from "./steps";
|
|
24
|
-
export * as
|
|
24
|
+
export * as tags from "./tags";
|
|
25
25
|
export * as batches from "./batches";
|
|
26
26
|
export * from "./tools/client/requests";
|
|
27
27
|
export * from "./sources/client/requests";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.batches = exports.
|
|
39
|
+
exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddings = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
|
|
40
40
|
exports.tools = __importStar(require("./tools"));
|
|
41
41
|
__exportStar(require("./tools/types"), exports);
|
|
42
42
|
exports.agents = __importStar(require("./agents"));
|
|
@@ -60,7 +60,7 @@ exports.jobs = __importStar(require("./jobs"));
|
|
|
60
60
|
exports.providers = __importStar(require("./providers"));
|
|
61
61
|
exports.runs = __importStar(require("./runs"));
|
|
62
62
|
exports.steps = __importStar(require("./steps"));
|
|
63
|
-
exports.
|
|
63
|
+
exports.tags = __importStar(require("./tags"));
|
|
64
64
|
exports.batches = __importStar(require("./batches"));
|
|
65
65
|
__exportStar(require("./tools/client/requests"), exports);
|
|
66
66
|
__exportStar(require("./sources/client/requests"), exports);
|
|
@@ -7,7 +7,6 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
export declare const ProviderUpdate: core.serialization.Schema<serializers.ProviderUpdate.Raw, Letta.ProviderUpdate>;
|
|
8
8
|
export declare namespace ProviderUpdate {
|
|
9
9
|
interface Raw {
|
|
10
|
-
id: string;
|
|
11
10
|
api_key: string;
|
|
12
11
|
}
|
|
13
12
|
}
|
|
@@ -39,6 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ProviderUpdate = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
41
|
exports.ProviderUpdate = core.serialization.object({
|
|
42
|
-
id: core.serialization.string(),
|
|
43
42
|
apiKey: core.serialization.property("api_key", core.serialization.string()),
|
|
44
43
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as list from "./list";
|
|
2
2
|
export * as listActive from "./listActive";
|
|
@@ -33,6 +33,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.listActive = exports.
|
|
37
|
-
exports.
|
|
36
|
+
exports.listActive = exports.list = void 0;
|
|
37
|
+
exports.list = __importStar(require("./list"));
|
|
38
38
|
exports.listActive = __importStar(require("./listActive"));
|
|
@@ -5,7 +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 { Run } from "../../../types/Run";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.runs.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.runs.list.Response.Raw, Letta.Run[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Run.Raw[];
|
|
11
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as list from "./list";
|
|
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
36
|
+
exports.list = void 0;
|
|
37
|
+
exports.list = __importStar(require("./list"));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export declare const Response: core.serialization.Schema<serializers.
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.tags.list.Response.Raw, string[]>;
|
|
7
7
|
export declare namespace Response {
|
|
8
8
|
type Raw = string[];
|
|
9
9
|
}
|
|
@@ -8,6 +8,7 @@ import { AgentStateToolRulesItem } from "./AgentStateToolRulesItem";
|
|
|
8
8
|
import { AgentType } from "./AgentType";
|
|
9
9
|
import { LlmConfig } from "./LlmConfig";
|
|
10
10
|
import { EmbeddingConfig } from "./EmbeddingConfig";
|
|
11
|
+
import { AgentStateResponseFormat } from "./AgentStateResponseFormat";
|
|
11
12
|
import { Memory } from "./Memory";
|
|
12
13
|
import { Tool } from "./Tool";
|
|
13
14
|
import { Source } from "./Source";
|
|
@@ -28,6 +29,7 @@ export declare namespace AgentState {
|
|
|
28
29
|
agent_type: AgentType.Raw;
|
|
29
30
|
llm_config: LlmConfig.Raw;
|
|
30
31
|
embedding_config: EmbeddingConfig.Raw;
|
|
32
|
+
response_format?: AgentStateResponseFormat.Raw | null;
|
|
31
33
|
description?: string | null;
|
|
32
34
|
metadata?: Record<string, unknown> | null;
|
|
33
35
|
memory: Memory.Raw;
|
|
@@ -42,6 +42,7 @@ const AgentStateToolRulesItem_1 = require("./AgentStateToolRulesItem");
|
|
|
42
42
|
const AgentType_1 = require("./AgentType");
|
|
43
43
|
const LlmConfig_1 = require("./LlmConfig");
|
|
44
44
|
const EmbeddingConfig_1 = require("./EmbeddingConfig");
|
|
45
|
+
const AgentStateResponseFormat_1 = require("./AgentStateResponseFormat");
|
|
45
46
|
const Memory_1 = require("./Memory");
|
|
46
47
|
const Tool_1 = require("./Tool");
|
|
47
48
|
const Source_1 = require("./Source");
|
|
@@ -60,6 +61,7 @@ exports.AgentState = core.serialization.object({
|
|
|
60
61
|
agentType: core.serialization.property("agent_type", AgentType_1.AgentType),
|
|
61
62
|
llmConfig: core.serialization.property("llm_config", LlmConfig_1.LlmConfig),
|
|
62
63
|
embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig),
|
|
64
|
+
responseFormat: core.serialization.property("response_format", AgentStateResponseFormat_1.AgentStateResponseFormat.optional()),
|
|
63
65
|
description: core.serialization.string().optional(),
|
|
64
66
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
65
67
|
memory: Memory_1.Memory,
|
|
@@ -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 { JsonObjectResponseFormat } from "./JsonObjectResponseFormat";
|
|
8
|
+
import { JsonSchemaResponseFormat } from "./JsonSchemaResponseFormat";
|
|
9
|
+
import { TextResponseFormat } from "./TextResponseFormat";
|
|
10
|
+
export declare const AgentStateResponseFormat: core.serialization.Schema<serializers.AgentStateResponseFormat.Raw, Letta.AgentStateResponseFormat>;
|
|
11
|
+
export declare namespace AgentStateResponseFormat {
|
|
12
|
+
type Raw = JsonObjectResponseFormat.Raw | JsonSchemaResponseFormat.Raw | TextResponseFormat.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.AgentStateResponseFormat = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const JsonObjectResponseFormat_1 = require("./JsonObjectResponseFormat");
|
|
42
|
+
const JsonSchemaResponseFormat_1 = require("./JsonSchemaResponseFormat");
|
|
43
|
+
const TextResponseFormat_1 = require("./TextResponseFormat");
|
|
44
|
+
exports.AgentStateResponseFormat = core.serialization.undiscriminatedUnion([JsonObjectResponseFormat_1.JsonObjectResponseFormat, JsonSchemaResponseFormat_1.JsonSchemaResponseFormat, TextResponseFormat_1.TextResponseFormat]);
|
|
@@ -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
|
+
export declare const JsonObjectResponseFormat: core.serialization.ObjectSchema<serializers.JsonObjectResponseFormat.Raw, Letta.JsonObjectResponseFormat>;
|
|
8
|
+
export declare namespace JsonObjectResponseFormat {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "json_object";
|
|
11
|
+
}
|
|
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.JsonObjectResponseFormat = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.JsonObjectResponseFormat = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("json_object"),
|
|
43
|
+
});
|
|
@@ -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 JsonSchemaResponseFormat: core.serialization.ObjectSchema<serializers.JsonSchemaResponseFormat.Raw, Letta.JsonSchemaResponseFormat>;
|
|
8
|
+
export declare namespace JsonSchemaResponseFormat {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "json_schema";
|
|
11
|
+
json_schema: Record<string, unknown>;
|
|
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.JsonSchemaResponseFormat = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.JsonSchemaResponseFormat = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("json_schema"),
|
|
43
|
+
jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
44
|
+
});
|
|
@@ -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
|
+
export declare const TextResponseFormat: core.serialization.ObjectSchema<serializers.TextResponseFormat.Raw, Letta.TextResponseFormat>;
|
|
8
|
+
export declare namespace TextResponseFormat {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "text";
|
|
11
|
+
}
|
|
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.TextResponseFormat = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.TextResponseFormat = core.serialization.object({
|
|
42
|
+
type: core.serialization.stringLiteral("text"),
|
|
43
|
+
});
|
|
@@ -10,6 +10,7 @@ export * from "./AgentEnvironmentVariable";
|
|
|
10
10
|
export * from "./AgentSchemaToolRulesItem";
|
|
11
11
|
export * from "./AgentSchema";
|
|
12
12
|
export * from "./AgentStateToolRulesItem";
|
|
13
|
+
export * from "./AgentStateResponseFormat";
|
|
13
14
|
export * from "./AgentState";
|
|
14
15
|
export * from "./AgentType";
|
|
15
16
|
export * from "./AppAuthSchemeAuthMode";
|
|
@@ -113,6 +114,8 @@ export * from "./JsonSchema";
|
|
|
113
114
|
export * from "./Job";
|
|
114
115
|
export * from "./JobStatus";
|
|
115
116
|
export * from "./JobType";
|
|
117
|
+
export * from "./JsonObjectResponseFormat";
|
|
118
|
+
export * from "./JsonSchemaResponseFormat";
|
|
116
119
|
export * from "./LlmConfigModelEndpointType";
|
|
117
120
|
export * from "./LlmConfigReasoningEffort";
|
|
118
121
|
export * from "./LlmConfig";
|
|
@@ -177,6 +180,7 @@ export * from "./SystemMessage";
|
|
|
177
180
|
export * from "./TagSchema";
|
|
178
181
|
export * from "./TerminalToolRule";
|
|
179
182
|
export * from "./TextContent";
|
|
183
|
+
export * from "./TextResponseFormat";
|
|
180
184
|
export * from "./Tool";
|
|
181
185
|
export * from "./ToolCall";
|
|
182
186
|
export * from "./ToolCallContent";
|
|
@@ -26,6 +26,7 @@ __exportStar(require("./AgentEnvironmentVariable"), exports);
|
|
|
26
26
|
__exportStar(require("./AgentSchemaToolRulesItem"), exports);
|
|
27
27
|
__exportStar(require("./AgentSchema"), exports);
|
|
28
28
|
__exportStar(require("./AgentStateToolRulesItem"), exports);
|
|
29
|
+
__exportStar(require("./AgentStateResponseFormat"), exports);
|
|
29
30
|
__exportStar(require("./AgentState"), exports);
|
|
30
31
|
__exportStar(require("./AgentType"), exports);
|
|
31
32
|
__exportStar(require("./AppAuthSchemeAuthMode"), exports);
|
|
@@ -129,6 +130,8 @@ __exportStar(require("./JsonSchema"), exports);
|
|
|
129
130
|
__exportStar(require("./Job"), exports);
|
|
130
131
|
__exportStar(require("./JobStatus"), exports);
|
|
131
132
|
__exportStar(require("./JobType"), exports);
|
|
133
|
+
__exportStar(require("./JsonObjectResponseFormat"), exports);
|
|
134
|
+
__exportStar(require("./JsonSchemaResponseFormat"), exports);
|
|
132
135
|
__exportStar(require("./LlmConfigModelEndpointType"), exports);
|
|
133
136
|
__exportStar(require("./LlmConfigReasoningEffort"), exports);
|
|
134
137
|
__exportStar(require("./LlmConfig"), exports);
|
|
@@ -193,6 +196,7 @@ __exportStar(require("./SystemMessage"), exports);
|
|
|
193
196
|
__exportStar(require("./TagSchema"), exports);
|
|
194
197
|
__exportStar(require("./TerminalToolRule"), exports);
|
|
195
198
|
__exportStar(require("./TextContent"), exports);
|
|
199
|
+
__exportStar(require("./TextResponseFormat"), exports);
|
|
196
200
|
__exportStar(require("./Tool"), exports);
|
|
197
201
|
__exportStar(require("./ToolCall"), exports);
|
|
198
202
|
__exportStar(require("./ToolCallContent"), 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.102";
|
package/dist/version.js
CHANGED