Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public ContainerModel createContainer(Sandbox sandbox) throws JsonProcessingExce
if (this.remoteHttpClient != null) {
logger.info("Creating container in remote mode via RemoteHttpClient");
ObjectMapper mapper = new ObjectMapper();
String sandboxJson = mapper.writeValueAsString(sandbox);
String sandboxJson = mapper.writeValueAsString(Map.of("sandboxId", sandbox.getSandboxId()));
Map<String, Object> request = Map.of("sandbox", sandboxJson);
Object result = remoteHttpClient.makeRequest(
RequestMethod.POST,
Expand Down Expand Up @@ -536,7 +536,7 @@ public ContainerModel getInfo(Sandbox sandbox) throws JsonProcessingException {
if (this.remoteHttpClient != null) {
logger.info("Getting sandbox info in remote mode via RemoteHttpClient");
ObjectMapper mapper = new ObjectMapper();
String sandboxJson = mapper.writeValueAsString(sandbox);
String sandboxJson = mapper.writeValueAsString(Map.of("sandboxId", sandbox.getSandboxId()));
Map<String, Object> request = Map.of("sandbox", sandboxJson);
Object result = remoteHttpClient.makeRequest(
RequestMethod.POST,
Expand Down Expand Up @@ -599,7 +599,7 @@ public Map<String, Object> listTools(Sandbox sandbox, String toolType) throws Js
if (this.remoteHttpClient != null) {
logger.info("Listing tools in remote mode via RemoteHttpClient");
ObjectMapper mapper = new ObjectMapper();
String sandboxJson = mapper.writeValueAsString(sandbox);
String sandboxJson = mapper.writeValueAsString(Map.of("sandboxId", sandbox.getSandboxId()));
Map<String, Object> request = Map.of(
"sandbox", sandboxJson,
"toolType", toolType
Expand Down Expand Up @@ -630,7 +630,7 @@ public String callTool(Sandbox sandbox, String toolName, Map<String, Object> arg
if (this.remoteHttpClient != null) {
logger.info("Calling tool in remote mode via RemoteHttpClient");
ObjectMapper mapper = new ObjectMapper();
String sandboxJson = mapper.writeValueAsString(sandbox);
String sandboxJson = mapper.writeValueAsString(Map.of("sandboxId", sandbox.getSandboxId()));
Map<String, Object> request = Map.of(
"sandbox", sandboxJson,
"toolName", toolName,
Expand Down Expand Up @@ -660,7 +660,7 @@ public Map<String, Object> addMcpServers(Sandbox sandbox, Map<String, Object> se
if (this.remoteHttpClient != null) {
logger.info("Adding MCP servers in remote mode via RemoteHttpClient");
ObjectMapper mapper = new ObjectMapper();
String sandboxJson = mapper.writeValueAsString(sandbox);
String sandboxJson = mapper.writeValueAsString(Map.of("sandboxId", sandbox.getSandboxId()));
Map<String, Object> request = Map.of(
"sandbox", sandboxJson,
"serverConfigs", serverConfigs,
Expand Down