Skip to content

Commit d530780

Browse files
committed
allow subagent to start multiple code sandbox in parallel
1 parent fbe4c90 commit d530780

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

veadk/tools/builtin_tools/run_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def run_code(code: str, language: str, tool_context: ToolContext) -> str:
4242
region = getenv("AGENTKIT_TOOL_REGION", "cn-beijing")
4343

4444
session_id = tool_context._invocation_context.session.id
45-
app_name = tool_context._invocation_context.app_name
45+
agent_name = tool_context._invocation_context.agent.name
4646
user_id = tool_context._invocation_context.user_id
47-
tool_user_session_id = app_name + "_" + user_id + "_" + session_id
47+
tool_user_session_id = agent_name + "_" + user_id + "_" + session_id
4848
logger.debug(f"tool_user_session_id: {tool_user_session_id}")
4949

5050
logger.debug(

0 commit comments

Comments
 (0)