@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.
@@ -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") && 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",
@@ -11226,4 +11236,4 @@ export {
11226
11236
  CloudManagedSandboxExpiredError
11227
11237
  };
11228
11238
 
11229
- //# debugId=EA1D7D2E02C4DE4764756E2164756E21
11239
+ //# debugId=426375D4DE9A64EB64756E2164756E21