agentscope-ai / agentscope-ai/agentscope-java

[Bug]:Error: Access denied: The file path '.' is outside the allowed base directory

未关闭
#770 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area/core/tool bug
主要语言
Java
星标
5.6k
派生
1.3k
平均合并
4 天 12 小时
30 天内合并 PR
77

描述

**AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.**

**Describe the bug**
WorkDir has been set for SkillBox, but for Operation without permission

**To Reproduce**
Steps to reproduce the behavior:

1. You code
2. How to execute
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Error messages**
{"id":"affcda0f05db4c58ae48d7885dc1707a","object":"chat.completion.chunk","created":1770690594,"model":"","choices":[{"index":0,"delta":{"role":"tool","content":"{\"type\":\"TOOL_RESULT\",\"message\":{\"id\":\"fd5f50c7-8894-47b6-8e12-682e615247b3\",\"name\":\"system\",\"role\":\"TOOL\",\"content\":[{\"type\":\"tool_result\",\"id\":\"call_299a382908bc4d5488eed6c0d074e0ff\",\"name\":\"list_directory\",\"output\":[{\"type\":\"text\",\"text\":\"Error: Access denied: The file path '.' is outside the allowed base directory 'I:\\\\data\\\\attachment\\\\drama\\\\ky-novel\\\\33444\\\\2012101170879859'.\"}],\"metadata\":{}}],\"metadata\":{},\"timestamp\":\"2026-02-10 10:29:54.941\"},\"last\":true,\"messageId\":\"fd5f50c7-8894-47b6-8e12-682e615247b3\"}","name":"call_planner_agent","tool_call_id":"call_9fe50c18c3ce4e9883946a2909f747bd"}}]}

**Environment (please complete the following information):**

- AgentScope-Java Version: 1.0.8
- Java Version: 21
- OS:windows10

**Additional context**
Add any other context about the problem here.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。