@letta-ai/letta-agent-sdk 0.8.13 → 0.8.15
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 +12 -2
- package/dist/client-entry.js.map +3 -3
- package/dist/index.js +13 -3
- package/dist/index.js.map +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3176,7 +3176,7 @@ function isAppServerInfoResponseMessage(message) {
|
|
|
3176
3176
|
return false;
|
|
3177
3177
|
}
|
|
3178
3178
|
const capabilityRecord = capabilities;
|
|
3179
|
-
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.runtime_workspace_sandbox === undefined || typeof capabilityRecord.runtime_workspace_sandbox === "boolean") && (capabilityRecord.runtime_external_tools_update === undefined || typeof capabilityRecord.runtime_external_tools_update === "boolean") && typeof capabilityRecord.split_channels === "boolean";
|
|
3179
|
+
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.launch_subagent === undefined || typeof capabilityRecord.launch_subagent === "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") && typeof capabilityRecord.split_channels === "boolean";
|
|
3180
3180
|
}
|
|
3181
3181
|
var DEFAULT_REQUEST_TIMEOUT_MS = 30000;
|
|
3182
3182
|
var WEBSOCKET_OPEN_STATE = 1;
|
|
@@ -3419,6 +3419,16 @@ class AppServerClient {
|
|
|
3419
3419
|
predicate: (message) => message.type === "monitor_stop_response" && message.process_id === command.process_id && message.runtime.agent_id === command.runtime.agent_id && message.runtime.conversation_id === command.runtime.conversation_id
|
|
3420
3420
|
});
|
|
3421
3421
|
}
|
|
3422
|
+
launchSubagent(command, options = {}) {
|
|
3423
|
+
return this.request({
|
|
3424
|
+
...command,
|
|
3425
|
+
type: "launch_subagent",
|
|
3426
|
+
request_id: command.request_id ?? this.nextRequestId("launch-subagent")
|
|
3427
|
+
}, {
|
|
3428
|
+
...options,
|
|
3429
|
+
predicate: (message) => message.type === "launch_subagent_response"
|
|
3430
|
+
});
|
|
3431
|
+
}
|
|
3422
3432
|
runtimeStart(command, options = {}) {
|
|
3423
3433
|
return this.request({
|
|
3424
3434
|
type: "runtime_start",
|
|
@@ -28100,7 +28110,7 @@ class StreamableHTTPClientTransport {
|
|
|
28100
28110
|
}
|
|
28101
28111
|
var DEFAULT_CLIENT_INFO = {
|
|
28102
28112
|
name: "letta-code",
|
|
28103
|
-
version: "0.32.
|
|
28113
|
+
version: "0.32.16"
|
|
28104
28114
|
};
|
|
28105
28115
|
async function connectMcpServer(config2, options = {}) {
|
|
28106
28116
|
let client = new Client(options.clientInfo ?? DEFAULT_CLIENT_INFO);
|
|
@@ -29041,4 +29051,4 @@ export {
|
|
|
29041
29051
|
CloudManagedSandboxExpiredError
|
|
29042
29052
|
};
|
|
29043
29053
|
|
|
29044
|
-
//# debugId=
|
|
29054
|
+
//# debugId=B6DC60651470D5BC64756E2164756E21
|