( ctx context.Context, conn workspacesdk.AgentConn, action workspacesdk.DesktopAction, )
| 308 | } |
| 309 | |
| 310 | func (*computerUseTool) executeDesktopAction( |
| 311 | ctx context.Context, |
| 312 | conn workspacesdk.AgentConn, |
| 313 | action workspacesdk.DesktopAction, |
| 314 | ) (fantasy.ToolResponse, bool) { |
| 315 | _, err := conn.ExecuteDesktopAction(ctx, action) |
| 316 | if err != nil { |
| 317 | return fantasy.NewTextErrorResponse( |
| 318 | fmt.Sprintf("action %q failed: %v", action.Action, err), |
| 319 | ), true |
| 320 | } |
| 321 | return fantasy.ToolResponse{}, false |
| 322 | } |
| 323 | |
| 324 | func (*computerUseTool) desktopAction( |
| 325 | action string, |
no test coverage detected