包package
io.agentscope.core.permissionio.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
类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. |