@letta-ai/letta-client 0.1.129 → 0.1.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/agents/client/Client.js +10 -10
- 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.d.ts +11 -9
- package/api/resources/agents/resources/messages/client/Client.js +23 -15
- package/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.d.ts +25 -0
- package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +1 -2
- package/api/resources/index.js +2 -3
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +7 -7
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +17 -17
- package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -0
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -0
- package/api/resources/voice/client/Client.d.ts +1 -5
- package/api/resources/voice/client/Client.js +3 -7
- package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +2 -7
- package/api/resources/voice/index.d.ts +0 -1
- package/api/resources/voice/index.js +0 -1
- package/api/types/BatchJob.d.ts +2 -0
- package/api/types/Job.d.ts +2 -0
- package/api/types/LettaResponse.d.ts +1 -0
- package/api/types/LettaStopReason.d.ts +13 -0
- package/api/types/McpServerType.d.ts +2 -1
- package/api/types/McpServerType.js +1 -0
- package/api/types/McpTool.d.ts +2 -0
- package/api/types/Run.d.ts +2 -0
- package/api/types/SseServerConfig.d.ts +16 -0
- package/api/types/StopReasonType.d.ts +12 -0
- package/api/types/StopReasonType.js +14 -0
- package/api/types/Tool.d.ts +2 -0
- package/api/types/ToolAnnotations.d.ts +22 -0
- package/api/types/ToolAnnotations.js +5 -0
- package/api/types/ToolCreate.d.ts +3 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/api/resources/agents/client/Client.js +10 -10
- 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.d.ts +11 -9
- package/dist/api/resources/agents/resources/messages/client/Client.js +23 -15
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.d.ts +25 -0
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.js +5 -0
- package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +1 -2
- package/dist/api/resources/index.js +2 -3
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +7 -7
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +17 -17
- package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -0
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -0
- package/dist/api/resources/voice/client/Client.d.ts +1 -5
- package/dist/api/resources/voice/client/Client.js +3 -7
- package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +2 -7
- package/dist/api/resources/voice/index.d.ts +0 -1
- package/dist/api/resources/voice/index.js +0 -1
- package/dist/api/types/BatchJob.d.ts +2 -0
- package/dist/api/types/Job.d.ts +2 -0
- package/dist/api/types/LettaResponse.d.ts +1 -0
- package/dist/api/types/LettaStopReason.d.ts +13 -0
- package/dist/api/types/LettaStopReason.js +5 -0
- package/dist/api/types/McpServerType.d.ts +2 -1
- package/dist/api/types/McpServerType.js +1 -0
- package/dist/api/types/McpTool.d.ts +2 -0
- package/dist/api/types/Run.d.ts +2 -0
- package/dist/api/types/SseServerConfig.d.ts +16 -0
- package/dist/api/types/StopReasonType.d.ts +12 -0
- package/dist/api/types/StopReasonType.js +14 -0
- package/dist/api/types/Tool.d.ts +2 -0
- package/dist/api/types/ToolAnnotations.d.ts +22 -0
- package/dist/api/types/ToolAnnotations.js +5 -0
- package/dist/api/types/ToolCreate.d.ts +3 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
- package/dist/serialization/resources/index.d.ts +1 -2
- package/dist/serialization/resources/index.js +2 -3
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
- package/dist/serialization/resources/voice/client/createVoiceChatCompletions.d.ts +9 -0
- package/dist/serialization/resources/voice/{types/CreateVoiceChatCompletionsRequestBody.js → client/createVoiceChatCompletions.js} +2 -4
- package/dist/serialization/resources/voice/client/index.d.ts +1 -0
- package/dist/serialization/resources/voice/client/index.js +37 -0
- package/dist/serialization/resources/voice/index.d.ts +1 -1
- package/dist/serialization/resources/voice/index.js +1 -1
- package/dist/serialization/types/BatchJob.d.ts +1 -0
- package/dist/serialization/types/BatchJob.js +1 -0
- package/dist/serialization/types/Job.d.ts +1 -0
- package/dist/serialization/types/Job.js +1 -0
- package/dist/serialization/types/LettaResponse.d.ts +2 -0
- package/dist/serialization/types/LettaResponse.js +2 -0
- package/dist/serialization/types/LettaStopReason.d.ts +14 -0
- package/dist/serialization/types/LettaStopReason.js +45 -0
- package/dist/serialization/types/McpServerType.d.ts +1 -1
- package/dist/serialization/types/McpServerType.js +1 -1
- package/dist/serialization/types/McpTool.d.ts +2 -0
- package/dist/serialization/types/McpTool.js +2 -0
- package/dist/serialization/types/Run.d.ts +1 -0
- package/dist/serialization/types/Run.js +1 -0
- package/dist/serialization/types/SseServerConfig.d.ts +3 -0
- package/dist/serialization/types/SseServerConfig.js +3 -0
- package/dist/serialization/types/StopReasonType.d.ts +10 -0
- package/dist/serialization/types/StopReasonType.js +41 -0
- package/dist/serialization/types/Tool.d.ts +2 -0
- package/dist/serialization/types/Tool.js +2 -0
- package/dist/serialization/types/ToolAnnotations.d.ts +17 -0
- package/dist/serialization/types/ToolAnnotations.js +49 -0
- package/dist/serialization/types/ToolCreate.d.ts +2 -0
- package/dist/serialization/types/ToolCreate.js +2 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +15 -19
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
- package/serialization/resources/index.d.ts +1 -2
- package/serialization/resources/index.js +2 -3
- package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
- package/serialization/resources/voice/client/createVoiceChatCompletions.d.ts +9 -0
- package/serialization/resources/voice/{types/CreateVoiceChatCompletionsRequestBody.js → client/createVoiceChatCompletions.js} +2 -4
- package/serialization/resources/voice/client/index.d.ts +1 -0
- package/serialization/resources/voice/client/index.js +37 -0
- package/serialization/resources/voice/index.d.ts +1 -1
- package/serialization/resources/voice/index.js +1 -1
- package/serialization/types/BatchJob.d.ts +1 -0
- package/serialization/types/BatchJob.js +1 -0
- package/serialization/types/Job.d.ts +1 -0
- package/serialization/types/Job.js +1 -0
- package/serialization/types/LettaResponse.d.ts +2 -0
- package/serialization/types/LettaResponse.js +2 -0
- package/serialization/types/LettaStopReason.d.ts +14 -0
- package/serialization/types/LettaStopReason.js +45 -0
- package/serialization/types/McpServerType.d.ts +1 -1
- package/serialization/types/McpServerType.js +1 -1
- package/serialization/types/McpTool.d.ts +2 -0
- package/serialization/types/McpTool.js +2 -0
- package/serialization/types/Run.d.ts +1 -0
- package/serialization/types/Run.js +1 -0
- package/serialization/types/SseServerConfig.d.ts +3 -0
- package/serialization/types/SseServerConfig.js +3 -0
- package/serialization/types/StopReasonType.d.ts +10 -0
- package/serialization/types/StopReasonType.js +41 -0
- package/serialization/types/Tool.d.ts +2 -0
- package/serialization/types/Tool.js +2 -0
- package/serialization/types/ToolAnnotations.d.ts +17 -0
- package/serialization/types/ToolAnnotations.js +49 -0
- package/serialization/types/ToolCreate.d.ts +2 -0
- package/serialization/types/ToolCreate.js +2 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -5
- package/api/resources/voice/types/index.d.ts +0 -1
- package/api/resources/voice/types/index.js +0 -17
- package/dist/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -5
- package/dist/api/resources/voice/types/index.d.ts +0 -1
- package/dist/api/resources/voice/types/index.js +0 -17
- package/dist/serialization/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -12
- package/dist/serialization/resources/voice/types/index.d.ts +0 -1
- package/dist/serialization/resources/voice/types/index.js +0 -17
- package/serialization/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -12
- package/serialization/resources/voice/types/index.d.ts +0 -1
- package/serialization/resources/voice/types/index.js +0 -17
- /package/api/resources/{voice/types/CreateVoiceChatCompletionsRequestBody.js → agents/resources/messages/client/requests/MessagesCreateAsyncRequest.js} +0 -0
- /package/{dist/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.js → api/types/LettaStopReason.js} +0 -0
package/reference.md
CHANGED
|
@@ -4875,13 +4875,7 @@ await client.messages.listBatchMessages("batch_id");
|
|
|
4875
4875
|
```typescript
|
|
4876
4876
|
await client.voice.createVoiceChatCompletions("agent_id", {
|
|
4877
4877
|
body: {
|
|
4878
|
-
|
|
4879
|
-
{
|
|
4880
|
-
content: "content",
|
|
4881
|
-
role: "developer",
|
|
4882
|
-
},
|
|
4883
|
-
],
|
|
4884
|
-
model: "model",
|
|
4878
|
+
key: "value",
|
|
4885
4879
|
},
|
|
4886
4880
|
});
|
|
4887
4881
|
```
|
|
@@ -6759,17 +6753,19 @@ The actual processing happens in the background, and the status can be checked u
|
|
|
6759
6753
|
|
|
6760
6754
|
```typescript
|
|
6761
6755
|
await client.agents.messages.createAsync("agent_id", {
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6756
|
+
body: {
|
|
6757
|
+
messages: [
|
|
6758
|
+
{
|
|
6759
|
+
role: "user",
|
|
6760
|
+
content: [
|
|
6761
|
+
{
|
|
6762
|
+
type: "text",
|
|
6763
|
+
text: "text",
|
|
6764
|
+
},
|
|
6765
|
+
],
|
|
6766
|
+
},
|
|
6767
|
+
],
|
|
6768
|
+
},
|
|
6773
6769
|
});
|
|
6774
6770
|
```
|
|
6775
6771
|
|
|
@@ -6794,7 +6790,7 @@ await client.agents.messages.createAsync("agent_id", {
|
|
|
6794
6790
|
<dl>
|
|
6795
6791
|
<dd>
|
|
6796
6792
|
|
|
6797
|
-
**request:** `Letta.
|
|
6793
|
+
**request:** `Letta.agents.MessagesCreateAsyncRequest`
|
|
6798
6794
|
|
|
6799
6795
|
</dd>
|
|
6800
6796
|
</dl>
|
|
@@ -10,8 +10,9 @@ import { ReasoningMessage } from "../../../../../types/ReasoningMessage";
|
|
|
10
10
|
import { ToolCallMessage } from "../../../../../types/ToolCallMessage";
|
|
11
11
|
import { ToolReturnMessage } from "../../../../../types/ToolReturnMessage";
|
|
12
12
|
import { AssistantMessage } from "../../../../../types/AssistantMessage";
|
|
13
|
+
import { LettaStopReason } from "../../../../../types/LettaStopReason";
|
|
13
14
|
import { LettaUsageStatistics } from "../../../../../types/LettaUsageStatistics";
|
|
14
15
|
export declare const LettaStreamingResponse: core.serialization.Schema<serializers.agents.LettaStreamingResponse.Raw, Letta.agents.LettaStreamingResponse>;
|
|
15
16
|
export declare namespace LettaStreamingResponse {
|
|
16
|
-
type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaUsageStatistics.Raw;
|
|
17
|
+
type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaStopReason.Raw | LettaUsageStatistics.Raw;
|
|
17
18
|
}
|
|
@@ -44,6 +44,7 @@ const ReasoningMessage_1 = require("../../../../../types/ReasoningMessage");
|
|
|
44
44
|
const ToolCallMessage_1 = require("../../../../../types/ToolCallMessage");
|
|
45
45
|
const ToolReturnMessage_1 = require("../../../../../types/ToolReturnMessage");
|
|
46
46
|
const AssistantMessage_1 = require("../../../../../types/AssistantMessage");
|
|
47
|
+
const LettaStopReason_1 = require("../../../../../types/LettaStopReason");
|
|
47
48
|
const LettaUsageStatistics_1 = require("../../../../../types/LettaUsageStatistics");
|
|
48
49
|
exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
|
|
49
50
|
SystemMessage_1.SystemMessage,
|
|
@@ -52,5 +53,6 @@ exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
|
|
|
52
53
|
ToolCallMessage_1.ToolCallMessage,
|
|
53
54
|
ToolReturnMessage_1.ToolReturnMessage,
|
|
54
55
|
AssistantMessage_1.AssistantMessage,
|
|
56
|
+
LettaStopReason_1.LettaStopReason,
|
|
55
57
|
LettaUsageStatistics_1.LettaUsageStatistics,
|
|
56
58
|
]);
|
|
@@ -4,8 +4,6 @@ export * as agents from "./agents";
|
|
|
4
4
|
export * from "./agents/types";
|
|
5
5
|
export * as groups from "./groups";
|
|
6
6
|
export * from "./groups/types";
|
|
7
|
-
export * as voice from "./voice";
|
|
8
|
-
export * from "./voice/types";
|
|
9
7
|
export * as templates from "./templates";
|
|
10
8
|
export * from "./templates/types";
|
|
11
9
|
export * as clientSideAccessTokens from "./clientSideAccessTokens";
|
|
@@ -23,6 +21,7 @@ export * as runs from "./runs";
|
|
|
23
21
|
export * as steps from "./steps";
|
|
24
22
|
export * as tags from "./tags";
|
|
25
23
|
export * as batches from "./batches";
|
|
24
|
+
export * as voice from "./voice";
|
|
26
25
|
export * from "./tools/client/requests";
|
|
27
26
|
export * from "./sources/client/requests";
|
|
28
27
|
export * from "./agents/client/requests";
|
|
@@ -36,15 +36,13 @@ 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.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.
|
|
39
|
+
exports.voice = exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = 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"));
|
|
43
43
|
__exportStar(require("./agents/types"), exports);
|
|
44
44
|
exports.groups = __importStar(require("./groups"));
|
|
45
45
|
__exportStar(require("./groups/types"), exports);
|
|
46
|
-
exports.voice = __importStar(require("./voice"));
|
|
47
|
-
__exportStar(require("./voice/types"), exports);
|
|
48
46
|
exports.templates = __importStar(require("./templates"));
|
|
49
47
|
__exportStar(require("./templates/types"), exports);
|
|
50
48
|
exports.clientSideAccessTokens = __importStar(require("./clientSideAccessTokens"));
|
|
@@ -62,6 +60,7 @@ exports.runs = __importStar(require("./runs"));
|
|
|
62
60
|
exports.steps = __importStar(require("./steps"));
|
|
63
61
|
exports.tags = __importStar(require("./tags"));
|
|
64
62
|
exports.batches = __importStar(require("./batches"));
|
|
63
|
+
exports.voice = __importStar(require("./voice"));
|
|
65
64
|
__exportStar(require("./tools/client/requests"), exports);
|
|
66
65
|
__exportStar(require("./sources/client/requests"), exports);
|
|
67
66
|
__exportStar(require("./agents/client/requests"), exports);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Letta from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { PipRequirement } from "../../../../types/PipRequirement";
|
|
7
8
|
export declare const ToolRunFromSource: core.serialization.Schema<serializers.ToolRunFromSource.Raw, Letta.ToolRunFromSource>;
|
|
8
9
|
export declare namespace ToolRunFromSource {
|
|
9
10
|
interface Raw {
|
|
@@ -14,5 +15,6 @@ export declare namespace ToolRunFromSource {
|
|
|
14
15
|
source_type?: string | null;
|
|
15
16
|
args_json_schema?: Record<string, unknown> | null;
|
|
16
17
|
json_schema?: Record<string, unknown> | null;
|
|
18
|
+
pip_requirements?: PipRequirement.Raw[] | null;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ToolRunFromSource = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const PipRequirement_1 = require("../../../../types/PipRequirement");
|
|
41
42
|
exports.ToolRunFromSource = core.serialization.object({
|
|
42
43
|
sourceCode: core.serialization.property("source_code", core.serialization.string()),
|
|
43
44
|
args: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
@@ -46,4 +47,5 @@ exports.ToolRunFromSource = core.serialization.object({
|
|
|
46
47
|
sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
|
|
47
48
|
argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
48
49
|
jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
50
|
+
pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
|
|
49
51
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Letta from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { PipRequirement } from "../../../../types/PipRequirement";
|
|
7
8
|
export declare const ToolUpdate: core.serialization.Schema<serializers.ToolUpdate.Raw, Letta.ToolUpdate>;
|
|
8
9
|
export declare namespace ToolUpdate {
|
|
9
10
|
interface Raw {
|
|
@@ -14,5 +15,6 @@ export declare namespace ToolUpdate {
|
|
|
14
15
|
json_schema?: Record<string, unknown> | null;
|
|
15
16
|
args_json_schema?: Record<string, unknown> | null;
|
|
16
17
|
return_char_limit?: number | null;
|
|
18
|
+
pip_requirements?: PipRequirement.Raw[] | null;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ToolUpdate = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const PipRequirement_1 = require("../../../../types/PipRequirement");
|
|
41
42
|
exports.ToolUpdate = core.serialization.object({
|
|
42
43
|
description: core.serialization.string().optional(),
|
|
43
44
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
@@ -46,4 +47,5 @@ exports.ToolUpdate = core.serialization.object({
|
|
|
46
47
|
jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
47
48
|
argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
48
49
|
returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
|
|
50
|
+
pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
|
|
49
51
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Request: core.serialization.Schema<serializers.voice.createVoiceChatCompletions.Request.Raw, Record<string, unknown>>;
|
|
7
|
+
export declare namespace Request {
|
|
8
|
+
type Raw = Record<string, unknown>;
|
|
9
|
+
}
|
|
@@ -36,8 +36,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.Request = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
|
|
42
|
-
const CompletionCreateParamsStreaming_1 = require("../../../types/CompletionCreateParamsStreaming");
|
|
43
|
-
exports.CreateVoiceChatCompletionsRequestBody = core.serialization.undiscriminatedUnion([CompletionCreateParamsNonStreaming_1.CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming_1.CompletionCreateParamsStreaming]);
|
|
41
|
+
exports.Request = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as createVoiceChatCompletions from "./createVoiceChatCompletions";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.createVoiceChatCompletions = void 0;
|
|
37
|
+
exports.createVoiceChatCompletions = __importStar(require("./createVoiceChatCompletions"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./client";
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -52,5 +52,6 @@ exports.BatchJob = core.serialization.object({
|
|
|
52
52
|
callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
|
|
53
53
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
54
54
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
55
|
+
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
55
56
|
id: core.serialization.string().optional(),
|
|
56
57
|
});
|
|
@@ -52,5 +52,6 @@ exports.Job = core.serialization.object({
|
|
|
52
52
|
callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
|
|
53
53
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
54
54
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
55
|
+
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
55
56
|
id: core.serialization.string().optional(),
|
|
56
57
|
});
|
|
@@ -5,11 +5,13 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { LettaMessageUnion } from "./LettaMessageUnion";
|
|
8
|
+
import { LettaStopReason } from "./LettaStopReason";
|
|
8
9
|
import { LettaUsageStatistics } from "./LettaUsageStatistics";
|
|
9
10
|
export declare const LettaResponse: core.serialization.ObjectSchema<serializers.LettaResponse.Raw, Letta.LettaResponse>;
|
|
10
11
|
export declare namespace LettaResponse {
|
|
11
12
|
interface Raw {
|
|
12
13
|
messages: LettaMessageUnion.Raw[];
|
|
14
|
+
stop_reason: LettaStopReason.Raw;
|
|
13
15
|
usage: LettaUsageStatistics.Raw;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -39,8 +39,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.LettaResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const LettaMessageUnion_1 = require("./LettaMessageUnion");
|
|
42
|
+
const LettaStopReason_1 = require("./LettaStopReason");
|
|
42
43
|
const LettaUsageStatistics_1 = require("./LettaUsageStatistics");
|
|
43
44
|
exports.LettaResponse = core.serialization.object({
|
|
44
45
|
messages: core.serialization.list(LettaMessageUnion_1.LettaMessageUnion),
|
|
46
|
+
stopReason: core.serialization.property("stop_reason", LettaStopReason_1.LettaStopReason),
|
|
45
47
|
usage: LettaUsageStatistics_1.LettaUsageStatistics,
|
|
46
48
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { StopReasonType } from "./StopReasonType";
|
|
8
|
+
export declare const LettaStopReason: core.serialization.ObjectSchema<serializers.LettaStopReason.Raw, Letta.LettaStopReason>;
|
|
9
|
+
export declare namespace LettaStopReason {
|
|
10
|
+
interface Raw {
|
|
11
|
+
message_type?: "stop_reason" | null;
|
|
12
|
+
stop_reason: StopReasonType.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.LettaStopReason = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const StopReasonType_1 = require("./StopReasonType");
|
|
42
|
+
exports.LettaStopReason = core.serialization.object({
|
|
43
|
+
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("stop_reason").optional()),
|
|
44
|
+
stopReason: core.serialization.property("stop_reason", StopReasonType_1.StopReasonType),
|
|
45
|
+
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const McpServerType: core.serialization.Schema<serializers.McpServerType.Raw, Letta.McpServerType>;
|
|
8
8
|
export declare namespace McpServerType {
|
|
9
|
-
type Raw = "sse" | "stdio";
|
|
9
|
+
type Raw = "sse" | "stdio" | "streamable_http";
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.McpServerType = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.McpServerType = core.serialization.enum_(["sse", "stdio"]);
|
|
41
|
+
exports.McpServerType = core.serialization.enum_(["sse", "stdio", "streamable_http"]);
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { ToolAnnotations } from "./ToolAnnotations";
|
|
7
8
|
export declare const McpTool: core.serialization.ObjectSchema<serializers.McpTool.Raw, Letta.McpTool>;
|
|
8
9
|
export declare namespace McpTool {
|
|
9
10
|
interface Raw {
|
|
10
11
|
name: string;
|
|
11
12
|
description?: string | null;
|
|
12
13
|
inputSchema: Record<string, unknown>;
|
|
14
|
+
annotations?: ToolAnnotations.Raw | null;
|
|
13
15
|
[key: string]: any;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -38,10 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.McpTool = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
+
const ToolAnnotations_1 = require("./ToolAnnotations");
|
|
41
42
|
exports.McpTool = core.serialization
|
|
42
43
|
.object({
|
|
43
44
|
name: core.serialization.string(),
|
|
44
45
|
description: core.serialization.string().optional(),
|
|
45
46
|
inputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
47
|
+
annotations: ToolAnnotations_1.ToolAnnotations.optional(),
|
|
46
48
|
})
|
|
47
49
|
.passthrough();
|
|
@@ -53,6 +53,7 @@ exports.Run = core.serialization.object({
|
|
|
53
53
|
callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
|
|
54
54
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
55
55
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
56
|
+
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
56
57
|
id: core.serialization.string().optional(),
|
|
57
58
|
requestConfig: core.serialization.property("request_config", LettaRequestConfig_1.LettaRequestConfig.optional()),
|
|
58
59
|
});
|
|
@@ -11,5 +11,8 @@ export declare namespace SseServerConfig {
|
|
|
11
11
|
server_name: string;
|
|
12
12
|
type?: McpServerType.Raw | null;
|
|
13
13
|
server_url: string;
|
|
14
|
+
auth_header?: string | null;
|
|
15
|
+
auth_token?: string | null;
|
|
16
|
+
custom_headers?: Record<string, string | null | undefined> | null;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -43,4 +43,7 @@ exports.SseServerConfig = core.serialization.object({
|
|
|
43
43
|
serverName: core.serialization.property("server_name", core.serialization.string()),
|
|
44
44
|
type: McpServerType_1.McpServerType.optional(),
|
|
45
45
|
serverUrl: core.serialization.property("server_url", core.serialization.string()),
|
|
46
|
+
authHeader: core.serialization.property("auth_header", core.serialization.string().optional()),
|
|
47
|
+
authToken: core.serialization.property("auth_token", core.serialization.string().optional()),
|
|
48
|
+
customHeaders: core.serialization.property("custom_headers", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
46
49
|
});
|
|
@@ -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 StopReasonType: core.serialization.Schema<serializers.StopReasonType.Raw, Letta.StopReasonType>;
|
|
8
|
+
export declare namespace StopReasonType {
|
|
9
|
+
type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule";
|
|
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.StopReasonType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.StopReasonType = core.serialization.enum_(["end_turn", "error", "invalid_tool_call", "max_steps", "no_tool_call", "tool_rule"]);
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ToolType } from "./ToolType";
|
|
8
|
+
import { PipRequirement } from "./PipRequirement";
|
|
8
9
|
export declare const Tool: core.serialization.ObjectSchema<serializers.Tool.Raw, Letta.Tool>;
|
|
9
10
|
export declare namespace Tool {
|
|
10
11
|
interface Raw {
|
|
@@ -18,6 +19,7 @@ export declare namespace Tool {
|
|
|
18
19
|
json_schema?: Record<string, unknown> | null;
|
|
19
20
|
args_json_schema?: Record<string, unknown> | null;
|
|
20
21
|
return_char_limit?: number | null;
|
|
22
|
+
pip_requirements?: PipRequirement.Raw[] | null;
|
|
21
23
|
created_by_id?: string | null;
|
|
22
24
|
last_updated_by_id?: string | null;
|
|
23
25
|
metadata_?: Record<string, unknown> | null;
|
|
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.Tool = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const ToolType_1 = require("./ToolType");
|
|
42
|
+
const PipRequirement_1 = require("./PipRequirement");
|
|
42
43
|
exports.Tool = core.serialization.object({
|
|
43
44
|
id: core.serialization.string().optional(),
|
|
44
45
|
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
@@ -50,6 +51,7 @@ exports.Tool = core.serialization.object({
|
|
|
50
51
|
jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
51
52
|
argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
52
53
|
returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
|
|
54
|
+
pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
|
|
53
55
|
createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
|
|
54
56
|
lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
|
|
55
57
|
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
@@ -0,0 +1,17 @@
|
|
|
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 ToolAnnotations: core.serialization.ObjectSchema<serializers.ToolAnnotations.Raw, Letta.ToolAnnotations>;
|
|
8
|
+
export declare namespace ToolAnnotations {
|
|
9
|
+
interface Raw {
|
|
10
|
+
title?: string | null;
|
|
11
|
+
readOnlyHint?: boolean | null;
|
|
12
|
+
destructiveHint?: boolean | null;
|
|
13
|
+
idempotentHint?: boolean | null;
|
|
14
|
+
openWorldHint?: boolean | null;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.ToolAnnotations = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ToolAnnotations = core.serialization
|
|
42
|
+
.object({
|
|
43
|
+
title: core.serialization.string().optional(),
|
|
44
|
+
readOnlyHint: core.serialization.boolean().optional(),
|
|
45
|
+
destructiveHint: core.serialization.boolean().optional(),
|
|
46
|
+
idempotentHint: core.serialization.boolean().optional(),
|
|
47
|
+
openWorldHint: core.serialization.boolean().optional(),
|
|
48
|
+
})
|
|
49
|
+
.passthrough();
|