@letta-ai/letta-agent-sdk 0.8.45 → 0.8.46
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/dist/client-entry.js +22 -2
- package/dist/client-entry.js.map +3 -3
- package/dist/index.js +23 -3
- package/dist/index.js.map +4 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9487,7 +9487,7 @@ function isAppServerInfoResponseMessage(message) {
|
|
|
9487
9487
|
return false;
|
|
9488
9488
|
}
|
|
9489
9489
|
const capabilityRecord = capabilities;
|
|
9490
|
-
return candidate.type === "app_server_info_response" && typeof candidate.request_id === "string" && candidate.request_id.length > 0 && candidate.success === true && (candidate.backend === "local" || candidate.backend === "api") && typeof candidate.letta_code_version === "string" && typeof candidate.protocol_version === "number" && Number.isInteger(candidate.protocol_version) && typeof capabilityRecord.agent_management === "boolean" && typeof capabilityRecord.conversation_management === "boolean" && typeof capabilityRecord.memory_management === "boolean" && typeof capabilityRecord.runtime_start === "boolean" && (capabilityRecord.agent_free_conversations === undefined || typeof capabilityRecord.agent_free_conversations === "boolean") && (capabilityRecord.launch_subagent === undefined || typeof capabilityRecord.launch_subagent === "boolean") && (capabilityRecord.launch_subagent_notify_caller === undefined || typeof capabilityRecord.launch_subagent_notify_caller === "boolean") && (capabilityRecord.runtime_workspace_sandbox === undefined || typeof capabilityRecord.runtime_workspace_sandbox === "boolean") && (capabilityRecord.runtime_external_tools_update === undefined || typeof capabilityRecord.runtime_external_tools_update === "boolean") && (capabilityRecord.structured_outputs === undefined || typeof capabilityRecord.structured_outputs === "boolean") && (capabilityRecord.write_file_base64 === undefined || typeof capabilityRecord.write_file_base64 === "boolean") && typeof capabilityRecord.split_channels === "boolean";
|
|
9490
|
+
return candidate.type === "app_server_info_response" && typeof candidate.request_id === "string" && candidate.request_id.length > 0 && candidate.success === true && (candidate.backend === "local" || candidate.backend === "api") && typeof candidate.letta_code_version === "string" && typeof candidate.protocol_version === "number" && Number.isInteger(candidate.protocol_version) && typeof capabilityRecord.agent_management === "boolean" && typeof capabilityRecord.conversation_management === "boolean" && typeof capabilityRecord.memory_management === "boolean" && typeof capabilityRecord.runtime_start === "boolean" && (capabilityRecord.agent_free_conversations === undefined || typeof capabilityRecord.agent_free_conversations === "boolean") && (capabilityRecord.launch_subagent === undefined || typeof capabilityRecord.launch_subagent === "boolean") && (capabilityRecord.launch_subagent_notify_caller === undefined || typeof capabilityRecord.launch_subagent_notify_caller === "boolean") && (capabilityRecord.subagent_message === undefined || typeof capabilityRecord.subagent_message === "boolean") && (capabilityRecord.runtime_workspace_sandbox === undefined || typeof capabilityRecord.runtime_workspace_sandbox === "boolean") && (capabilityRecord.runtime_external_tools_update === undefined || typeof capabilityRecord.runtime_external_tools_update === "boolean") && (capabilityRecord.structured_outputs === undefined || typeof capabilityRecord.structured_outputs === "boolean") && (capabilityRecord.write_file_base64 === undefined || typeof capabilityRecord.write_file_base64 === "boolean") && typeof capabilityRecord.split_channels === "boolean";
|
|
9491
9491
|
}
|
|
9492
9492
|
var DEFAULT_REQUEST_TIMEOUT_MS = 30000;
|
|
9493
9493
|
var WEBSOCKET_OPEN_STATE = 1;
|
|
@@ -9740,6 +9740,26 @@ class AppServerClient {
|
|
|
9740
9740
|
predicate: (message) => message.type === "launch_subagent_response"
|
|
9741
9741
|
});
|
|
9742
9742
|
}
|
|
9743
|
+
sendSubagentMessage(command, options = {}) {
|
|
9744
|
+
return this.request({
|
|
9745
|
+
...command,
|
|
9746
|
+
type: "subagent_message",
|
|
9747
|
+
request_id: command.request_id ?? this.nextRequestId("subagent-message")
|
|
9748
|
+
}, {
|
|
9749
|
+
...options,
|
|
9750
|
+
predicate: (message) => message.type === "subagent_message_response"
|
|
9751
|
+
});
|
|
9752
|
+
}
|
|
9753
|
+
stopSubagent(command, options = {}) {
|
|
9754
|
+
return this.request({
|
|
9755
|
+
...command,
|
|
9756
|
+
type: "subagent_stop",
|
|
9757
|
+
request_id: command.request_id ?? this.nextRequestId("subagent-stop")
|
|
9758
|
+
}, {
|
|
9759
|
+
...options,
|
|
9760
|
+
predicate: (message) => message.type === "subagent_stop_response" && message.agent_id === command.agent_id
|
|
9761
|
+
});
|
|
9762
|
+
}
|
|
9743
9763
|
runtimeStart(command, options = {}) {
|
|
9744
9764
|
return this.request({
|
|
9745
9765
|
type: "runtime_start",
|
|
@@ -34777,7 +34797,7 @@ class StreamableHTTPClientTransport {
|
|
|
34777
34797
|
}
|
|
34778
34798
|
var DEFAULT_CLIENT_INFO = {
|
|
34779
34799
|
name: "letta-code",
|
|
34780
|
-
version: "0.34.
|
|
34800
|
+
version: "0.34.16"
|
|
34781
34801
|
};
|
|
34782
34802
|
async function connectMcpServer(config2, options = {}) {
|
|
34783
34803
|
let client = new Client(options.clientInfo ?? DEFAULT_CLIENT_INFO);
|
|
@@ -35805,4 +35825,4 @@ export {
|
|
|
35805
35825
|
CloudManagedSandboxExpiredError
|
|
35806
35826
|
};
|
|
35807
35827
|
|
|
35808
|
-
//# debugId=
|
|
35828
|
+
//# debugId=3B62466DC4492DE564756E2164756E21
|