MCPcopy Create free account
hub / github.com/53AI/53AIHub / convertFromSandboxClientExecuteResponse

Function convertFromSandboxClientExecuteResponse

api/service/tools/executor.go:1796–1806  ·  view source on GitHub ↗
(resp *sandboxclient.ExecuteCodeResponse)

Source from the content-addressed store, hash-verified

1794}
1795
1796func convertFromSandboxClientExecuteResponse(resp *sandboxclient.ExecuteCodeResponse) SandboxResponse {
1797 if resp == nil {
1798 return SandboxResponse{}
1799 }
1800 return SandboxResponse{
1801 Stdout: resp.Stdout,
1802 Stderr: resp.Stderr,
1803 ExitCode: resp.ExitCode,
1804 OutputFiles: convertSandboxOutputFiles(resp.OutputFiles),
1805 }
1806}
1807
1808func decodeSandboxOutputFileContent(content string) []byte {
1809 trimmed := strings.TrimSpace(content)

Callers 2

executeSandboxCodeFunction · 0.85

Calls 1

Tested by

no test coverage detected