包package
io.agentscope.core.agentio.agentscope.core.agent
package io.agentscope.core.agent
io.agentscope.core.agent 属于智能体运行时,推理、工具调用与会话执行。 该包共收录 18 个公开类型。
io.agentscope.core.agent belongs to the Agent runtime layer and contains 18 public types.
接口Interfaces
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
Agent | 接口interface | 定义智能体契约的接口。 Complete agent interface combining all capabilities. |
CallableAgent | 接口interface | 定义 Callable 智能体契约的接口。 Interface for agents that can be called to process messages. |
ObservableAgent | 接口interface | 定义 Observable 智能体契约的接口。 Interface for agents that can observe messages without generating replies. |
StreamableAgent | 接口interface | 定义 Streamable 智能体契约的接口。 Interface for agents that support streaming events during execution. |
SubagentEventBus | 接口interface | 定义子智能体事件总线契约的接口。 A lightweight channel that allows synchronously-invoked subagents to push their `Event`s
into the parent agent's `Flux<Event>` stream. |
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
AgentBase | 类class | 智能体生命周期基类 Abstract base class for all agents in the AgentScope framework. |
AgentRun | 类class | 智能体运行,驱动智能体的推理、工具调用与会话执行。 A single-use, lazy execution handle. |
Event | 类class | 事件,描述执行过程中的事件。 An event emitted during streaming agent execution. |
EventSource | 类class | 事件来源,驱动智能体的推理、工具调用与会话执行。 @deprecated since 2.0.0. |
RunControl | 类class | 运行 Control,驱动智能体的推理、工具调用与会话执行。 Runtime-only control for one execution; never stored in conversation state. |
RuntimeContext | 类class | 单次调用上下文 Per-call metadata for an agent run: session-scoped fields plus a thread-safe attribute bag and
an optional `ToolExecutionContext` (tool-POJO / DI layer). |
StreamingHook | 类class | 流式钩子,驱动智能体的推理、工具调用与会话执行。 Internal hook implementation for streaming events. |
StreamOptions | 类class | 用于`Agent#stream`API的配置选项。 Configuration options for the `Agent#stream` API. |
枚举Enums
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
EventType | 枚举enum | 定义事件类型的枚举。 Types of events emitted during agent execution. |