Skip to content

Commit ba6b2ab

Browse files
committed
support sandbox for cua
1 parent e638d47 commit ba6b2ab

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

veadk/tools/sandbox/computer_sandbox.py

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,24 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset
1415

15-
computer_sandbox = ...
16+
from veadk.config import getenv
17+
from veadk.utils.mcp_utils import get_mcp_params
1618

19+
url = getenv("TOOL_COMPUTER_SANDBOX_URL")
1720

18-
def computer_use(prompt: str) -> str:
19-
"""Using the remote computer sandbox to according to the prompt.
2021

21-
Args:
22-
prompt (str): The prompt to be used.
22+
computer_sandbox = MCPToolset(connection_params=get_mcp_params(url=url))
2323

24-
Returns:
25-
str: The response from the sandbox.
26-
"""
27-
...
24+
25+
# def computer_use(prompt: str) -> str:
26+
# """Using the remote computer sandbox to according to the prompt.
27+
28+
# Args:
29+
# prompt (str): The prompt to be used.
30+
31+
# Returns:
32+
# str: The response from the sandbox.
33+
# """
34+
# ...

0 commit comments

Comments
 (0)