Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions veadk/tools/sandbox/computer_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,23 @@
# See the License for the specific language governing permissions and
# limitations under the License.

computer_sandbox = ...
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset

from veadk.config import getenv
from veadk.utils.mcp_utils import get_mcp_params

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

Args:
prompt (str): The prompt to be used.

Returns:
str: The response from the sandbox.
"""
...
computer_sandbox = MCPToolset(connection_params=get_mcp_params(url=url))

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

# Args:
# prompt (str): The prompt to be used.

# Returns:
# str: The response from the sandbox.
# """
# ...