@letta-ai/letta-agent-sdk 0.8.14 → 0.8.16
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 +13 -3
- package/dist/client-entry.js.map +4 -4
- package/dist/index.js +14 -4
- package/dist/index.js.map +5 -5
- package/package.json +2 -2
package/dist/client-entry.js
CHANGED
|
@@ -3121,7 +3121,7 @@ function isAppServerInfoResponseMessage(message) {
|
|
|
3121
3121
|
return false;
|
|
3122
3122
|
}
|
|
3123
3123
|
const capabilityRecord = capabilities;
|
|
3124
|
-
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") && (capabilityRecord.structured_outputs === undefined || typeof capabilityRecord.structured_outputs === "boolean") && typeof capabilityRecord.split_channels === "boolean";
|
|
3124
|
+
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";
|
|
3125
3125
|
}
|
|
3126
3126
|
var DEFAULT_REQUEST_TIMEOUT_MS = 30000;
|
|
3127
3127
|
var WEBSOCKET_OPEN_STATE = 1;
|
|
@@ -3364,6 +3364,16 @@ class AppServerClient {
|
|
|
3364
3364
|
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
|
|
3365
3365
|
});
|
|
3366
3366
|
}
|
|
3367
|
+
launchSubagent(command, options = {}) {
|
|
3368
|
+
return this.request({
|
|
3369
|
+
...command,
|
|
3370
|
+
type: "launch_subagent",
|
|
3371
|
+
request_id: command.request_id ?? this.nextRequestId("launch-subagent")
|
|
3372
|
+
}, {
|
|
3373
|
+
...options,
|
|
3374
|
+
predicate: (message) => message.type === "launch_subagent_response"
|
|
3375
|
+
});
|
|
3376
|
+
}
|
|
3367
3377
|
runtimeStart(command, options = {}) {
|
|
3368
3378
|
return this.request({
|
|
3369
3379
|
type: "runtime_start",
|
|
@@ -6169,7 +6179,7 @@ async function buildCreateAgentRequest(options = {}) {
|
|
|
6169
6179
|
...options.name !== undefined || personality ? { name: options.name ?? personality?.label } : {},
|
|
6170
6180
|
...options.description !== undefined || personality ? { description: options.description ?? personality?.description } : {},
|
|
6171
6181
|
model: modelHandle,
|
|
6172
|
-
system: options.system
|
|
6182
|
+
system: options.system !== undefined ? options.system : buildSystemPrompt("default", memoryPromptMode),
|
|
6173
6183
|
...memoryBlocks !== undefined ? { memory_blocks: memoryBlocks } : {},
|
|
6174
6184
|
...blockIds && blockIds.length > 0 ? { block_ids: blockIds } : {},
|
|
6175
6185
|
tags: buildCreatedAgentTags({
|
|
@@ -11226,4 +11236,4 @@ export {
|
|
|
11226
11236
|
CloudManagedSandboxExpiredError
|
|
11227
11237
|
};
|
|
11228
11238
|
|
|
11229
|
-
//# debugId=
|
|
11239
|
+
//# debugId=75B185383FFF336D64756E2164756E21
|