Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
8 changes: 8 additions & 0 deletions camel/toolkits/terminal_toolkit/terminal_toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
from camel.toolkits.terminal_toolkit.utils import (
check_nodejs_availability,
clone_current_environment,
ensure_go_available,
ensure_java_available,
ensure_uv_available,
sanitize_command,
setup_initial_env_with_uv,
Expand Down Expand Up @@ -390,6 +392,12 @@ def update_callback(msg: str):

# Check Node.js availability
check_nodejs_availability(update_callback)

# Check Go availability (auto-install if needed)
ensure_go_available(update_callback)

# Check Java availability (auto-install if needed)
ensure_java_available(update_callback)
Comment on lines +400 to +404
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like we directly discard the output installed path, then how would you ensure the shell command can find the correct path? Since we did not store the path in either os.environ["JAVA_HOME"] or os.environ["PATH"]

else:
logger.info(
"[ENV INIT] Failed to create initial environment, "
Expand Down
Loading
Loading