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

agentscope-core

AgentScope Java - Core · 2.0.4

AgentScope Core

groupIdGroupIdio.agentscope
版本Version2.0.4
版本线Line2.x
分类Categorycore
包Packages36
类型Types289 top-level / 364 total

包Packages

io.agentscope.core2
io.agentscope.core.agent14
io.agentscope.core.agent.accumulator5
io.agentscope.core.agent.config3
io.agentscope.core.agent.user4
io.agentscope.core.credential5
io.agentscope.core.event35
io.agentscope.core.exception1
io.agentscope.core.formatter6
io.agentscope.core.hook19
io.agentscope.core.hook.recorder1
io.agentscope.core.interruption3
io.agentscope.core.memory8
io.agentscope.core.message23
io.agentscope.core.middleware8
io.agentscope.core.model17
io.agentscope.core.model.spi1
io.agentscope.core.model.transport13
io.agentscope.core.model.transport.websocket9
io.agentscope.core.permission7
io.agentscope.core.rag4
io.agentscope.core.rag.model3
io.agentscope.core.shutdown9
io.agentscope.core.skill7
io.agentscope.core.skill.repository5
io.agentscope.core.skill.util3
io.agentscope.core.state16
io.agentscope.core.state.legacy1
io.agentscope.core.tool27
io.agentscope.core.tool.builtin1
io.agentscope.core.tool.coding4
io.agentscope.core.tool.file3
io.agentscope.core.tool.mcp7
io.agentscope.core.tool.subagent3
io.agentscope.core.tracing4
io.agentscope.core.util8

类型Types

类型Type种类Kind包Package说明Description
ReActAgent类classio.agentscope.core
响应式 ReAct 智能体
ReAct (Reasoning and Acting) Agent implementation.
Version类classio.agentscope.core
版本,驱动智能体的推理、工具调用与会话执行。
AgentScope version and User-Agent information.
Agent接口interfaceio.agentscope.core.agent
定义智能体契约的接口。
Complete agent interface combining all capabilities.
AgentBase类classio.agentscope.core.agent
智能体生命周期基类
Abstract base class for all agents in the AgentScope framework.
AgentRun类classio.agentscope.core.agent
智能体运行,驱动智能体的推理、工具调用与会话执行。
A single-use, lazy execution handle.
CallableAgent接口interfaceio.agentscope.core.agent
定义 Callable 智能体契约的接口。
Interface for agents that can be called to process messages.
Event类classio.agentscope.core.agent
事件,描述执行过程中的事件。
An event emitted during streaming agent execution.
EventSource类classio.agentscope.core.agent
事件来源,驱动智能体的推理、工具调用与会话执行。
@deprecated since 2.0.0.
EventType枚举enumio.agentscope.core.agent
定义事件类型的枚举。
Types of events emitted during agent execution.
ObservableAgent接口interfaceio.agentscope.core.agent
定义 Observable 智能体契约的接口。
Interface for agents that can observe messages without generating replies.
RunControl类classio.agentscope.core.agent
运行 Control,驱动智能体的推理、工具调用与会话执行。
Runtime-only control for one execution; never stored in conversation state.
RuntimeContext类classio.agentscope.core.agent
单次调用上下文
Per-call metadata for an agent run: session-scoped fields plus a thread-safe attribute bag and an optional `ToolExecutionContext` (tool-POJO / DI layer).
StreamOptions类classio.agentscope.core.agent
用于`Agent#stream`API的配置选项。
Configuration options for the `Agent#stream` API.
StreamableAgent接口interfaceio.agentscope.core.agent
定义 Streamable 智能体契约的接口。
Interface for agents that support streaming events during execution.
StreamingHook类classio.agentscope.core.agent
流式钩子,驱动智能体的推理、工具调用与会话执行。
Internal hook implementation for streaming events.
SubagentEventBus接口interfaceio.agentscope.core.agent
定义子智能体事件总线契约的接口。
A lightweight channel that allows synchronously-invoked subagents to push their `Event`s into the parent agent's `Flux<Event>` stream.
ContentAccumulator接口interfaceio.agentscope.core.agent.accumulator
定义内容 Accumulator契约的接口。
Content accumulator interface for accumulating streaming content blocks.
ReasoningContext类classio.agentscope.core.agent.accumulator
推理上下文,驱动智能体的推理、工具调用与会话执行。
Reasoning context that manages all state and content accumulation for a single reasoning round.
TextAccumulator类classio.agentscope.core.agent.accumulator
文本 Accumulator,驱动智能体的推理、工具调用与会话执行。
Text content accumulator for accumulating streaming text chunks.
ThinkingAccumulator类classio.agentscope.core.agent.accumulator
Thinking Accumulator,驱动智能体的推理、工具调用与会话执行。
Thinking content accumulator for accumulating streaming thinking chunks.
ToolCallsAccumulator类classio.agentscope.core.agent.accumulator
工具调用 Accumulator,驱动智能体的推理、工具调用与会话执行。
Tool calls accumulator for accumulating streaming tool call chunks.
FailoverListener接口interfaceio.agentscope.core.agent.config
定义故障转移监听器契约的接口。
Observer notified when a fallback model (`ModelConfig#fallbackModel()`) takes over from a failed primary model.
ModelConfig记录recordio.agentscope.core.agent.config
承载模型配置数据的记录类型。
Model invocation configuration.
ReactConfig记录recordio.agentscope.core.agent.config
承载 ReAct 配置数据的记录类型。
Reasoning-loop configuration.
StreamUserInput类classio.agentscope.core.agent.user
流用户输入,驱动智能体的推理、工具调用与会话执行。
Stream-based user input implementation that reads from any InputStream and writes to any OutputStream.
UserAgent类classio.agentscope.core.agent.user
用户智能体,驱动智能体的推理、工具调用与会话执行。
UserAgent class for handling user interaction within the agent framework.
UserInputBase接口interfaceio.agentscope.core.agent.user
定义用户输入基类契约的接口。
Strategy interface for handling user input from different sources.
UserInputData类classio.agentscope.core.agent.user
用户输入数据,驱动智能体的推理、工具调用与会话执行。
Data class that holds user input information with dual representation.
CredentialBase类classio.agentscope.core.credential
用于模型提供者的凭证元数据。
Credential metadata for a model provider.
DeepSeekCredential类classio.agentscope.core.credential
用于DeepSeek API的凭证。
Credential for the DeepSeek API.
KimiCredential类classio.agentscope.core.credential
Kimi 凭证,与模型服务通信并返回生成或向量化结果。
Credential for the Kimi (Moonshot AI) API.
ModelCard记录recordio.agentscope.core.credential
承载模型卡片数据的记录类型。
Description of one candidate chat model under a provider.
XAICredential类classio.agentscope.core.credential
用于xAI API的凭证。
Credential for the xAI API.
AgentEndEvent类classio.agentscope.core.event
智能体结束事件,描述执行过程中的事件。
Emitted when an agent finishes processing an invocation.
AgentEvent类classio.agentscope.core.event
智能体事件,描述执行过程中的事件。
Base class for all fine-grained agent events.
AgentEventEmitter接口interfaceio.agentscope.core.event
定义智能体事件 Emitter契约的接口。
Public interface for emitting `AgentEvent`s into the parent agent's `streamEvents()` event stream from within tool execution code.
AgentEventType枚举enumio.agentscope.core.event
定义智能体事件类型的枚举。
Fine-grained event types emitted during agent execution.
AgentResultEvent类classio.agentscope.core.event
智能体结果事件,描述执行过程中的事件。
Emitted when an agent successfully finishes processing an invocation, carrying the final result message.
AgentStartEvent类classio.agentscope.core.event
智能体启动事件,描述执行过程中的事件。
Emitted when an agent begins processing an invocation.
AllToolsDeniedEvent类classio.agentscope.core.event
所有工具已拒绝事件,描述执行过程中的事件。
Emitted during the acting phase when all tool calls from the most recent reasoning step were denied (by user HITL confirmation or by permission rules).
ConfirmResult类classio.agentscope.core.event
确认结果,在智能体、模型与前端之间传递结构化消息和事件。
Represents the result of a single user confirmation decision for a tool call.
CustomEvent类classio.agentscope.core.event
自定义事件,描述执行过程中的事件。
Generic extensible event for signals that don't fit a specific `AgentEvent` subtype.
DataBlockDeltaEvent类classio.agentscope.core.event
数据块增量事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
DataBlockEndEvent类classio.agentscope.core.event
数据块结束事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
DataBlockStartEvent类classio.agentscope.core.event
数据块启动事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ExceedMaxItersEvent类classio.agentscope.core.event
超出最大迭代次数事件,描述执行过程中的事件。
Emitted when the agent's ReAct loop exceeds the configured maximum iterations.
ExternalExecutionResultEvent类classio.agentscope.core.event
外部执行结果事件,描述执行过程中的事件。
Emitted after externally-executed tool results are provided back to the agent.
HintBlockEvent类classio.agentscope.core.event
Hint 块事件,描述执行过程中的事件。
One-shot hint block event.
ModelCallEndEvent类classio.agentscope.core.event
模型调用结束事件,描述执行过程中的事件。
Emitted when the agent finishes a model (LLM) call.
ModelCallStartEvent类classio.agentscope.core.event
模型调用启动事件,描述执行过程中的事件。
Emitted when the agent starts a model (LLM) call.
RequestStopEvent类classio.agentscope.core.event
请求停止事件,描述执行过程中的事件。
Requests the agent to pause execution after the current phase completes.
RequireExternalExecutionEvent类classio.agentscope.core.event
Require 外部执行事件,描述执行过程中的事件。
Emitted when tool calls require external (out-of-process) execution.
RequireUserConfirmEvent类classio.agentscope.core.event
Require 用户确认事件,描述执行过程中的事件。
Emitted when the agent requires user confirmation before executing tool calls (HITL).
SubagentExposedEvent类classio.agentscope.core.event
子智能体 Exposed 事件,描述执行过程中的事件。
Emitted when a spawned subagent is exposed as a user-addressable entry point via `agent_spawn(expose_to_user=true)`.
TextBlockDeltaEvent类classio.agentscope.core.event
文本块增量事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
TextBlockEndEvent类classio.agentscope.core.event
文本块结束事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
TextBlockStartEvent类classio.agentscope.core.event
文本块启动事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ThinkingBlockDeltaEvent类classio.agentscope.core.event
Thinking 块增量事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ThinkingBlockEndEvent类classio.agentscope.core.event
Thinking 块结束事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ThinkingBlockStartEvent类classio.agentscope.core.event
Thinking 块启动事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolCallDeltaEvent类classio.agentscope.core.event
工具调用增量事件,描述执行过程中的事件。
Emitted as tool call input arguments are streamed incrementally.
ToolCallEndEvent类classio.agentscope.core.event
工具调用结束事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolCallStartEvent类classio.agentscope.core.event
工具调用启动事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolResultDataDeltaEvent类classio.agentscope.core.event
工具结果数据增量事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolResultEndEvent类classio.agentscope.core.event
工具结果结束事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolResultStartEvent类classio.agentscope.core.event
工具结果启动事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
ToolResultTextDeltaEvent类classio.agentscope.core.event
工具结果文本增量事件,描述执行过程中的事件。
A class in io.agentscope.core.event that carries structured messages and events between agents, models and UIs.
UserConfirmResultEvent类classio.agentscope.core.event
用户确认结果事件,描述执行过程中的事件。
Emitted after the user has responded to a `RequireUserConfirmEvent`.
CompositeAgentException类classio.agentscope.core.exception
Composite 智能体异常,表示执行过程中的错误。
A class in io.agentscope.core.exception that provides shared types and foundational utilities.
AbstractBaseFormatter类classio.agentscope.core.formatter
抽象基类格式化器,在智能体、模型与前端之间传递结构化消息和事件。
Abstract base formatter providing common functionality for all formatter implementations.
Formatter接口interfaceio.agentscope.core.formatter
请求与响应格式转换器
Formatter interface for converting between AgentScope and provider-specific formats.
FormatterException类classio.agentscope.core.formatter
格式化器异常,表示执行过程中的错误。
Exception thrown when formatter encounters an error during message formatting or response parsing.
JsonSchema类classio.agentscope.core.formatter
JSON 模式,在智能体、模型与前端之间传递结构化消息和事件。
JSON Schema definition for structured outputs.
MediaUtils类classio.agentscope.core.formatter
Media Utils,在智能体、模型与前端之间传递结构化消息和事件。
Utility class for handling media files in multimodal content.
ResponseFormat类classio.agentscope.core.formatter
用于模型 APIs的响应格式配置。
Response format configuration for model APIs.
ActingChunkEvent类classio.agentscope.core.hook
执行分块事件,描述执行过程中的事件。
Event fired during tool execution streaming.
ActingEvent类classio.agentscope.core.hook
执行事件,描述执行过程中的事件。
Base class for tool execution (acting) related events.
ErrorEvent类classio.agentscope.core.hook
错误事件,描述执行过程中的事件。
Event fired when an error occurs during agent execution.
Hook接口interfaceio.agentscope.core.hook
定义钩子契约的接口。
Hook interface for monitoring and intercepting agent execution.
HookEvent类classio.agentscope.core.hook
所有钩子事件的基类。
Base class for all hook events.
HookEventType枚举enumio.agentscope.core.hook
定义钩子事件类型的枚举。
Enum representing all hook event types.
LegacyHookDispatcher类classio.agentscope.core.hook
Legacy 钩子调度器,驱动智能体的推理、工具调用与会话执行。
Encapsulates all legacy `HookEvent` construction and dispatch logic.
PostActingEvent类classio.agentscope.core.hook
后置执行事件,描述执行过程中的事件。
Event fired after tool execution completes.
PostCallEvent类classio.agentscope.core.hook
后置调用事件,描述执行过程中的事件。
Event fired after agent completes processing.
PostReasoningEvent类classio.agentscope.core.hook
后置推理事件,描述执行过程中的事件。
Event fired after LLM reasoning completes.
PostSummaryEvent类classio.agentscope.core.hook
后置摘要事件,描述执行过程中的事件。
Event fired after summary generation completes.
PreActingEvent类classio.agentscope.core.hook
前置执行事件,描述执行过程中的事件。
Event fired before tool execution.
PreCallEvent类classio.agentscope.core.hook
前置调用事件,描述执行过程中的事件。
Event fired before agent starts processing.
PreReasoningEvent类classio.agentscope.core.hook
前置推理事件,描述执行过程中的事件。
Event fired before LLM reasoning.
PreSummaryEvent类classio.agentscope.core.hook
前置摘要事件,描述执行过程中的事件。
Event fired before summary generation when max iterations is reached.
ReasoningChunkEvent类classio.agentscope.core.hook
推理分块事件,描述执行过程中的事件。
Event fired during reasoning streaming.
ReasoningEvent类classio.agentscope.core.hook
推理事件,描述执行过程中的事件。
Base class for reasoning-related events.
SummaryChunkEvent类classio.agentscope.core.hook
摘要分块事件,描述执行过程中的事件。
Event fired during summary streaming.
SummaryEvent类classio.agentscope.core.hook
摘要事件,描述执行过程中的事件。
Base class for summary-related events.
JsonlTraceExporter类classio.agentscope.core.hook.recorder
Jsonl 追踪导出器,驱动智能体的推理、工具调用与会话执行。
A built-in, out-of-the-box JSONL trace exporter based on the Hook event system.
InterruptContext类classio.agentscope.core.interruption
中断上下文,为框架提供通用类型与基础能力。
Context information about an interruption.
InterruptControl类classio.agentscope.core.interruption
中断 Control,为框架提供通用类型与基础能力。
A runtime-only cooperative interrupt signal owned by one execution, never by a session.
InterruptSource枚举enumio.agentscope.core.interruption
定义中断来源相关取值的枚举。
Enum representing the source of an interruption.
AgentStateMemoryView类classio.agentscope.core.memory
智能体状态记忆 View,在多次调用之间保存和恢复会话与记忆数据。
Read-only `Memory` adapter that proxies `#getMessages()` to a live `AgentState#getContext()` resolved at call time.
InMemoryMemory类classio.agentscope.core.memory
In 记忆记忆,在多次调用之间保存和恢复会话与记忆数据。
In-memory implementation of Memory with state persistence support.
LongTermMemory接口interfaceio.agentscope.core.memory
定义 Long Term 记忆契约的接口。
Abstract base class for long-term memory implementations.
LongTermMemoryMode枚举enumio.agentscope.core.memory
定义Long Term 记忆模式相关取值的枚举。
Defines how long-term memory is integrated with agent behavior.
LongTermMemoryTools类classio.agentscope.core.memory
Long Term 记忆工具,封装可被智能体调用的能力。
Tool adapter that exposes long-term memory operations as agent-callable tools.
Memory接口interfaceio.agentscope.core.memory
定义记忆契约的接口。
Interface for memory components that store and manage conversation history.
StateBackedMemory类classio.agentscope.core.memory
状态 Backed 记忆,在多次调用之间保存和恢复会话与记忆数据。
A `Memory` implementation that delegates all reads and writes to `AgentState#contextMutable()`.
StaticLongTermMemoryHook类classio.agentscope.core.memory
Static Long Term 记忆钩子,在多次调用之间保存和恢复会话与记忆数据。
Static Long-Term Memory Hook for automatic memory management.
AssistantMessage类classio.agentscope.core.message
Assistant 消息,在智能体、模型与前端之间传递结构化消息和事件。
A `Msg` with `MsgRole#ASSISTANT` pinned at construction time.
AudioBlock类classio.agentscope.core.message
表示音频内容 in 消息。
Represents audio content in a message.
Base64Source类classio.agentscope.core.message
基类 64 来源,在智能体、模型与前端之间传递结构化消息和事件。
Represents Base64-encoded media content with media type and data.
ContentBlock类classio.agentscope.core.message
内容块,在智能体、模型与前端之间传递结构化消息和事件。
Base sealed class for all content blocks in messages.
DataBlock类classio.agentscope.core.message
数据块,在智能体、模型与前端之间传递结构化消息和事件。
Unified data block for arbitrary binary media (image / audio / video / file).
GenerateReason枚举enumio.agentscope.core.message
定义Generate 推理相关取值的枚举。
Represents the reason why a message was generated by an agent.
HintBlock类classio.agentscope.core.message
Hint 块,在智能体、模型与前端之间传递结构化消息和事件。
A content block that provides hints to the LLM during reasoning.
ImageBlock类classio.agentscope.core.message
表示图像内容 in 消息使用 URL 或 Base64 来源。
Represents image content in a message with URL or Base64 source.
MessageMetadataKeys类classio.agentscope.core.message
消息元数据密钥,在智能体、模型与前端之间传递结构化消息和事件。
Constants for well-known message metadata keys.
Msg类classio.agentscope.core.message
Java 消息模型
Represents a message in the AgentScope framework.
MsgRole枚举enumio.agentscope.core.message
定义消息角色相关取值的枚举。
Defines the role of a message participant in agent conversations.
Source类classio.agentscope.core.message
来源,在智能体、模型与前端之间传递结构化消息和事件。
Base class for media sources (URL or Base64).
SystemMessage类classio.agentscope.core.message
系统消息,在智能体、模型与前端之间传递结构化消息和事件。
A `Msg` with `MsgRole#SYSTEM` pinned at construction time.
TextBlock类classio.agentscope.core.message
文本块,在智能体、模型与前端之间传递结构化消息和事件。
Represents plain text content in a message.
ThinkingBlock类classio.agentscope.core.message
Thinking 块,在智能体、模型与前端之间传递结构化消息和事件。
Represents reasoning or thinking content in a message.
ToolCallState枚举enumio.agentscope.core.message
定义工具调用状态的枚举。
A enum in io.agentscope.core.message that defines enum values used when components carries structured messages and events between agents, models and UIs.
ToolResultBlock类classio.agentscope.core.message
表示结果的工具执行。
Represents the result of a tool execution.
ToolResultMessage类classio.agentscope.core.message
工具结果消息,在智能体、模型与前端之间传递结构化消息和事件。
A `Msg` with `MsgRole#TOOL` pinned at construction time.
ToolResultState枚举enumio.agentscope.core.message
定义工具结果状态的枚举。
A enum in io.agentscope.core.message that defines enum values used when components carries structured messages and events between agents, models and UIs.
ToolUseBlock类classio.agentscope.core.message
工具使用块,在智能体、模型与前端之间传递结构化消息和事件。
Represents a tool use request within a message.
URLSource类classio.agentscope.core.message
URL 来源,在智能体、模型与前端之间传递结构化消息和事件。
Represents URL-based media content.
UserMessage类classio.agentscope.core.message
用户消息,在智能体、模型与前端之间传递结构化消息和事件。
A `Msg` with `MsgRole#USER` pinned at construction time.
VideoBlock类classio.agentscope.core.message
表示视频内容 in 消息。
Represents video content in a message.
ActingInput记录recordio.agentscope.core.middleware
用于`MiddlewareBase#onActing`的输入上下文。
Input context for `MiddlewareBase#onActing`.
AgentInput记录recordio.agentscope.core.middleware
用于`MiddlewareBase#onAgent`的输入上下文。
Input context for `MiddlewareBase#onAgent`.
FinalAnswerFilterMiddleware类classio.agentscope.core.middleware
最终答案过滤中间件,在智能体执行流程中提供横切扩展。
Exposes only the text from the final reasoning round of a ReAct stream.
MiddlewareBase接口interfaceio.agentscope.core.middleware
响应式中间件接口
Middleware provides interception mechanisms at 5 key execution points in the Agent lifecycle.
MiddlewareChain类classio.agentscope.core.middleware
中间件 Chain,驱动智能体的推理、工具调用与会话执行。
Builds an onion-style middleware chain for a given interception point.
ModelCallInput记录recordio.agentscope.core.middleware
用于`MiddlewareBase#onModelCall`的输入上下文。
Input context for `MiddlewareBase#onModelCall`.
ReasoningInput记录recordio.agentscope.core.middleware
用于`MiddlewareBase#onReasoning`的输入上下文。
Input context for `MiddlewareBase#onReasoning`.
TaskReminderMiddleware类classio.agentscope.core.middleware
任务 Reminder 中间件,在智能体执行流程中提供横切扩展。
Keeps the agent's todo list in front of the model so long-running tasks don't drift.
CachePolicy枚举enumio.agentscope.core.model
定义缓存策略相关取值的枚举。
Controls whether `ModelRegistry` caches models created with a `ModelCreationContext`.
ChatModelBase类classio.agentscope.core.model
响应式模型抽象基类
Abstract base class for all models in the AgentScope framework.
ChatResponse类classio.agentscope.core.model
聊天响应,与模型服务通信并返回生成或向量化结果。
Represents a chat completion response from a language model.
ChatUsage类classio.agentscope.core.model
聊天用量,与模型服务通信并返回生成或向量化结果。
Represents token usage information for chat completion responses.
ExecutionConfig类classio.agentscope.core.model
用于超时和重试行为的统一执行配置。
Unified execution configuration for timeout and retry behavior.
GenerateOptions类classio.agentscope.core.model
Generate 选项,保存相关配置项。
Immutable generation options for LLM models.
Model接口interfaceio.agentscope.core.model
定义模型契约的接口。
An interface in io.agentscope.core.model that defines the contract for components that talks to model services and returns generated or embedded output.
ModelContextWindows类classio.agentscope.core.model
模型上下文 Windows,与模型服务通信并返回生成或向量化结果。
Known context window sizes for popular models.
ModelCreationContext类classio.agentscope.core.model
模型 Creation 上下文,与模型服务通信并返回生成或向量化结果。
Provider-neutral model creation context used by `ModelRegistry` and model provider SPI implementations.
ModelException类classio.agentscope.core.model
模型异常,表示执行过程中的错误。
Exception thrown when model operations fail.
ModelHttpException接口interfaceio.agentscope.core.model
定义模型 HTTP 异常契约的接口。
Exception contract for model providers that can expose an HTTP status code.
ModelProviderSupport类classio.agentscope.core.model
模型提供者 Support,与模型服务通信并返回生成或向量化结果。
Shared helpers for model providers.
ModelRegistry类classio.agentscope.core.model
模型注册表,与模型服务通信并返回生成或向量化结果。
Registry for resolving `Model` instances from string identifiers (named instances or `provider:model` patterns).
ModelUtils类classio.agentscope.core.model
模型 Utils,与模型服务通信并返回生成或向量化结果。
Utility class for common Model operations.
StructuredOutputReminder枚举enumio.agentscope.core.model
定义结构化输出 Reminder相关取值的枚举。
Configuration for how to ensure the model calls generate_response tool in structured output mode.
ToolChoice接口interfaceio.agentscope.core.model
表示工具选项行为用于大模型模型调用。
Represents the tool choice behavior for LLM model calls.
ToolSchema类classio.agentscope.core.model
工具模式,与模型服务通信并返回生成或向量化结果。
Immutable tool schema definition.
ModelProvider接口interfaceio.agentscope.core.model.spi
定义模型提供者契约的接口。
Service Provider Interface for model adapters discovered from extension modules.
HttpRequest类classio.agentscope.core.model.transport
HTTP 请求,与模型服务通信并返回生成或向量化结果。
HTTP request encapsulation for the transport layer.
HttpResponse类classio.agentscope.core.model.transport
HTTP 响应,与模型服务通信并返回生成或向量化结果。
HTTP response encapsulation for the transport layer.
HttpTransport接口interfaceio.agentscope.core.model.transport
定义 HTTP 传输层契约的接口。
HTTP transport layer interface for making HTTP requests.
HttpTransportConfig类classio.agentscope.core.model.transport
HTTP 传输层配置,保存相关配置项。
Configuration for HTTP transport layer.
HttpTransportException类classio.agentscope.core.model.transport
HTTP 传输层异常,表示执行过程中的错误。
Exception thrown when HTTP transport operations fail.
HttpTransportFactory类classio.agentscope.core.model.transport
HTTP 传输层工厂,与模型服务通信并返回生成或向量化结果。
Factory for managing HttpTransport instances.
HttpVersion枚举enumio.agentscope.core.model.transport
定义HTTP 版本相关取值的枚举。
HTTP version.
JdkHttpTransport类classio.agentscope.core.model.transport
Jdk HTTP 传输层,与模型服务通信并返回生成或向量化结果。
Pure JDK implementation of the HttpTransport interface.
OkHttpTransport类classio.agentscope.core.model.transport
Ok HTTP 传输层,与模型服务通信并返回生成或向量化结果。
OkHttp implementation of the HttpTransport interface.
ProxyConfig类classio.agentscope.core.model.transport
用于HTTP 和 SOCKS 代理的配置。
Configuration for HTTP and SOCKS proxy.
ProxyType枚举enumio.agentscope.core.model.transport
定义代理类型的枚举。
Enumeration of supported proxy types.
TransportConstants类classio.agentscope.core.model.transport
传输层 Constants,与模型服务通信并返回生成或向量化结果。
Constants for HTTP transport layer.
WebSocketTransport接口interfaceio.agentscope.core.model.transport
WebSocket 客户端。
WebSocket client interface.
CloseInfo记录recordio.agentscope.core.model.transport.websocket
承载关闭信息数据的记录类型。
WebSocket connection close information.
JdkWebSocketConnection类classio.agentscope.core.model.transport.websocket
Jdk WebSocket 连接,与模型服务通信并返回生成或向量化结果。
WebSocket connection implementation based on JDK WebSocket.
JdkWebSocketTransport类classio.agentscope.core.model.transport.websocket
Jdk WebSocket 传输层,与模型服务通信并返回生成或向量化结果。
WebSocket client implementation based on JDK 11+ HttpClient.
OkHttpWebSocketConnection类classio.agentscope.core.model.transport.websocket
Ok HTTP WebSocket 连接,与模型服务通信并返回生成或向量化结果。
WebSocket connection implementation based on OkHttp WebSocket.
OkHttpWebSocketTransport类classio.agentscope.core.model.transport.websocket
Ok HTTP WebSocket 传输层,与模型服务通信并返回生成或向量化结果。
WebSocket client implementation based on OkHttp.
WebSocketConnection接口interfaceio.agentscope.core.model.transport.websocket
WebSocket 连接。
WebSocket connection interface.
WebSocketRequest类classio.agentscope.core.model.transport.websocket
WebSocket 请求,与模型服务通信并返回生成或向量化结果。
WebSocket connection request configuration.
WebSocketTransportConfig类classio.agentscope.core.model.transport.websocket
用于WebSocket 客户端的配置。
Configuration for WebSocket clients.
WebSocketTransportException类classio.agentscope.core.model.transport.websocket
WebSocket 传输层异常,表示执行过程中的错误。
WebSocket transport layer exception.
AdditionalWorkingDirectory记录recordio.agentscope.core.permission
承载 Additional Working 目录数据的记录类型。
A directory included in a permission context's working scope.
PermissionBehavior枚举enumio.agentscope.core.permission
定义权限行为相关取值的枚举。
Outcome of a permission rule or tool self-check.
PermissionContextState类classio.agentscope.core.permission
权限上下文状态,驱动智能体的推理、工具调用与会话执行。
Permission evaluation context: mode + working directories + three rule tables.
PermissionDecision类classio.agentscope.core.permission
权限决策,驱动智能体的推理、工具调用与会话执行。
Decision returned by a permission rule match or a tool self-check.
PermissionEngine类classio.agentscope.core.permission
权限引擎,驱动智能体的推理、工具调用与会话执行。
Evaluates tool execution requests against configured permission rules.
PermissionMode枚举enumio.agentscope.core.permission
定义权限模式相关取值的枚举。
Permission mode controlling how the engine evaluates tool execution requests.
PermissionRule记录recordio.agentscope.core.permission
承载权限规则数据的记录类型。
A single permission rule pinned to a tool name.
GenericRAGHook类classio.agentscope.core.rag
泛型 RAG 钩子,把私有文档转化为可检索的知识。
Generic RAG Hook for automatic knowledge retrieval before reasoning.
Knowledge接口interfaceio.agentscope.core.rag
定义知识库契约的接口。
Interface for knowledge bases.
KnowledgeRetrievalTools类classio.agentscope.core.rag
知识库检索工具,封装可被智能体调用的能力。
Knowledge retrieval tools for Agentic RAG mode.
RAGMode枚举enumio.agentscope.core.rag
定义RAG 模式相关取值的枚举。
RAG (Retrieval-Augmented Generation) mode enumeration.
Document类classio.agentscope.core.rag.model
文档,与模型服务通信并返回生成或向量化结果。
Document class representing a document chunk in the RAG system.
DocumentMetadata类classio.agentscope.core.rag.model
文档元数据,与模型服务通信并返回生成或向量化结果。
Document metadata containing content and chunking information.
RetrieveConfig类classio.agentscope.core.rag.model
检索配置,保存相关配置项。
Configuration for document retrieval operations.
AgentScopeJvmShutdownHook类classio.agentscope.core.shutdown
AgentScope Jvm Shutdown 钩子,为框架提供通用类型与基础能力。
JVM hook for SIGTERM graceful shutdown entry.
AgentShuttingDownException类classio.agentscope.core.shutdown
智能体 Shutting Down 异常,表示执行过程中的错误。
Exception thrown when request is rejected or interrupted during shutdown.
GracefulShutdownConfig记录recordio.agentscope.core.shutdown
承载 Graceful Shutdown 配置数据的记录类型。
Configuration for graceful shutdown behavior of the agent system.
GracefulShutdownManager类classio.agentscope.core.shutdown
Graceful Shutdown 管理器,为框架提供通用类型与基础能力。
Global manager for graceful shutdown lifecycle and active request tracking.
GracefulShutdownMiddleware类classio.agentscope.core.shutdown
Graceful Shutdown 中间件,在智能体执行流程中提供横切扩展。
System middleware that integrates graceful shutdown into the agent lifecycle.
PartialReasoningPolicy枚举enumio.agentscope.core.shutdown
定义Partial 推理策略相关取值的枚举。
Policy for handling incomplete reasoning content on shutdown interruption.
ShutdownSessionBinding记录recordio.agentscope.core.shutdown
承载 Shutdown 会话绑定数据的记录类型。
AgentStateStore binding used for shutdown checkpoint persistence.
ShutdownState枚举enumio.agentscope.core.shutdown
定义Shutdown 状态的枚举。
Global framework shutdown state.
ShutdownStateSaver接口interfaceio.agentscope.core.shutdown
定义 Shutdown 状态 Saver契约的接口。
Strategy for persisting `AgentState` during graceful shutdown.
AgentSkill类classio.agentscope.core.skill
智能体技能,让智能体以受控方式调用外部能力。
Represents an agent skill that can be loaded and used by agents.
AgentSkillPromptProvider类classio.agentscope.core.skill
智能体技能提示词提供者,让智能体以受控方式调用外部能力。
Generates skill system prompts for agents to understand available skills.
DynamicSkillMiddleware类classio.agentscope.core.skill
Dynamic 技能中间件,在智能体执行流程中提供横切扩展。
Dynamically composes skills from an ordered list of repositories (`AgentSkillRepository`) on every `call()` via `#onSystemPrompt(Agent, RuntimeContext, String)`, replacing the static skill prompt with a per-call view that supports per-user skill isolation and one-click marketplace integration.
SkillBox类classio.agentscope.core.skill
技能 Box,让智能体以受控方式调用外部能力。
Manages a collection of `AgentSkill` instances and exposes them as tools.
SkillFileFilter接口interfaceio.agentscope.core.skill
定义技能文件过滤器契约的接口。
Filter for deciding whether a skill resource should be uploaded.
SkillFilter类classio.agentscope.core.skill
技能过滤器,让智能体以受控方式调用外部能力。
Immutable filter that decides which skills are allowed in a prompt.
SkillHook类classio.agentscope.core.skill
技能钩子,让智能体以受控方式调用外部能力。
Injects the skill catalog prompt into the unified system message on `PreCallEvent` via `PreCallEvent#appendSystemContent(String)`.
AgentSkillRepository接口interfaceio.agentscope.core.skill.repository
定义智能体技能仓库契约的接口。
Repository interface for AgentSkill persistence operations.
AgentSkillRepositoryInfo类classio.agentscope.core.skill.repository
智能体技能仓库信息,让智能体以受控方式调用外部能力。
Metadata about a skill repository.
ClasspathSkillRepository类classio.agentscope.core.skill.repository
Classpath 技能仓库,负责持久化与读取数据。
ClasspathSkillRepository - Loads skills from classpath resources and JAR files.
FileSystemSkillRepository类classio.agentscope.core.skill.repository
文件系统技能仓库,负责持久化与读取数据。
File system based implementation of AgentSkillRepository.
RuntimeContextSkillRepository接口interfaceio.agentscope.core.skill.repository
定义运行时上下文技能仓库契约的接口。
A skill repository whose visible contents depend on the current request context.
MarkdownSkillParser类classio.agentscope.core.skill.util
Markdown 技能解析器,让智能体以受控方式调用外部能力。
Utility for parsing and generating Markdown files with YAML frontmatter.
SkillFileSystemHelper类classio.agentscope.core.skill.util
技能文件系统 Helper,让智能体以受控方式调用外部能力。
Utility class for file system operations related to skills.
SkillUtil类classio.agentscope.core.skill.util
技能 Util,让智能体以受控方式调用外部能力。
Utility class for creating AgentSkill instances.
AgentState类classio.agentscope.core.state
会话状态
Mutable per-agent runtime state.
AgentStateStore接口interfaceio.agentscope.core.state
定义智能体状态存储契约的接口。
Persistent storage interface for AgentScope agent state.
ConcurrentSessionModificationException类classio.agentscope.core.state
Concurrent 会话 Modification 异常,表示执行过程中的错误。
Thrown when an optimistic-concurrency save fails because another writer changed the same session slot since it was loaded.
ConflictPolicy枚举enumio.agentscope.core.state
定义Conflict 策略相关取值的枚举。
Policy applied when an optimistic-concurrency save of agent session state conflicts with another writer's update.
InMemoryAgentStateStore类classio.agentscope.core.state
In 记忆智能体状态存储,负责持久化与读取数据。
In-memory implementation of the `AgentStateStore` interface.
JsonFileAgentStateStore类classio.agentscope.core.state
JSON 文件状态存储
JSON file-based `AgentStateStore` implementation.
LegacyStateLoader类classio.agentscope.core.state
Legacy 状态加载器,在多次调用之间保存和恢复会话与记忆数据。
Utility for loading v1 session data into the 2.0 `AgentState` format.
ListHashUtil类classio.agentscope.core.state
列表 Hash Util,在多次调用之间保存和恢复会话与记忆数据。
Utility class for computing hash values of state lists.
PlanModeContextState类classio.agentscope.core.state
计划模式上下文状态,在多次调用之间保存和恢复会话与记忆数据。
Persisted plan-mode flag for an agent.
ReadCacheEntry记录recordio.agentscope.core.state
承载读取缓存条目数据的记录类型。
Snapshot of a file's contents kept in the tool read cache.
SessionInfo类classio.agentscope.core.state
会话信息,在多次调用之间保存和恢复会话与记忆数据。
Information about a session.
State接口interfaceio.agentscope.core.state
定义状态契约的接口。
Marker interface for persistable state objects.
Task类classio.agentscope.core.state
任务,在多次调用之间保存和恢复会话与记忆数据。
Persistent agent task record carried inside `TaskContextState`.
TaskContextState类classio.agentscope.core.state
任务上下文状态,在多次调用之间保存和恢复会话与记忆数据。
Mutable bag of `Task`s carried by `AgentState`.
ToolContextState类classio.agentscope.core.state
工具上下文状态,在多次调用之间保存和恢复会话与记忆数据。
Read-cache backing for file-touching tools (Read / Write / Edit).
VersionedState记录recordio.agentscope.core.state
承载 Versioned 状态数据的记录类型。
A state value paired with its optimistic-concurrency version from an `AgentStateStore`.
ToolkitState记录recordio.agentscope.core.state.legacy
承载工具包状态数据的记录类型。
Deserialization shape for the v1 `toolkit_activeGroups` session entry.
AgentTool接口interfaceio.agentscope.core.tool
定义智能体工具契约的接口。
Interface for agent tools that can be called by models.
ContextStore接口interfaceio.agentscope.core.tool
定义上下文存储契约的接口。
Storage layer abstraction for tool execution context.
DefaultToolResultConverter类classio.agentscope.core.tool
默认工具结果转换器,让智能体以受控方式调用外部能力。
Default implementation of ToolResultConverter.
ExtendedModel接口interfaceio.agentscope.core.tool
定义 Extended 模型契约的接口。
Interface for extended model that adds properties to tool parameters.
NoOpToolEmitter类classio.agentscope.core.tool
无 Op 工具 Emitter,让智能体以受控方式调用外部能力。
A no-op implementation of ToolEmitter that silently discards all emitted chunks.
SchemaOnlyTool类classio.agentscope.core.tool
模式 Only 工具,封装可被智能体调用的能力。
An external tool implementation that only contains schema definition without execution logic.
SimpleExtendedModel类classio.agentscope.core.tool
简单 Extended 模型,让智能体以受控方式调用外部能力。
Simple implementation of ExtendedModel using maps.
SkillToolGroup类classio.agentscope.core.tool
技能工具组,让智能体以受控方式调用外部能力。
A `ToolGroup` that is bound to a specific skill.
Tool注解annotationio.agentscope.core.tool
用于标记工具相关元数据的注解。
Annotation to mark a method as a tool that can be invoked by AI agents.
ToolBase类classio.agentscope.core.tool
工具基类,让智能体以受控方式调用外部能力。
Abstract base class for tools that participate in permission evaluation and ReAct execution.
ToolCallParam类classio.agentscope.core.tool
工具调用参数,让智能体以受控方式调用外部能力。
Parameters for tool invocation.
ToolDangerousPathConstants类classio.agentscope.core.tool
工具 Dangerous 路径 Constants,让智能体以受控方式调用外部能力。
Defaults for the dangerous-path and dangerous-command lists consulted by tool self-checks.
ToolEmitter接口interfaceio.agentscope.core.tool
定义工具 Emitter契约的接口。
Interface for emitting streaming responses during tool execution.
ToolExecutionContext类classio.agentscope.core.tool
工具执行上下文,让智能体以受控方式调用外部能力。
Facade for passing custom POJOs to tool methods via priority-based resolution.
ToolExecutionContextProvider接口interfaceio.agentscope.core.tool
定义工具执行上下文提供者契约的接口。
@deprecated Part of the {@link ToolExecutionContext} layer which is superseded by {@link io.agentscope.core.agent.RuntimeContext}.
ToolGroup类classio.agentscope.core.tool
工具组,让智能体以受控方式调用外部能力。
Represents a named group of tools with activation state.
ToolGroupScope枚举enumio.agentscope.core.tool
定义工具组范围相关取值的枚举。
Defines who manages a `ToolGroup`'s activation lifecycle.
ToolMergeMode枚举enumio.agentscope.core.tool
定义工具 Merge 模式相关取值的枚举。
Enum defining how externally injected tools (e.g.
ToolParam注解annotationio.agentscope.core.tool
用于标记工具参数相关元数据的注解。
Annotation to describe parameters of a tool method.
ToolRequestConfig记录recordio.agentscope.core.tool
承载工具请求配置数据的记录类型。
Immutable per-call tool request config.
ToolResultConverter接口interfaceio.agentscope.core.tool
定义工具结果转换器契约的接口。
Converts tool method return values to ToolResultBlock.
ToolResultMessageBuilder类classio.agentscope.core.tool
工具结果消息构建器,用于构建并配置目标实例。
Utility class for building tool result messages from ToolResultBlock objects.
ToolSchemaModule类classio.agentscope.core.tool
工具模式 Module,让智能体以受控方式调用外部能力。
A victools JSON Schema `Module` that reads `ToolParam` annotations to populate `"description"` and `"required"` in the generated schema.
ToolSuspendException类classio.agentscope.core.tool
工具 Suspend 异常,表示执行过程中的错误。
Exception thrown to signal that a tool execution should be suspended and handled externally.
ToolValidator类classio.agentscope.core.tool
工具校验器,让智能体以受控方式调用外部能力。
Unified validator for tool-related operations.
Toolkit类classio.agentscope.core.tool
工具注册表
Toolkit manages the registration, retrieval, and execution of agent tools.
ToolkitConfig类classio.agentscope.core.tool
用于工具包执行行为的配置。
Configuration for Toolkit execution behavior.
TodoTools类classio.agentscope.core.tool.builtin
Todo 工具,封装可被智能体调用的能力。
Built-in task-list tool that lets the agent maintain a structured todo list for the current session, mirroring opencode's `todowrite`.
CommandValidator接口interfaceio.agentscope.core.tool.coding
定义命令校验器契约的接口。
Interface for validating shell commands before execution.
ShellCommandTool类classio.agentscope.core.tool.coding
Shell 命令工具,封装可被智能体调用的能力。
Tool for executing shell commands with security validation.
UnixCommandValidator类classio.agentscope.core.tool.coding
Unix 命令校验器,让智能体以受控方式调用外部能力。
Command validator for Unix-like systems (Linux, macOS).
WindowsCommandValidator类classio.agentscope.core.tool.coding
Windows 命令校验器,让智能体以受控方式调用外部能力。
Command validator for Windows systems.
FileToolUtils类classio.agentscope.core.tool.file
文件工具 Utils,让智能体以受控方式调用外部能力。
Utility methods shared by text file tools.
ReadFileTool类classio.agentscope.core.tool.file
读取文件工具,封装可被智能体调用的能力。
Tool for viewing text file content with optional line range specification and listing directory contents.
WriteFileTool类classio.agentscope.core.tool.file
写入文件工具,封装可被智能体调用的能力。
Text file writing and insertion tools.
McpAsyncClientWrapper类classio.agentscope.core.tool.mcp
MCP 异步客户端包装器,让智能体以受控方式调用外部能力。
Wrapper for asynchronous MCP clients using Project Reactor.
McpClientBuilder类classio.agentscope.core.tool.mcp
MCP 客户端构建器
Builder for creating MCP client wrappers with fluent configuration.
McpClientWrapper类classio.agentscope.core.tool.mcp
用于MCP(模型上下文协议)客户端的抽象包装器。
Abstract wrapper for MCP (Model Context Protocol) clients.
McpContentConverter类classio.agentscope.core.tool.mcp
MCP 内容转换器,让智能体以受控方式调用外部能力。
Utility class for converting between MCP content types and AgentScope content blocks.
McpMeta记录recordio.agentscope.core.tool.mcp
承载 MCP 元数据数据的记录类型。
Type-namespace marker for MCP (Model Context Protocol) request metadata.
McpSyncClientWrapper类classio.agentscope.core.tool.mcp
MCP 同步客户端包装器,让智能体以受控方式调用外部能力。
Wrapper for synchronous MCP clients that converts blocking calls to reactive Mono types.
McpTool类classio.agentscope.core.tool.mcp
MCP 工具,封装可被智能体调用的能力。
`ToolBase` subclass that wraps an MCP (Model Context Protocol) tool.
SubAgentConfig类classio.agentscope.core.tool.subagent
子智能体配置,保存相关配置项。
Configuration for sub-agent registration.
SubAgentProvider接口interfaceio.agentscope.core.tool.subagent
定义子智能体提供者契约的接口。
Factory interface for creating agent instances.
SubAgentTool类classio.agentscope.core.tool.subagent
子智能体工具,封装可被智能体调用的能力。
AgentTool implementation that wraps a sub-agent for multi-turn conversation.
NoopTracer类classio.agentscope.core.tracing
Noop 追踪器,对智能体行为进行评测、追踪与可观测性分析。
@deprecated since 2.0.0.
OtelTracingMiddleware类classio.agentscope.core.tracing
Otel 追踪中间件,在智能体执行流程中提供横切扩展。
Middleware that adds OpenTelemetry tracing to the agent lifecycle.
Tracer接口interfaceio.agentscope.core.tracing
定义追踪器契约的接口。
@deprecated since 2.0.0.
TracerRegistry类classio.agentscope.core.tracing
追踪器注册表,对智能体行为进行评测、追踪与可观测性分析。
Registry for the global `Tracer` instance.
ExceptionUtils类classio.agentscope.core.util
异常 Utils,为框架提供通用类型与基础能力。
Utility methods for exception handling.
JacksonJsonCodec类classio.agentscope.core.util
Jackson JSON 编解码器,为框架提供通用类型与基础能力。
Jackson-based implementation of `JsonCodec`.
JsonCodec接口interfaceio.agentscope.core.util
定义 JSON 编解码器契约的接口。
Interface for JSON serialization and deserialization operations.
JsonException类classio.agentscope.core.util
JSON 异常,表示执行过程中的错误。
Runtime exception for JSON processing errors.
JsonSchemaUtils类classio.agentscope.core.util
JSON 模式 Utils,为框架提供通用类型与基础能力。
Utility class for JSON Schema operations.
JsonUtils类classio.agentscope.core.util
JSON Utils,为框架提供通用类型与基础能力。
Utility class for accessing the global `JsonCodec` instance.
MessageUtils类classio.agentscope.core.util
消息 Utils,为框架提供通用类型与基础能力。
Utility methods for message processing and extraction.
TypeUtils类classio.agentscope.core.util
类型 Utils,为框架提供通用类型与基础能力。
Utility class for type-safe operations.