debug: log tools count and names in portal before execute_stream

This commit is contained in:
chiguyong 2026-06-11 21:44:20 +08:00
parent 32c800d1e4
commit b6ec13cbca
1 changed files with 4 additions and 1 deletions

View File

@ -595,7 +595,10 @@ async def portal_websocket(websocket: WebSocket):
model = agent.get_model()
system_prompt = agent.get_system_prompt()
timeout_seconds = react_config["timeout_seconds"]
logger.info(
f"[portal] agent='{agent_name}' tools={len(tools)} "
f"[{', '.join(t.name for t in tools)}] model={model}"
)
collected_output: list[str] = []
try:
async for event in react_engine.execute_stream(