AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.core.permission

io.agentscope.core.permission

package io.agentscope.core.permission

io.agentscope.core.permission 属于智能体运行时,推理、工具调用与会话执行。 该包共收录 9 个公开类型。

Tool-permission evaluation engine for AgentScope Java.

The package hosts PermissionEngine, PermissionMode, PermissionRule, PermissionContextState, PermissionDecision and PermissionBehavior. The evaluation order is:


deny → ask → tool self-check → allow → BYPASS → default ASK

所属构件Artifacts agentscope-core

类Classes

类型Type种类Kind说明Description
PermissionContextState类class
权限上下文状态,驱动智能体的推理、工具调用与会话执行。
Permission evaluation context: mode + working directories + three rule tables.
PermissionDecision类class
权限决策,驱动智能体的推理、工具调用与会话执行。
Decision returned by a permission rule match or a tool self-check.
PermissionEngine类class
权限引擎,驱动智能体的推理、工具调用与会话执行。
Evaluates tool execution requests against configured permission rules.

枚举Enums

类型Type种类Kind说明Description
PermissionBehavior枚举enum
定义权限行为相关取值的枚举。
Outcome of a permission rule or tool self-check.
PermissionMode枚举enum
定义权限模式相关取值的枚举。
Permission mode controlling how the engine evaluates tool execution requests.

记录Records

类型Type种类Kind说明Description
AdditionalWorkingDirectory记录record
承载 Additional Working 目录数据的记录类型。
A directory included in a permission context's working scope.
PermissionRule记录record
承载权限规则数据的记录类型。
A single permission rule pinned to a tool name.
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.