mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-05 23:41:06 +00:00
fix: use uv init env
This commit is contained in:
parent
0940a00c69
commit
9996cdbc50
1 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import os
|
|||
from pathlib import Path
|
||||
from typing import Any, Dict
|
||||
from camel.toolkits.terminal_toolkit import TerminalToolkit as BaseTerminalToolkit
|
||||
from app.component.command import uv
|
||||
from app.component.environment import env
|
||||
from app.service.task import Action, ActionTerminalData, Agents, get_task_lock
|
||||
from app.utils.listen.toolkit_listen import listen_toolkit
|
||||
|
|
@ -56,6 +57,10 @@ class TerminalToolkit(BaseTerminalToolkit, AbstractToolkit):
|
|||
if hasattr(task_lock, "add_background_task"):
|
||||
task_lock.add_background_task(task)
|
||||
|
||||
def _ensure_uv_available(self) -> bool:
|
||||
self.uv_path = uv()
|
||||
return True
|
||||
|
||||
@listen_toolkit(
|
||||
BaseTerminalToolkit.shell_exec,
|
||||
lambda _, id, command: f"id: {id}, command: {command}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue