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

Method ExecuteCode

api/service/sandbox/client.go:149–155  ·  view source on GitHub ↗
(ctx context.Context, req ExecuteCodeRequest)

Source from the content-addressed store, hash-verified

147}
148
149func (c *Client) ExecuteCode(ctx context.Context, req ExecuteCodeRequest) (*ExecuteCodeResponse, error) {
150 var resp ExecuteCodeResponse
151 if err := c.postJSON(ctx, "/execute", req, &resp); err != nil {
152 return nil, err
153 }
154 return &resp, nil
155}
156
157func (c *Client) ExecuteCodeStream(ctx context.Context, req ExecuteCodeRequest) (*http.Response, error) {
158 jsonData, err := json.Marshal(req)

Callers 3

executeSandboxCodeFunction · 0.80

Calls 1

postJSONMethod · 0.95

Tested by

no test coverage detected