AS AgentScopeAPI 手册 / API Reference
包package 2.x

agentscope-harness

AgentScope Java - Harness · 2.0.4

AgentScope Harness - Enhanced agent runtime with workspace context, subagent orchestration, memory management, and backend abstraction

groupIdGroupIdio.agentscope
版本Version2.0.4
版本线Line2.x
分类Categoryintegration
包Packages36
类型Types264 top-level / 345 total

包Packages

io.agentscope.harness.agent3
io.agentscope.harness.agent.artifact3
io.agentscope.harness.agent.bus6
io.agentscope.harness.agent.coordination3
io.agentscope.harness.agent.filesystem6
io.agentscope.harness.agent.filesystem.local2
io.agentscope.harness.agent.filesystem.model12
io.agentscope.harness.agent.filesystem.remote1
io.agentscope.harness.agent.filesystem.remote.store4
io.agentscope.harness.agent.filesystem.sandbox4
io.agentscope.harness.agent.filesystem.spec3
io.agentscope.harness.agent.filesystem.util1
io.agentscope.harness.agent.gateway17
io.agentscope.harness.agent.gateway.channel13
io.agentscope.harness.agent.gateway.channel.chatui4
io.agentscope.harness.agent.memory4
io.agentscope.harness.agent.memory.compaction4
io.agentscope.harness.agent.memory.session4
io.agentscope.harness.agent.middleware20
io.agentscope.harness.agent.sandbox22
io.agentscope.harness.agent.sandbox.impl.docker5
io.agentscope.harness.agent.sandbox.json1
io.agentscope.harness.agent.sandbox.layout8
io.agentscope.harness.agent.sandbox.snapshot9
io.agentscope.harness.agent.skill3
io.agentscope.harness.agent.skill.curator20
io.agentscope.harness.agent.skill.runtime7
io.agentscope.harness.agent.subagent8
io.agentscope.harness.agent.subagent.protocol6
io.agentscope.harness.agent.subagent.task13
io.agentscope.harness.agent.team11
io.agentscope.harness.agent.tool17
io.agentscope.harness.agent.tools9
io.agentscope.harness.agent.transcript4
io.agentscope.harness.agent.workspace6
io.agentscope.harness.agent.workspace.plan1

类型Types

类型Type种类Kind包Package说明Description
DistributedStore接口interfaceio.agentscope.harness.agent
定义分布式存储契约的接口。
One-stop configuration for distributed and persistent storage components.
HarnessAgent类classio.agentscope.harness.agent
Harness 智能体,承载智能体的部署、调度与服务化运行。
HarnessAgent is the user-facing harness API that wraps a `ReActAgent` with workspace / filesystem / sandbox / subagent / skill / plan-mode / MCP orchestration.
IsolationScope枚举enumio.agentscope.harness.agent
定义隔离范围相关取值的枚举。
Controls how agent state is isolated and shared across calls.
ArtifactDeliveryRequest记录recordio.agentscope.harness.agent.artifact
承载 Artifact Delivery 请求数据的记录类型。
A single artifact delivery request issued by the `deliver_artifact` tool.
ArtifactDeliveryResult记录recordio.agentscope.harness.agent.artifact
`ArtifactDeliveryTarget#deliver`尝试的结果。
Result of an `ArtifactDeliveryTarget#deliver` attempt.
ArtifactDeliveryTarget接口interfaceio.agentscope.harness.agent.artifact
定义 Artifact Delivery 目标契约的接口。
SPI for delivering artifacts produced by an agent (typically inside a sandbox) to a destination outside the agent filesystem — the host, a project artifact store, an object store, WebDAV, etc.
AsyncToolRecord记录recordio.agentscope.harness.agent.bus
承载异步工具记录数据的记录类型。
Tracks the lifecycle of an async tool execution that has been offloaded to the background.
AsyncToolRegistry接口interfaceio.agentscope.harness.agent.bus
定义异步工具注册表契约的接口。
Registry for tracking async tool executions that have been offloaded to the background.
BusEntry记录recordio.agentscope.harness.agent.bus
承载总线条目数据的记录类型。
A single entry read from a `MessageBus` queue or log.
MessageBus接口interfaceio.agentscope.harness.agent.bus
定义消息总线契约的接口。
Live message transport for coordinating work across sessions and processes.
WorkspaceAsyncToolRegistry类classio.agentscope.harness.agent.bus
工作区异步工具注册表,承载智能体的部署、调度与服务化运行。
`AsyncToolRegistry` backed by `AbstractFilesystem`.
WorkspaceMessageBus类classio.agentscope.harness.agent.bus
工作区消息总线,承载智能体的部署、调度与服务化运行。
`MessageBus` implementation backed by `AbstractFilesystem`.
LocalPeriodicGate类classio.agentscope.harness.agent.coordination
本地 Periodic Gate,承载智能体的部署、调度与服务化运行。
JVM-local `PeriodicGate` backed by a process-wide `ConcurrentHashMap` and CAS updates.
PeriodicGate接口interfaceio.agentscope.harness.agent.coordination
定义 Periodic Gate契约的接口。
Coordinates periodic background work across callers (and optionally across nodes) using a minimum-gap throttle.
StoreBackedPeriodicGate类classio.agentscope.harness.agent.coordination
存储 Backed Periodic Gate,承载智能体的部署、调度与服务化运行。
Distributed `PeriodicGate` backed by `BaseStore#putIfVersion`.
AbstractFilesystem接口interfaceio.agentscope.harness.agent.filesystem
定义抽象文件系统契约的接口。
Abstract filesystem API for agents: list, read, write, edit, grep, glob, upload, download.
BakedContextFilesystem类classio.agentscope.harness.agent.filesystem
Baked 上下文文件系统,承载智能体的部署、调度与服务化运行。
Filesystem wrapper that substitutes a fixed `RuntimeContext` on every delegated call, ignoring whatever RC the caller supplies.
CompositeFilesystem类classio.agentscope.harness.agent.filesystem
Composite 文件系统,承载智能体的部署、调度与服务化运行。
Routes file operations to different `AbstractFilesystem` stores by path prefix.
OverlayFilesystem类classio.agentscope.harness.agent.filesystem
Overlay 文件系统,承载智能体的部署、调度与服务化运行。
A layered filesystem that overlays a user-specific "upper" layer on top of a shared "lower" layer, providing copy-on-write semantics.
ProjectAwareOverlay类classio.agentscope.harness.agent.filesystem
Project Aware Overlay,承载智能体的部署、调度与服务化运行。
Overlay variant that routes writes to the *project* directory for non-workspace paths, while keeping workspace metadata (memory, sessions, skills, etc.) in the upper (workspace) layer.
RoutedSandboxFilesystem类classio.agentscope.harness.agent.filesystem
Routed 沙箱文件系统,承载智能体的部署、调度与服务化运行。
Prefix-routed filesystem that preserves shell execution on the primary sandbox backend.
LocalFilesystem类classio.agentscope.harness.agent.filesystem.local
本地文件系统,承载智能体的部署、调度与服务化运行。
`AbstractFilesystem` implementation that reads and writes files on the local disk.
LocalFilesystemWithShell类classio.agentscope.harness.agent.filesystem.local
本地文件系统使用 Shell,承载智能体的部署、调度与服务化运行。
Filesystem with unrestricted local shell command execution.
EditResult记录recordio.agentscope.harness.agent.filesystem.model
承载 Edit 结果数据的记录类型。
Result of a file edit (string replacement) operation.
ExecuteResponse记录recordio.agentscope.harness.agent.filesystem.model
承载执行响应数据的记录类型。
Result of code/shell execution.
FileData记录recordio.agentscope.harness.agent.filesystem.model
承载文件数据数据的记录类型。
Data structure for storing file contents with metadata.
FileDownloadResponse记录recordio.agentscope.harness.agent.filesystem.model
承载文件下载响应数据的记录类型。
Result of a single file download operation.
FileInfo记录recordio.agentscope.harness.agent.filesystem.model
承载文件信息数据的记录类型。
Structured file listing info.
FileUploadResponse记录recordio.agentscope.harness.agent.filesystem.model
承载文件上传响应数据的记录类型。
Result of a single file upload operation.
GlobResult记录recordio.agentscope.harness.agent.filesystem.model
承载 Glob 结果数据的记录类型。
Result from abstract filesystem glob operations.
GrepMatch记录recordio.agentscope.harness.agent.filesystem.model
承载 Grep Match数据的记录类型。
A single match from a grep search.
GrepResult记录recordio.agentscope.harness.agent.filesystem.model
承载 Grep 结果数据的记录类型。
Result from abstract filesystem grep operations.
LsResult记录recordio.agentscope.harness.agent.filesystem.model
承载 Ls 结果数据的记录类型。
Result from abstract filesystem ls (directory listing) operations.
ReadResult记录recordio.agentscope.harness.agent.filesystem.model
承载读取结果数据的记录类型。
Result from abstract filesystem read operations.
WriteResult记录recordio.agentscope.harness.agent.filesystem.model
承载写入结果数据的记录类型。
Result of a file write operation.
RemoteFilesystem类classio.agentscope.harness.agent.filesystem.remote
远程文件系统,承载智能体的部署、调度与服务化运行。
`AbstractFilesystem` backed by a `BaseStore` (persistent, cross-thread).
BaseStore接口interfaceio.agentscope.harness.agent.filesystem.remote.store
定义基类存储契约的接口。
Abstract interface for a namespace-based key-value store.
InMemoryStore类classio.agentscope.harness.agent.filesystem.remote.store
In 记忆存储,负责持久化与读取数据。
Thread-safe in-memory implementation of `BaseStore`.
NamespaceFactory接口interfaceio.agentscope.harness.agent.filesystem.remote.store
定义命名空间工厂契约的接口。
Factory that produces a namespace tuple for `BaseStore` operations at call time.
StoreItem记录recordio.agentscope.harness.agent.filesystem.remote.store
承载存储条目数据的记录类型。
A single item retrieved from a `BaseStore`.
AbstractSandboxFilesystem接口interfaceio.agentscope.harness.agent.filesystem.sandbox
定义抽象沙箱文件系统契约的接口。
Filesystem abstraction that adds shell command execution (sandbox or remote host).
BaseSandboxFilesystem类classio.agentscope.harness.agent.filesystem.sandbox
基类沙箱文件系统,承载智能体的部署、调度与服务化运行。
Abstract base sandbox implementation with `#execute` as the core abstract method.
PinnedSandboxFilesystem类classio.agentscope.harness.agent.filesystem.sandbox
Pinned 沙箱文件系统,承载智能体的部署、调度与服务化运行。
`SandboxBackedFilesystem` that holds a fixed `Sandbox` reference for the lifetime of the instance.
SandboxBackedFilesystem类classio.agentscope.harness.agent.filesystem.sandbox
沙箱 Backed 文件系统,承载智能体的部署、调度与服务化运行。
A `BaseSandboxFilesystem` that delegates execution to a live `Sandbox`.
LocalFilesystemSpec类classio.agentscope.harness.agent.filesystem.spec
本地文件系统规格,承载智能体的部署、调度与服务化运行。
Specification for the local filesystem mode (with shell execution).
RemoteFilesystemSpec类classio.agentscope.harness.agent.filesystem.spec
远程文件系统规格,承载智能体的部署、调度与服务化运行。
Specification for the non-sandbox "composite" filesystem mode.
SandboxFilesystemSpec类classio.agentscope.harness.agent.filesystem.spec
沙箱文件系统规格,承载智能体的部署、调度与服务化运行。
Declarative sandbox filesystem configuration.
FilesystemUtils类classio.agentscope.harness.agent.filesystem.util
文件系统 Utils,承载智能体的部署、调度与服务化运行。
Shared utility functions for filesystem implementations.
ChannelManager类classio.agentscope.harness.agent.gateway
渠道管理器,承载智能体的部署、调度与服务化运行。
Registry and lifecycle manager for `Channel` adapters.
Gateway接口interfaceio.agentscope.harness.agent.gateway
定义网关契约的接口。
Gateway-style entrypoint: route inbound turns by `MsgContext`, and bind the primary `HarnessAgent` for announce delivery.
GatewayBootstrap类classio.agentscope.harness.agent.gateway
网关 Bootstrap,承载智能体的部署、调度与服务化运行。
Multi-agent + channel routing bootstrap.
HarnessGateway类classio.agentscope.harness.agent.gateway
Harness 网关,承载智能体的部署、调度与服务化运行。
Default `Gateway` implementation.
InMemorySubagentRegistry类classio.agentscope.harness.agent.gateway
In 记忆子智能体注册表,承载智能体的部署、调度与服务化运行。
Default single-process `SubagentRegistry`.
LocalSessionTurnGate类classio.agentscope.harness.agent.gateway
本地会话轮次 Gate,承载智能体的部署、调度与服务化运行。
Process-local fair per-key mutual exclusion for gateway turns.
MsgContext记录recordio.agentscope.harness.agent.gateway
承载消息上下文数据的记录类型。
Routing context for inbound turns (direct API, channel adapter, group/room/thread).
SessionIdUtils类classio.agentscope.harness.agent.gateway
会话标识 Utils,承载智能体的部署、调度与服务化运行。
Deterministic session-ID derivation.
SessionTurnGate接口interfaceio.agentscope.harness.agent.gateway
定义会话轮次 Gate契约的接口。
Per-key mutual exclusion for gateway turns (user/channel inbound runs and subagent notification).
StoreBackedSubagentRegistry类classio.agentscope.harness.agent.gateway
存储 Backed 子智能体注册表,承载智能体的部署、调度与服务化运行。
Distributed `SubagentRegistry` backed by a `BaseStore`.
SubagentGatewayBridge接口interfaceio.agentscope.harness.agent.gateway
定义子智能体网关 Bridge契约的接口。
Bridge between `io.agentscope.harness.agent.tool.AgentSpawnTool` and the gateway layer.
SubagentMaterializer接口interfaceio.agentscope.harness.agent.gateway
定义子智能体物化器契约的接口。
Rebuilds a subagent `Agent` instance from its type id.
SubagentRecord记录recordio.agentscope.harness.agent.gateway
承载子智能体记录数据的记录类型。
Durable, recovery-oriented descriptor of an exposed subagent.
SubagentRegistry接口interfaceio.agentscope.harness.agent.gateway
定义子智能体注册表契约的接口。
Durable registry of exposed subagents, keyed by `subagentId`.
TurnBusyException类classio.agentscope.harness.agent.gateway
轮次 Busy 异常,表示执行过程中的错误。
Thrown when a session turn gate cannot be acquired because another turn holds the lock.
TurnLease接口interfaceio.agentscope.harness.agent.gateway
定义轮次 Lease契约的接口。
A handle representing an acquired session turn slot.
WakeupDispatcher类classio.agentscope.harness.agent.gateway
Wakeup 调度器,承载智能体的部署、调度与服务化运行。
Per-process dispatcher that wakes idle sessions when background work completes.
Channel接口interfaceio.agentscope.harness.agent.gateway.channel
定义渠道契约的接口。
Channel adapter — ingests inbound messages from one messaging platform (or a programmatic caller), routes them through `ChannelRouter` to resolve the target agent and session, and delegates execution to `Gateway`.
ChannelBinding记录recordio.agentscope.harness.agent.gateway.channel
承载渠道绑定数据的记录类型。
One routing rule that maps a set of inbound-message conditions to a target `agentId`.
ChannelConfig记录recordio.agentscope.harness.agent.gateway.channel
承载渠道配置数据的记录类型。
Per-channel routing configuration: default agent fallback, DM session scope, and ordered binding rules evaluated by `ChannelRouter`.
ChannelFactory接口interfaceio.agentscope.harness.agent.gateway.channel
定义渠道工厂契约的接口。
Constructs a `Channel` instance from the resolved routing config and provider-specific properties.
ChannelRouter类classio.agentscope.harness.agent.gateway.channel
渠道路由器,承载智能体的部署、调度与服务化运行。
Resolves the target `agentId` and stable `MsgContext` for an `InboundMessage` by evaluating `ChannelBinding` rules in deterministic priority order.
ChannelRuntimeContextRequest记录recordio.agentscope.harness.agent.gateway.channel
承载渠道运行时上下文请求数据的记录类型。
Inputs available to a `ChannelRuntimeContextResolver` when resolving caller context for a Gateway turn.
ChannelRuntimeContextResolver接口interfaceio.agentscope.harness.agent.gateway.channel
定义渠道运行时上下文解析器契约的接口。
Resolves a caller-provided `RuntimeContext` for a Channel / Gateway turn.
DmScope枚举enumio.agentscope.harness.agent.gateway.channel
定义Dm 范围相关取值的枚举。
Controls how DM (`PeerKind#DIRECT`) session keys are scoped.
InboundMessage记录recordio.agentscope.harness.agent.gateway.channel
承载入站消息数据的记录类型。
Normalized inbound message produced by a `Channel` adapter before routing.
OutboundAddress记录recordio.agentscope.harness.agent.gateway.channel
承载出站 Address数据的记录类型。
Delivery target for outbound (proactive) messages.
Peer记录recordio.agentscope.harness.agent.gateway.channel
承载对端数据的记录类型。
Identifies the conversation peer: who or what is being messaged (a user DM, a channel, a group, or a thread).
PeerKind枚举enumio.agentscope.harness.agent.gateway.channel
定义对端种类相关取值的枚举。
Classification of the conversation peer, used for session key construction and DM-scope resolution.
RouteResult记录recordio.agentscope.harness.agent.gateway.channel
承载路由结果数据的记录类型。
Output of `ChannelRouter#resolveRoute`: the resolved agent id, the `MsgContext` to pass to `io.agentscope.harness.agent.gateway.Gateway#run`, a diagnostic `matchedBy` label indicating which binding tier (or fallback) produced the result, and the `OutboundAddress` for delivering replies back to the originating channel/peer.
ChatUiChannel类classio.agentscope.harness.agent.gateway.channel.chatui
聊天 Ui 渠道,承载智能体的部署、调度与服务化运行。
Default `Channel` implementation for direct Chat UI interactions: no external transport, no webhook, no websocket — the caller submits a `ChatUiRequest` programmatically and receives the agent reply reactively.
ChatUiRequest记录recordio.agentscope.harness.agent.gateway.channel.chatui
用于`ChatUiChannel`的请求对象。
Request object for `ChatUiChannel`.
OutboundEnvelope记录recordio.agentscope.harness.agent.gateway.channel.chatui
承载出站 Envelope数据的记录类型。
A buffered proactive outbound message delivered to `ChatUiChannel` by the gateway.
SendOptions记录recordio.agentscope.harness.agent.gateway.channel.chatui
承载发送选项数据的记录类型。
Routing identity for `ChatUiChannel` requests.
MemoryBackgroundTasks类classio.agentscope.harness.agent.memory
记忆 Background 任务,在多次调用之间保存和恢复会话与记忆数据。
Tracks in-flight fire-and-forget memory background tasks (flush, maintenance) so `HarnessAgent.close()` can wait for them to quiesce before releasing resources.
MemoryConfig类classio.agentscope.harness.agent.memory
记忆配置,保存相关配置项。
Unified configuration for the long-term memory pipeline (flush + consolidation + maintenance).
MemoryConsolidator类classio.agentscope.harness.agent.memory
记忆 Consolidator,在多次调用之间保存和恢复会话与记忆数据。
LLM-based consolidation of daily memory ledgers into the curated `MEMORY.md`.
MemoryFlushManager类classio.agentscope.harness.agent.memory
记忆刷新管理器,在多次调用之间保存和恢复会话与记忆数据。
Manages memory flush operations: extracting long-term memories from a conversation window and appending them to today's daily memory ledger.
CompactionConfig类classio.agentscope.harness.agent.memory.compaction
压缩配置,保存相关配置项。
Configuration for conversation compaction (summarization).
ConversationCompactor类classio.agentscope.harness.agent.memory.compaction
会话 Compactor,在多次调用之间保存和恢复会话与记忆数据。
Algorithm
TokenCounterUtil类classio.agentscope.harness.agent.memory.compaction
令牌 Counter Util,在多次调用之间保存和恢复会话与记忆数据。
Utility class for estimating token count in messages.
ToolResultEvictionConfig类classio.agentscope.harness.agent.memory.compaction
工具结果淘汰配置,保存相关配置项。
Configuration for per-tool-result eviction of oversized outputs.
SessionEntry类classio.agentscope.harness.agent.memory.session
会话条目,在多次调用之间保存和恢复会话与记忆数据。
Base class for all session tree entries (pi-mono-inspired JSONL session model).
SessionFreshnessEvaluator类classio.agentscope.harness.agent.memory.session
会话 Freshness 评估器,在多次调用之间保存和恢复会话与记忆数据。
Evaluates whether a session is still "fresh" or should be reset.
SessionTranscriptWriter类classio.agentscope.harness.agent.memory.session
会话 Transcript Writer,在多次调用之间保存和恢复会话与记忆数据。
Independent writer for the session transcript JSONL (`.jsonl` / `.log.jsonl`).
SessionTree类classio.agentscope.harness.agent.memory.session
会话树,在多次调用之间保存和恢复会话与记忆数据。
Manages an append-only JSONL session tree (pi-mono-inspired).
AgentTraceMiddleware类classio.agentscope.harness.agent.middleware
智能体追踪中间件,在智能体执行流程中提供横切扩展。
Observability middleware that logs the reasoning and execution trace of an agent.
AsyncToolMiddleware类classio.agentscope.harness.agent.middleware
异步工具中间件,在智能体执行流程中提供横切扩展。
Middleware that offloads long-running tool calls to background execution.
AtPathExpansionMiddleware类classio.agentscope.harness.agent.middleware
At 路径 Expansion 中间件,在智能体执行流程中提供横切扩展。
Expands `@path` references in user messages by reading the referenced files through the active `AbstractFilesystem` and appending an `<attached_file>` block at the end of the message.
CompactionMiddleware类classio.agentscope.harness.agent.middleware
压缩中间件,在智能体执行流程中提供横切扩展。
Middleware that performs conversation compaction before each LLM reasoning call.
DynamicSubagentsMiddleware类classio.agentscope.harness.agent.middleware
Dynamic Subagents 中间件,在智能体执行流程中提供横切扩展。
Dynamic counterpart to `SubagentsMiddleware` that re-resolves the registered subagent set on every reasoning step, supporting per-user isolation through the workspace `AbstractFilesystem` (e.g.
HarnessRuntimeMiddleware接口interfaceio.agentscope.harness.agent.middleware
定义 Harness 运行时中间件契约的接口。
Marker for middleware installed by harness runtime wiring.
HarnessSkillMiddleware类classio.agentscope.harness.agent.middleware
Harness 技能中间件,在智能体执行流程中提供横切扩展。
Harness-native skill middleware.
InboxMiddleware类classio.agentscope.harness.agent.middleware
收件箱中间件,在智能体执行流程中提供横切扩展。
Middleware that drains the message bus inbox before each reasoning step and injects the messages as `HintBlock`s into the agent's context.
MemoryFlushMiddleware类classio.agentscope.harness.agent.middleware
记忆刷新中间件,在智能体执行流程中提供横切扩展。
Middleware that triggers memory flush and message offload at the end of each agent call.
MemoryMaintenanceMiddleware类classio.agentscope.harness.agent.middleware
记忆维护中间件,在智能体执行流程中提供横切扩展。
Middleware that performs periodic memory maintenance after each agent call.
PlanModeMiddleware类classio.agentscope.harness.agent.middleware
计划模式中间件,在智能体执行流程中提供横切扩展。
Enforces plan mode: while `AgentState.planModeContext.planActive` is `true`, mutating tool calls are denied so the agent can only read / investigate and draft a plan.
SandboxLifecycleMiddleware类classio.agentscope.harness.agent.middleware
沙箱生命周期中间件,在智能体执行流程中提供横切扩展。
Middleware that manages the sandbox session lifecycle around each agent call.
SkillCuratorMiddleware类classio.agentscope.harness.agent.middleware
技能 Curator 中间件,在智能体执行流程中提供横切扩展。
Schedules `SkillCurator` runs after the main `call()` completes.
SkillUsageMiddleware类classio.agentscope.harness.agent.middleware
技能用量中间件,在智能体执行流程中提供横切扩展。
Bumps `SkillUsageStore` counters whenever the agent invokes a SkillBox-registered skill loader (e.g.
SubagentEntry记录recordio.agentscope.harness.agent.middleware
承载子智能体条目数据的记录类型。
Descriptor for a subagent identified by agent id, with its description, `SubagentFactory`, and optional `SubagentDeclaration` (for remote URL and headers).
SubagentsMiddleware类classio.agentscope.harness.agent.middleware
Subagents 中间件,在智能体执行流程中提供横切扩展。
Middleware that provides the managed subagent mechanism.
TeamsMiddleware类classio.agentscope.harness.agent.middleware
Teams 中间件,在智能体执行流程中提供横切扩展。
Injects AgentTeams context into the system prompt and exposes a role-clipped `TeamTool`.
ToolResultEvictionMiddleware类classio.agentscope.harness.agent.middleware
工具结果淘汰中间件,在智能体执行流程中提供横切扩展。
Middleware that evicts oversized tool results to the `AbstractFilesystem` before downstream reasoning sees the bloated message list.
TranscriptMiddleware类classio.agentscope.harness.agent.middleware
Transcript 中间件,在智能体执行流程中提供横切扩展。
Persists the conversation transcript at the end of every agent call.
WorkspaceContextMiddleware类classio.agentscope.harness.agent.middleware
工作区上下文中间件,在智能体执行流程中提供横切扩展。
Appends workspace context (session info, AGENTS.md, MEMORY.md, knowledge) to the system prompt via `#onSystemPrompt(Agent, RuntimeContext, String)`.
AbstractBaseSandbox类classio.agentscope.harness.agent.sandbox
抽象基类沙箱,承载智能体的部署、调度与服务化运行。
Abstract base implementation of `Sandbox` with the 4-branch workspace start logic.
ExecResult记录recordio.agentscope.harness.agent.sandbox
沙箱命令执行的结果。
Result of a sandbox command execution.
Sandbox接口interfaceio.agentscope.harness.agent.sandbox
定义沙箱契约的接口。
An active sandbox with a fully isolated workspace.
SandboxAcquireResult类classio.agentscope.harness.agent.sandbox
沙箱 Acquire 结果,承载智能体的部署、调度与服务化运行。
Result of acquiring a `Sandbox` from `SandboxManager`.
SandboxAware接口interfaceio.agentscope.harness.agent.sandbox
定义沙箱 Aware契约的接口。
Marks a filesystem that can have its backing `Sandbox` injected at runtime.
SandboxClient接口interfaceio.agentscope.harness.agent.sandbox
定义沙箱客户端契约的接口。
Factory for creating and resuming `Sandbox` instances.
SandboxClientOptions类classio.agentscope.harness.agent.sandbox
沙箱客户端配置选项的基类。
Base class for sandbox client configuration options.
SandboxContext类classio.agentscope.harness.agent.sandbox
用于沙箱行为的不可变配置。
Immutable configuration for sandbox behavior.
SandboxErrorCode枚举enumio.agentscope.harness.agent.sandbox
定义沙箱错误 Code相关取值的枚举。
Error codes for sandbox operations, used in `SandboxException` and its subclasses.
SandboxException类classio.agentscope.harness.agent.sandbox
沙箱异常,表示执行过程中的错误。
Base exception for all sandbox operations.
SandboxExecutionGuard接口interfaceio.agentscope.harness.agent.sandbox
定义沙箱执行守卫契约的接口。
Pluggable concurrency guard for sandbox execution slots.
SandboxFileTransfer接口interfaceio.agentscope.harness.agent.sandbox
定义沙箱文件 Transfer契约的接口。
Optional capability for `Sandbox` backends that support native (non-exec) file transfer, e.g.
SandboxIsolationKey类classio.agentscope.harness.agent.sandbox
沙箱隔离键,承载智能体的部署、调度与服务化运行。
Immutable key that uniquely identifies a sandbox state slot for a given `IsolationScope`.
SandboxLease接口interfaceio.agentscope.harness.agent.sandbox
定义沙箱 Lease契约的接口。
A handle that represents a held execution right on a sandbox isolation slot.
SandboxManager类classio.agentscope.harness.agent.sandbox
沙箱管理器,承载智能体的部署、调度与服务化运行。
Manages the lifecycle of `Sandbox` instances for the current call.
SandboxState类classio.agentscope.harness.agent.sandbox
沙箱状态,承载智能体的部署、调度与服务化运行。
Serializable state of a sandbox, persisted by `SessionSandboxStateStore` so a sandbox can be resumed across calls.
SessionSandboxStateStore类classio.agentscope.harness.agent.sandbox
会话沙箱状态存储,负责持久化与读取数据。
Sandbox state store backed by the generic AgentScope `AgentStateStore` abstraction.
WorkspaceArchiveExtractor类classio.agentscope.harness.agent.sandbox
工作区归档 Extractor,承载智能体的部署、调度与服务化运行。
Securely extracts tar archives into a target directory.
WorkspaceMountSupport类classio.agentscope.harness.agent.sandbox
工作区 Mount Support,承载智能体的部署、调度与服务化运行。
Helpers for `io.agentscope.harness.agent.sandbox.layout.BindMountEntry` handling.
WorkspaceProjectionApplier类classio.agentscope.harness.agent.sandbox
工作区 Projection Applier,承载智能体的部署、调度与服务化运行。
Builds a deterministic archive payload for workspace projection entries.
WorkspaceSpec类classio.agentscope.harness.agent.sandbox
工作区规格,承载智能体的部署、调度与服务化运行。
Describes the desired initial state of a sandbox workspace: root path, materialized file/directory entries, and per-exec environment variables.
WorkspaceSpecApplier类classio.agentscope.harness.agent.sandbox
工作区规格 Applier,承载智能体的部署、调度与服务化运行。
Applies a `WorkspaceSpec` to a target directory by materializing declared entries (files, directories, local copies).
DockerFilesystemSpec类classio.agentscope.harness.agent.sandbox.impl.docker
Docker 文件系统规格,承载智能体的部署、调度与服务化运行。
Sandbox filesystem spec for Docker store.
DockerSandbox类classio.agentscope.harness.agent.sandbox.impl.docker
Docker 沙箱,承载智能体的部署、调度与服务化运行。
Docker `io.agentscope.harness.agent.sandbox.Sandbox` that runs commands in a container.
DockerSandboxClient类classio.agentscope.harness.agent.sandbox.impl.docker
Docker 沙箱客户端,封装与远端服务的连接和调用。
`SandboxClient` implementation for the Docker sandbox store.
DockerSandboxClientOptions类classio.agentscope.harness.agent.sandbox.impl.docker
Docker 沙箱客户端选项,保存相关配置项。
Configuration options for the Docker sandbox client.
DockerSandboxState类classio.agentscope.harness.agent.sandbox.impl.docker
Docker 沙箱状态,承载智能体的部署、调度与服务化运行。
Serializable state for a Docker-backed `io.agentscope.harness.agent.sandbox.Sandbox`.
HarnessSandboxJacksonModule类classio.agentscope.harness.agent.sandbox.json
Harness 沙箱 Jackson Module,承载智能体的部署、调度与服务化运行。
Registers Jackson polymorphic subtypes for `io.agentscope.harness.agent.sandbox.SandboxState`.
BindMountEntry类classio.agentscope.harness.agent.sandbox.layout
Bind Mount 条目,承载智能体的部署、调度与服务化运行。
Declares a host directory (or file on Kubernetes) bind-mounted into the sandbox workspace at the map key path under `io.agentscope.harness.agent.sandbox.WorkspaceSpec#getRoot()`.
DirEntry类classio.agentscope.harness.agent.sandbox.layout
目录条目,承载智能体的部署、调度与服务化运行。
Layout entry that creates a directory, optionally with nested child entries.
FileEntry类classio.agentscope.harness.agent.sandbox.layout
文件条目,承载智能体的部署、调度与服务化运行。
Layout entry that creates a file with inline text content.
GitRepoEntry类classio.agentscope.harness.agent.sandbox.layout
Git 仓库条目,承载智能体的部署、调度与服务化运行。
Layout entry that clones a Git repository into the sandbox workspace.
LocalDirEntry类classio.agentscope.harness.agent.sandbox.layout
本地目录条目,承载智能体的部署、调度与服务化运行。
Layout entry that recursively copies a directory from the host filesystem into the sandbox workspace.
LocalFileEntry类classio.agentscope.harness.agent.sandbox.layout
本地文件条目,承载智能体的部署、调度与服务化运行。
Layout entry that copies a single file from the host filesystem into the sandbox workspace.
WorkspaceEntry类classio.agentscope.harness.agent.sandbox.layout
条目 in`io.agentscope.harness.agent.sandbox.WorkspaceSpec`的基类。
Base class for entries in a `io.agentscope.harness.agent.sandbox.WorkspaceSpec`.
WorkspaceProjectionEntry类classio.agentscope.harness.agent.sandbox.layout
工作区 Projection 条目,承载智能体的部署、调度与服务化运行。
Layout entry that projects selected files/directories from host workspace into sandbox workspace when the `io.agentscope.harness.agent.sandbox.Sandbox` starts.
LocalSandboxSnapshot类classio.agentscope.harness.agent.sandbox.snapshot
本地沙箱快照,承载智能体的部署、调度与服务化运行。
Snapshot that persists workspace archives as tar files on the local filesystem.
LocalSnapshotSpec类classio.agentscope.harness.agent.sandbox.snapshot
本地快照规格,承载智能体的部署、调度与服务化运行。
Snapshot spec that creates `LocalSandboxSnapshot` instances stored in a local directory.
NoopSandboxSnapshot类classio.agentscope.harness.agent.sandbox.snapshot
Noop 沙箱快照,承载智能体的部署、调度与服务化运行。
No-op snapshot that does not persist anything.
NoopSnapshotSpec类classio.agentscope.harness.agent.sandbox.snapshot
Noop 快照规格,承载智能体的部署、调度与服务化运行。
Snapshot spec that creates `NoopSandboxSnapshot` instances.
RemoteSandboxSnapshot类classio.agentscope.harness.agent.sandbox.snapshot
远程沙箱快照,承载智能体的部署、调度与服务化运行。
Snapshot backed by a `RemoteSnapshotClient` (e.g.
RemoteSnapshotClient接口interfaceio.agentscope.harness.agent.sandbox.snapshot
定义远程快照客户端契约的接口。
User-implemented interface for uploading and downloading snapshot archives to/from remote storage (e.g.
RemoteSnapshotSpec类classio.agentscope.harness.agent.sandbox.snapshot
远程快照规格,承载智能体的部署、调度与服务化运行。
Snapshot spec that creates `RemoteSandboxSnapshot` instances backed by a `RemoteSnapshotClient`.
SandboxSnapshot接口interfaceio.agentscope.harness.agent.sandbox.snapshot
定义沙箱快照契约的接口。
Represents a persisted snapshot of a sandbox workspace.
SandboxSnapshotSpec接口interfaceio.agentscope.harness.agent.sandbox.snapshot
定义沙箱快照规格契约的接口。
Factory that creates `SandboxSnapshot` instances for a given session ID.
LazyResourceCapable接口interfaceio.agentscope.harness.agent.skill
定义 Lazy 资源 Capable契约的接口。
Optional marker for `io.agentscope.core.skill.repository.AgentSkillRepository` implementations that can supply a `SkillResources` accessor in addition to the in-memory `AgentSkill.resources` map.
SkillResources接口interfaceio.agentscope.harness.agent.skill
定义技能 Resources契约的接口。
Lazy resource accessor for a single skill.
WorkspaceSkillRepository类classio.agentscope.harness.agent.skill
工作区技能仓库,负责持久化与读取数据。
`AgentSkillRepository` backed by an `AbstractFilesystem`, with lazy resource access via `LazyResourceCapable`.
AbstractAgentCreatedFilter类classio.agentscope.harness.agent.skill.curator
抽象智能体已创建过滤器,让智能体以受控方式调用外部能力。
Base class for visibility filters that should ONLY constrain agent-authored skills.
AllowListFilter类classio.agentscope.harness.agent.skill.curator
Allow 列表过滤器,让智能体以受控方式调用外部能力。
Visible only when the agent-created skill's name is in the allow-list.
CanaryFilter类classio.agentscope.harness.agent.skill.curator
Canary 过滤器,让智能体以受控方式调用外部能力。
Percentage-based rollout for agent-authored skills.
CompositeFilter类classio.agentscope.harness.agent.skill.curator
Composite 过滤器,让智能体以受控方式调用外部能力。
Chains multiple `SkillVisibilityFilter`s with AND semantics: the output is the intersection of every filter's output, applied in order.
EnvironmentFilter类classio.agentscope.harness.agent.skill.curator
环境过滤器,让智能体以受控方式调用外部能力。
Filter that admits a skill only when its sidecar's `environments` list contains the configured environment (`prod`, `staging`, …).
LocalApprovalGate类classio.agentscope.harness.agent.skill.curator
本地 Approval Gate,让智能体以受控方式调用外部能力。
Single-replica HITL gate.
NotificationSink接口interfaceio.agentscope.harness.agent.skill.curator
定义通知 Sink契约的接口。
Pushes `SkillCandidate` metadata to an external system (Slack webhook, ticket service, Nacos config item, …).
NotifyAndWaitGate类classio.agentscope.harness.agent.skill.curator
Notify 和 Wait Gate,让智能体以受控方式调用外部能力。
Multi-replica gate.
RejectAllGate类classio.agentscope.harness.agent.skill.curator
拒绝所有 Gate,让智能体以受控方式调用外部能力。
Always returns `SkillPromotionGate.PromotionDecision.Defer` — promotion can only happen via an explicit `HarnessAgent.promoteSkill(...)` call from outside the gate.
SkillAuditLog类classio.agentscope.harness.agent.skill.curator
技能 Audit 日志,让智能体以受控方式调用外部能力。
Append-only audit log for the skill self-learning loop.
SkillCandidate记录recordio.agentscope.harness.agent.skill.curator
承载技能 Candidate数据的记录类型。
Material handed to a `SkillPromotionGate` when a draft skill is being considered for promotion.
SkillCurator类classio.agentscope.harness.agent.skill.curator
技能 Curator,让智能体以受控方式调用外部能力。
Background skill maintenance orchestrator.
SkillCuratorConfig类classio.agentscope.harness.agent.skill.curator
技能 Curator 配置,保存相关配置项。
Configuration knobs for `SkillCurator`.
SkillCuratorState记录recordio.agentscope.harness.agent.skill.curator
承载技能 Curator 状态数据的记录类型。
Persistent state for `SkillCurator` — kept in `skills/.curator_state.json`.
SkillPromoter类classio.agentscope.harness.agent.skill.curator
技能 Promoter,让智能体以受控方式调用外部能力。
Orchestrates the promotion pipeline: locate draft → run security scan → call gate → physically move `_drafts/<name>/` to `skills/<name>/` → update sidecar.
SkillPromotionGate接口interfaceio.agentscope.harness.agent.skill.curator
定义技能 Promotion Gate契约的接口。
Decides whether a draft skill is allowed to be promoted into the live skills directory.
SkillSecurityScanner类classio.agentscope.harness.agent.skill.curator
技能 Security Scanner,让智能体以受控方式调用外部能力。
Static-analysis scanner for SKILL.md and skill support files.
SkillUsageRecord记录recordio.agentscope.harness.agent.skill.curator
承载技能用量记录数据的记录类型。
Per-skill operational telemetry plus enterprise-staging audit fields.
SkillUsageStore类classio.agentscope.harness.agent.skill.curator
技能用量存储,负责持久化与读取数据。
Sidecar telemetry store for per-skill usage and provenance.
SkillVisibilityFilter接口interfaceio.agentscope.harness.agent.skill.curator
定义技能 Visibility 过滤器契约的接口。
Runtime gate that decides which skills are exposed to the model on a per-call basis.
HarnessSkillEntry记录recordio.agentscope.harness.agent.skill.runtime
承载 Harness 技能条目数据的记录类型。
Per-call wrapper around an `AgentSkill` carrying harness-only metadata that does not belong on the core data type.
MarketplaceStager类classio.agentscope.harness.agent.skill.runtime
市场 Stager,让智能体以受控方式调用外部能力。
Materialises non-workspace skill resources (Layer 1 / Layer 2 / marketplace) to `<wsRoot>/.skills-cache/<source-ns>/<skill-name>/` so that: - shell-mode HarnessAgents (sandbox or Local-with-shell) can execute the staged scripts via absolute paths - sandbox projection (which includes `.skills-cache` in `DEFAULT_WORKSPACE_PROJECTION_ROOTS`) hydrates the staged content into the sandbox at start time
ShellPathPolicy类classio.agentscope.harness.agent.skill.runtime
Shell 路径策略,让智能体以受控方式调用外部能力。
Resolves the absolute `filesRoot` path emitted in `<available_skills>` and `load_skill_through_path` responses, given a skill's `StageResult` and the current shell mode.
SkillCatalog类classio.agentscope.harness.agent.skill.runtime
技能目录,让智能体以受控方式调用外部能力。
Immutable snapshot of the skills visible to a single `onSystemPrompt` pass.
SkillLoadTool类classio.agentscope.harness.agent.skill.runtime
技能加载工具,封装可被智能体调用的能力。
The harness-native `load_skill_through_path` `AgentTool`.
SkillPromptBuilder类classio.agentscope.harness.agent.skill.runtime
技能提示词构建器,用于构建并配置目标实例。
Renders the harness `<available_skills>` system-prompt block from a `SkillCatalog`.
SkillRuntime类classio.agentscope.harness.agent.skill.runtime
技能运行时,让智能体以受控方式调用外部能力。
Aggregates the singleton `SkillLoadTool` and the `SkillPromptBuilder`.
AgentSpecLoader类classio.agentscope.harness.agent.subagent
智能体规格加载器,支持智能体之间的发现、委派与协作。
Loads `SubagentDeclaration` instances from Markdown files with YAML front matter placed in the `subagents/` directory of a workspace.
DefaultAgentManager类classio.agentscope.harness.agent.subagent
默认智能体管理器,支持智能体之间的发现、委派与协作。
Pure agent factory and invoker — knows how to create agents from registered factories and invoke them with a prompt.
RemoteAskPolicy枚举enumio.agentscope.harness.agent.subagent
定义远程 Ask 策略相关取值的枚举。
Policy for resolving a remote subagent's tool-confirmation (HITL) requests when the parent cannot forward the decision to an interactive human within this call.
RemoteSubagentStub类classio.agentscope.harness.agent.subagent
远程子智能体存根,支持智能体之间的发现、委派与协作。
Placeholder `io.agentscope.core.agent.Agent` for remote (`SubagentDeclaration`) subagents.
SubagentDeclaration类classio.agentscope.harness.agent.subagent
子智能体 Declaration,支持智能体之间的发现、委派与协作。
Declares a subagent: its identity, workspace resolution strategy, and optional capability allowlist.
SubagentFactory接口interfaceio.agentscope.harness.agent.subagent
定义子智能体工厂契约的接口。
Creates a new subagent instance for a single spawn or session.
SubagentSpecGenerator类classio.agentscope.harness.agent.subagent
子智能体规格 Generator,支持智能体之间的发现、委派与协作。
LLM-driven generator for `SubagentDeclaration` markdown specs.
WorkspaceMode枚举enumio.agentscope.harness.agent.subagent
定义工作区模式相关取值的枚举。
Controls how a declared subagent's runtime workspace root is determined.
RemoteAgentEvent类classio.agentscope.harness.agent.subagent.protocol
远程智能体事件,描述执行过程中的事件。
Stable Protocol DTO for remote subagent event streaming.
RemoteConfirmDecision类classio.agentscope.harness.agent.subagent.protocol
用于远程待处理工具确认的用户决策。
User decision for a remote pending tool confirmation.
RemoteEventCodec类classio.agentscope.harness.agent.subagent.protocol
远程事件编解码器,支持智能体之间的发现、委派与协作。
Bidirectional mapping between internal `AgentEvent`s and stable `RemoteAgentEvent` wire DTOs.
RemoteEventType枚举enumio.agentscope.harness.agent.subagent.protocol
定义远程事件类型的枚举。
Stable wire event types for remote subagent streaming over Agent Protocol.
RemotePendingConfirm类classio.agentscope.harness.agent.subagent.protocol
远程待处理确认,支持智能体之间的发现、委派与协作。
A single remote tool call awaiting user confirmation (HITL).
RemoteStreamDetail枚举enumio.agentscope.harness.agent.subagent.protocol
定义远程流详情相关取值的枚举。
How much of a remote subagent's event stream the caller wants, sent as `context.detail`.
AgentProtocolTaskClient类classio.agentscope.harness.agent.subagent.task
智能体协议任务客户端,封装与远端服务的连接和调用。
Minimal HTTP client for the internal AgentScope task protocol (`POST/GET /tasks/...`).
AgentProtocolTransport类classio.agentscope.harness.agent.subagent.task
智能体协议传输层,支持智能体之间的发现、委派与协作。
`RemoteSubagentTransport` backed by the Agent Protocol HTTP client.
BackgroundTask类classio.agentscope.harness.agent.subagent.task
Background 任务,支持智能体之间的发现、委派与协作。
Wraps a `CompletableFuture` to track background subagent task execution with status, result, error, and lifecycle metadata.
RemoteSubagentTransport接口interfaceio.agentscope.harness.agent.subagent.task
定义远程子智能体传输层契约的接口。
Transport abstraction for remote subagent execution (Agent Protocol today; A2A later).
RemoteSubmitContext类classio.agentscope.harness.agent.subagent.task
远程提交上下文,支持智能体之间的发现、委派与协作。
Context sent with a remote task submission (permissions, streaming preferences, parent identity).
RemoteTarget类classio.agentscope.harness.agent.subagent.task
远程目标,支持智能体之间的发现、委派与协作。
Remote endpoint identity: base URL plus optional auth/routing headers.
RemoteTaskStatus记录recordio.agentscope.harness.agent.subagent.task
承载远程任务状态数据的记录类型。
Status snapshot returned by the remote task HTTP API (`GET /tasks/{taskId}`).
TaskDelivery记录recordio.agentscope.harness.agent.subagent.task
承载任务 Delivery数据的记录类型。
Snapshot of a terminal-state subagent task awaiting (or undergoing) push delivery to the parent agent's reasoning loop.
TaskRecord类classio.agentscope.harness.agent.subagent.task
任务记录,支持智能体之间的发现、委派与协作。
Persistent metadata for a background subagent task, stored as JSON in the workspace under `agents/<parentAgentId>/tasks/<parentSessionId>.json`.
TaskRepository接口interfaceio.agentscope.harness.agent.subagent.task
定义任务仓库契约的接口。
Repository for managing background subagent tasks, scoped by session.
TaskRunSpec接口interfaceio.agentscope.harness.agent.subagent.task
定义任务运行规格契约的接口。
Discriminated union describing how a background subagent task should execute.
TaskStatus枚举enumio.agentscope.harness.agent.subagent.task
定义任务状态的枚举。
Lifecycle status of a background subagent task.
WorkspaceTaskRepository类classio.agentscope.harness.agent.subagent.task
工作区任务仓库,负责持久化与读取数据。
Workspace-backed `TaskRepository` that uses `WorkspaceManager` as the authoritative truth source for task state, while maintaining in-memory `BackgroundTask` handles as a local performance overlay for tasks running on the current node.
LocalTeamClient类classio.agentscope.harness.agent.team
本地团队客户端,封装与远端服务的连接和调用。
`TeamClient` backed by `BaseStore` CAS (Claude file-lock equivalent).
TeamClient接口interfaceio.agentscope.harness.agent.team
定义团队客户端契约的接口。
Client for AgentTeams coordination (Claude-parity task board + mailbox).
TeamConflictException类classio.agentscope.harness.agent.team
团队 Conflict 异常,表示执行过程中的错误。
Optimistic-lock / ownership conflict on the team task board.
TeamContext记录recordio.agentscope.harness.agent.team
承载团队上下文数据的记录类型。
Runtime context injected into a teammate session (mirrors Go TeamContext).
TeamCreateSpec记录recordio.agentscope.harness.agent.team
承载团队创建规格数据的记录类型。
Spec for creating a local or CP-backed team.
TeamInfo记录recordio.agentscope.harness.agent.team
承载团队信息数据的记录类型。
Lightweight team record.
TeamMemberInfo记录recordio.agentscope.harness.agent.team
承载团队成员信息数据的记录类型。
Team member roster entry.
TeamMemberSpec记录recordio.agentscope.harness.agent.team
承载团队成员规格数据的记录类型。
Member seed for team creation.
TeamMessage记录recordio.agentscope.harness.agent.team
承载团队消息数据的记录类型。
Team mailbox message.
TeamTask记录recordio.agentscope.harness.agent.team
承载团队任务数据的记录类型。
Shared team task board item.
TeamWakeups类classio.agentscope.harness.agent.team
团队 Wakeups,支持智能体之间的发现、委派与协作。
Bridge from `TeamClient` implementations to whatever runtime owns teammate sessions.
AgentGenerateTool类classio.agentscope.harness.agent.tool
智能体 Generate 工具,封装可被智能体调用的能力。
Tool that generates a new subagent spec from a natural-language description and either persists it to `subagents/<name>.md` (where `io.agentscope.harness.agent.middleware.DynamicSubagentsMiddleware` will pick it up on the next reasoning step) or returns the markdown for human review.
AgentSpawnTool类classio.agentscope.harness.agent.tool
智能体 Spawn 工具,封装可被智能体调用的能力。
Simple subagent tool for agent-internal use.
ArtifactDeliveryTool类classio.agentscope.harness.agent.tool
Artifact Delivery 工具,封装可被智能体调用的能力。
Agent-callable `deliver_artifact` tool: downloads a file from the agent filesystem (e.g.
FilesystemTool类classio.agentscope.harness.agent.tool
文件系统工具,封装可被智能体调用的能力。
File system tools backed by a `AbstractFilesystem`, exposing read/write/edit/grep/glob operations as agent-callable tools.
MemoryGetTool类classio.agentscope.harness.agent.tool
记忆读取工具,封装可被智能体调用的能力。
Tool for reading specific lines from memory files, typically used after `MemorySearchTool` to fetch surrounding context.
MemorySaveTool类classio.agentscope.harness.agent.tool
记忆保存工具,封装可被智能体调用的能力。
Dedicated tool for persisting user memories to both `MEMORY.md` and today's daily ledger (`memory/YYYY-MM-DD.md`).
MemorySearchTool类classio.agentscope.harness.agent.tool
记忆搜索工具,封装可被智能体调用的能力。
Tool for searching through persisted memories (MEMORY.md and memory/*.md files).
PlanModeTools类classio.agentscope.harness.agent.tool
计划模式工具,封装可被智能体调用的能力。
The three model-facing tools that drive plan mode, all backed by a shared `PlanModeManager`.
ProposeSkillTool类classio.agentscope.harness.agent.tool
Propose 技能工具,封装可被智能体调用的能力。
Convenience tool that lets the agent propose a brand-new skill in one call: name + description + body + optional scripts.
SessionSearchTool类classio.agentscope.harness.agent.tool
会话搜索工具,封装可被智能体调用的能力。
Tool for searching past session transcripts and viewing session history.
ShellExecuteTool类classio.agentscope.harness.agent.tool
Shell 执行工具,封装可被智能体调用的能力。
Shell execution tool backed by a `AbstractSandboxFilesystem`.
SkillManageConfig类classio.agentscope.harness.agent.tool
用于`SkillManageTool`的配置。
Configuration for `SkillManageTool`.
SkillManageTool类classio.agentscope.harness.agent.tool
技能 Manage 工具,封装可被智能体调用的能力。
Agent-callable tool that lets a `ReActAgent` create, edit, patch, and archive skills in its workspace.
TaskTool类classio.agentscope.harness.agent.tool
任务工具,封装可被智能体调用的能力。
Unified tool for background task lifecycle management.
TeamTool类classio.agentscope.harness.agent.tool
团队工具,封装可被智能体调用的能力。
Unified AgentTeams tool.
WaitAsyncResultsTool类classio.agentscope.harness.agent.tool
Wait 异步结果工具,封装可被智能体调用的能力。
Tool that blocks until async results arrive, either for a specific task barrier or (legacy) until any message appears in the session inbox.
WebTools类classio.agentscope.harness.agent.tool
Web 工具,封装可被智能体调用的能力。
Builtin web tools (`web_fetch`, `web_search`) for Managed Agents / Harness.
HarnessPlatformTools类classio.agentscope.harness.agent.tools
Harness 平台工具,封装可被智能体调用的能力。
Harness platform / orchestration tool names that `ToolFilter` must not strip via an ` allow` list.
McpConnectionException类classio.agentscope.harness.agent.tools
MCP 连接异常,表示执行过程中的错误。
A connection failure whose public message never contains endpoint credentials.
McpServerConfig类classio.agentscope.harness.agent.tools
MCP 服务端配置,保存相关配置项。
One MCP server entry under `mcpServers.<name>` in `tools.json`.
McpServerRegistrar类classio.agentscope.harness.agent.tools
MCP 服务端 Registrar,让智能体以受控方式调用外部能力。
Registers MCP servers declared under `mcpServers` in `workspace/tools.json` into a `Toolkit`.
McpServerRegistrationListener接口interfaceio.agentscope.harness.agent.tools
定义 MCP 服务端注册监听器契约的接口。
Receives the terminal result of an MCP server registration attempt.
McpServerRegistrationResult记录recordio.agentscope.harness.agent.tools
承载 MCP 服务端注册结果数据的记录类型。
Terminal result of registering one MCP server entry.
ToolFilter类classio.agentscope.harness.agent.tools
工具过滤器,让智能体以受控方式调用外部能力。
Applies the allow (`ToolsConfig#getAllow()`) / deny (`ToolsConfig#getDeny()`) lists from `workspace/tools.json` (or Managed Agents toolset export) against a `Toolkit`.
ToolsConfig类classio.agentscope.harness.agent.tools
工具配置,保存相关配置项。
Workspace-level tool configuration loaded from `workspace/tools.json`.
ToolsConfigLoader类classio.agentscope.harness.agent.tools
工具配置加载器,让智能体以受控方式调用外部能力。
Loads `workspace/tools.json` into a `ToolsConfig`.
FilesystemTranscriptStore类classio.agentscope.harness.agent.transcript
文件系统 Transcript 存储,负责持久化与读取数据。
`TranscriptStore` backed by a local / NAS filesystem directory.
ObjectStoreTranscriptStore类classio.agentscope.harness.agent.transcript
对象存储 Transcript 存储,负责持久化与读取数据。
`TranscriptStore` that writes immutable segment objects through `AbstractFilesystem` (S3/OSS/NAS/sandbox backends that implement upload).
TranscriptRef记录recordio.agentscope.harness.agent.transcript
承载 Transcript 引用数据的记录类型。
Identifies a session transcript in a multi-tenant layout: `{tenant}/{agentId}/{sessionId}/...`.
TranscriptStore接口interfaceio.agentscope.harness.agent.transcript
定义 Transcript 存储契约的接口。
Narrow append-oriented store for session transcripts.
LocalFsMode枚举enumio.agentscope.harness.agent.workspace
定义本地 Fs 模式相关取值的枚举。
Path-resolution policy mode for host-rooted filesystems (`io.agentscope.harness.agent.filesystem.local.LocalFilesystem` and friends).
PathPolicy类classio.agentscope.harness.agent.workspace
路径策略,承载智能体的部署、调度与服务化运行。
Immutable allow-list of host directories that `LocalFsMode#ROOTED` accepts for absolute paths.
WorkspaceConstants类classio.agentscope.harness.agent.workspace
工作区 Constants,承载智能体的部署、调度与服务化运行。
Path constants for the workspace directory structure.
WorkspaceIndex类classio.agentscope.harness.agent.workspace
工作区索引,承载智能体的部署、调度与服务化运行。
Best-effort SQLite index for the local workspace.
WorkspaceManager类classio.agentscope.harness.agent.workspace
工作区管理器,承载智能体的部署、调度与服务化运行。
Stateless accessor for workspace content using a two-layer read architecture.
WorkspacePathNormalizer类classio.agentscope.harness.agent.workspace
工作区路径 Normalizer,承载智能体的部署、调度与服务化运行。
Normalizes file paths to workspace-relative form by stripping the active mode's workspace prefix.
PlanModeManager类classio.agentscope.harness.agent.workspace.plan
计划模式管理器,把复杂任务拆分为可执行步骤并驱动流程。
Coordinates plan mode for a single agent.