WorkspaceConstants
public final class WorkspaceConstants
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:19–49工作区 Constants,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.agent.workspace 包。核心成员包括 DEFAULT_WORKSPACE_ROOT、AGENTS_MD、MEMORY_MD、TOOLS_JSON、MEMORY_DIR、SKILLS_DIR。
Path constants for the workspace directory structure.
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
DEFAULT_WORKSPACE_ROOTstaticfinal | String | 默认工作区根字段。 The DEFAULT WORKSPACE ROOT field. |
AGENTS_MDstaticfinal | String | 智能体 MD字段。 The AGENTS MD field. |
MEMORY_MDstaticfinal | String | 记忆 MD字段。 The MEMORY MD field. |
TOOLS_JSONstaticfinal | String | 工具 JSON字段。 The TOOLS JSON field. |
MEMORY_DIRstaticfinal | String | 记忆目录字段。 The MEMORY DIR field. |
SKILLS_DIRstaticfinal | String | 技能目录字段。 The SKILLS DIR field. |
KNOWLEDGE_DIRstaticfinal | String | 知识库目录字段。 The KNOWLEDGE DIR field. |
KNOWLEDGE_MDstaticfinal | String | 知识库 MD字段。 The KNOWLEDGE MD field. |
RULES_DIRstaticfinal | String | 规则目录字段。 The RULES DIR field. |
AGENTS_DIRstaticfinal | String | 智能体目录字段。 The AGENTS DIR field. |
SESSIONS_DIRstaticfinal | String | 会话目录字段。 The SESSIONS DIR field. |
TASKS_DIRstaticfinal | String | 任务目录字段。 The TASKS DIR field. |
SESSIONS_STOREstaticfinal | String | 会话存储字段。 Per-agent session store filename under `agents/<agentId>/sessions/` |
SESSION_CONTEXT_EXTstaticfinal | String | 会话上下文 EXT字段。 JSONL session context file extension (LLM-facing, may be compacted). |
SESSION_LOG_EXTstaticfinal | String | 会话日志 EXT字段。 JSONL session log file extension (full history, append-only, never compacted). |
字段详情Field Detail
DEFAULT_WORKSPACE_ROOT
public static final String DEFAULT_WORKSPACE_ROOT
默认工作区根字段。声明为 public static final String DEFAULT_WORKSPACE_ROOT。
The DEFAULT WORKSPACE ROOT field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:23AGENTS_MD
public static final String AGENTS_MD
智能体 MD字段。声明为 public static final String AGENTS_MD。
The AGENTS MD field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:25MEMORY_MD
public static final String MEMORY_MD
记忆 MD字段。声明为 public static final String MEMORY_MD。
The MEMORY MD field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:26TOOLS_JSON
public static final String TOOLS_JSON
工具 JSON字段。声明为 public static final String TOOLS_JSON。
The TOOLS JSON field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:27MEMORY_DIR
public static final String MEMORY_DIR
记忆目录字段。声明为 public static final String MEMORY_DIR。
The MEMORY DIR field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:29SKILLS_DIR
public static final String SKILLS_DIR
技能目录字段。声明为 public static final String SKILLS_DIR。
The SKILLS DIR field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:30KNOWLEDGE_DIR
public static final String KNOWLEDGE_DIR
知识库目录字段。声明为 public static final String KNOWLEDGE_DIR。
The KNOWLEDGE DIR field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:31KNOWLEDGE_MD
public static final String KNOWLEDGE_MD
知识库 MD字段。声明为 public static final String KNOWLEDGE_MD。
The KNOWLEDGE MD field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:32RULES_DIR
public static final String RULES_DIR
规则目录字段。声明为 public static final String RULES_DIR。
The RULES DIR field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:33AGENTS_DIR
public static final String AGENTS_DIR
智能体目录字段。声明为 public static final String AGENTS_DIR。
The AGENTS DIR field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:35SESSIONS_DIR
public static final String SESSIONS_DIR
会话目录字段。声明为 public static final String SESSIONS_DIR。
The SESSIONS DIR field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:36TASKS_DIR
public static final String TASKS_DIR
任务目录字段。声明为 public static final String TASKS_DIR。
The TASKS DIR field.
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:37SESSIONS_STORE
public static final String SESSIONS_STORE
会话存储字段。声明为 public static final String SESSIONS_STORE。
Per-agent session store filename under agents/ /sessions/
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:42SESSION_CONTEXT_EXT
public static final String SESSION_CONTEXT_EXT
会话上下文 EXT字段。声明为 public static final String SESSION_CONTEXT_EXT。
JSONL session context file extension (LLM-facing, may be compacted).
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:45SESSION_LOG_EXT
public static final String SESSION_LOG_EXT
会话日志 EXT字段。声明为 public static final String SESSION_LOG_EXT。
JSONL session log file extension (full history, append-only, never compacted).
io/agentscope/harness/agent/workspace/WorkspaceConstants.java:48