@letta-ai/letta-agent-sdk 0.8.44 → 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.
@@ -9432,7 +9432,7 @@ function isAppServerInfoResponseMessage(message) {
9432
9432
  return false;
9433
9433
  }
9434
9434
  const capabilityRecord = capabilities;
9435
- 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";
9435
+ 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";
9436
9436
  }
9437
9437
  var DEFAULT_REQUEST_TIMEOUT_MS = 30000;
9438
9438
  var WEBSOCKET_OPEN_STATE = 1;
@@ -9685,6 +9685,26 @@ class AppServerClient {
9685
9685
  predicate: (message) => message.type === "launch_subagent_response"
9686
9686
  });
9687
9687
  }
9688
+ sendSubagentMessage(command, options = {}) {
9689
+ return this.request({
9690
+ ...command,
9691
+ type: "subagent_message",
9692
+ request_id: command.request_id ?? this.nextRequestId("subagent-message")
9693
+ }, {
9694
+ ...options,
9695
+ predicate: (message) => message.type === "subagent_message_response"
9696
+ });
9697
+ }
9698
+ stopSubagent(command, options = {}) {
9699
+ return this.request({
9700
+ ...command,
9701
+ type: "subagent_stop",
9702
+ request_id: command.request_id ?? this.nextRequestId("subagent-stop")
9703
+ }, {
9704
+ ...options,
9705
+ predicate: (message) => message.type === "subagent_stop_response" && message.agent_id === command.agent_id
9706
+ });
9707
+ }
9688
9708
  runtimeStart(command, options = {}) {
9689
9709
  return this.request({
9690
9710
  type: "runtime_start",
@@ -17829,4 +17849,4 @@ export {
17829
17849
  CloudManagedSandboxExpiredError
17830
17850
  };
17831
17851
 
17832
- //# debugId=7A66C4B4B9A1EE6764756E2164756E21
17852
+ //# debugId=F6FD8FCCEF83803064756E2164756E21