Skip to content

Commit b181d28

Browse files
committed
support sandbox for cua
1 parent 1c35cc2 commit b181d28

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
@@ -12,16 +12,23 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
computer_sandbox = ...
15+
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset
1616

17+
from veadk.config import getenv
18+
from veadk.utils.mcp_utils import get_mcp_params
1719

18-
def computer_use(prompt: str) -> str:
19-
"""Using the remote computer sandbox to according to the prompt.
20+
url = getenv("TOOL_COMPUTER_SANDBOX_URL")
2021

21-
Args:
22-
prompt (str): The prompt to be used.
2322

24-
Returns:
25-
str: The response from the sandbox.
26-
"""
27-
...
23+
computer_sandbox = MCPToolset(connection_params=get_mcp_params(url=url))
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)