Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions packaging/requirements-pack.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pyinstaller==6.17.0
numpy
pandas
matplotlib
scipy
openpyxl
requests
openai
pywebview
numpy>=1.24,<2.0
pandas>=2.0,<3.0
matplotlib>=3.7,<4.0
scipy>=1.10,<2.0
openpyxl>=3.1,<4.0
requests>=2.28,<3.0
openai>=1.0,<2.0
pywebview>=4.0,<6.0
5 changes: 4 additions & 1 deletion src/electrochem_v6/agent/agent_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
"""

import json
import logging
from typing import List, Dict, Any, Optional, Callable
from electrochem_v6.llm.base_client import BaseLLMClient
from .tool_executor import execute_tool
from .tools import ALL_TOOLS
from .prompts import SYSTEM_PROMPT

_logger = logging.getLogger(__name__)


def _debug_log(tag: str, payload):
"""统一的Debug输出,保证中文不会变成??"""
Expand All @@ -20,7 +23,7 @@ def _debug_log(tag: str, payload):
text = json.dumps(payload, ensure_ascii=False, default=str)
except Exception:
text = str(payload)
print(f"[DEBUG] {tag}: {text}")
_logger.debug("[%s]: %s", tag, text)


class AgentController:
Expand Down
Loading
Loading