Repository navigation
Replies: 1 comment
|
不一定要完全自己写。分两种情况。
PermissionContextState permCtx = PermissionContextState.builder()
.mode(PermissionMode.DEFAULT)
.addAskRule("execute",
new PermissionRule("execute", null, PermissionBehavior.ASK, "userSettings"))
.build();
// 再传给 HarnessAgent.builder().permissionContext(permCtx)用法见 permission-system.md。
这种情况下的做法是:在 另外,贴出来的代码和当前主干有点不同:主干的 (I looked this up in the code with help from an AI assistant; the links are to the lines I checked.) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
public class ShellExecuteTool {
public static final String NAME = "execute";
private final AbstractSandboxFilesystem sandbox;
}
All reactions