包package legacy
agentscope-runtime-engine
AgentScope Runtime Core · 1.0.2
Java Implementation for AgentScope Runtime
| groupIdGroupId | io.agentscope |
|---|---|
| 版本Version | 1.0.2 |
| 版本线Line | legacy |
| 分类Category | runtime |
| 包Packages | 9 |
| 类型Types | 41 top-level / 43 total |
包Packages
类型Types
| 类型Type | 种类Kind | 包Package | 说明Description |
|---|---|---|---|
DeployManager | 接口interface | io.agentscope.runtime.engine | 定义部署管理器契约的接口。 An interface in io.agentscope.runtime.engine that defines the contract for components that deploys, schedules and serves agents. |
Runner | 类class | io.agentscope.runtime.engine | 运行器,承载智能体的部署、调度与服务化运行。 Runner class that proxies calls to AgentAdapter. |
ResponseBuilder | 类class | io.agentscope.runtime.engine.helpers | 响应构建器,用于构建并配置目标实例。 Response Builder. |
AgentRequest | 类class | io.agentscope.runtime.engine.schemas | 智能体请求,承载智能体的部署、调度与服务化运行。 Agent request model. |
AgentResponse | 类class | io.agentscope.runtime.engine.schemas | 智能体响应,承载智能体的部署、调度与服务化运行。 Agent response class that extends BaseResponse. |
AudioContent | 类class | io.agentscope.runtime.engine.schemas | 音频内容,承载智能体的部署、调度与服务化运行。 Audio content in a message. |
BaseRequest | 类class | io.agentscope.runtime.engine.schemas | 基类请求,承载智能体的部署、调度与服务化运行。 Base request model. |
BaseResponse | 类class | io.agentscope.runtime.engine.schemas | 基类响应,承载智能体的部署、调度与服务化运行。 Base response class for agent responses. |
Content | 类class | io.agentscope.runtime.engine.schemas | 内容 in 消息的基类。 Base class for content in messages. |
ContentType | 类class | io.agentscope.runtime.engine.schemas | 内容类型,承载智能体的部署、调度与服务化运行。 Content type constants. |
DataContent | 类class | io.agentscope.runtime.engine.schemas | 数据内容,承载智能体的部署、调度与服务化运行。 Data content in a message (for function calls, etc.). |
Error | 类class | io.agentscope.runtime.engine.schemas | 错误,承载智能体的部署、调度与服务化运行。 Error information in events. |
Event | 类class | io.agentscope.runtime.engine.schemas | 事件 in 智能体运行时的基类。 Base class for events in the agent runtime. |
FunctionCall | 类class | io.agentscope.runtime.engine.schemas | 表示函数调用 in 消息。 Represents a function call in a message. |
FunctionCallOutput | 类class | io.agentscope.runtime.engine.schemas | 表示输出的函数调用。 Represents the output of a function call. |
ImageContent | 类class | io.agentscope.runtime.engine.schemas | 图像内容,承载智能体的部署、调度与服务化运行。 Image content in a message. |
Message | 类class | io.agentscope.runtime.engine.schemas | 表示消息 in 智能体运行时。 Represents a message in the agent runtime. |
MessageType | 类class | io.agentscope.runtime.engine.schemas | 消息类型,承载智能体的部署、调度与服务化运行。 Message type constants. |
Role | 类class | io.agentscope.runtime.engine.schemas | 角色,承载智能体的部署、调度与服务化运行。 Role constants for messages. |
RunStatus | 类class | io.agentscope.runtime.engine.schemas | 运行状态,承载智能体的部署、调度与服务化运行。 Run status constants for agent events. |
SequenceNumberGenerator | 类class | io.agentscope.runtime.engine.schemas | Sequence 数量 Generator,承载智能体的部署、调度与服务化运行。 A simple sequence number generator for streaming events. |
Session | 类class | io.agentscope.runtime.engine.schemas | 会话,承载智能体的部署、调度与服务化运行。 Session class, represents a conversation session
Contains conversation history, including all messages, uniquely identified by ID |
TextContent | 类class | io.agentscope.runtime.engine.schemas | 文本内容,承载智能体的部署、调度与服务化运行。 Text content in a message. |
Service | 接口interface | io.agentscope.runtime.engine.services | 服务的抽象基类。 Abstract base class for services. |
ServiceWithLifecycleManager | 类class | io.agentscope.runtime.engine.services | 服务使用生命周期管理器,承载智能体的部署、调度与服务化运行。 Base class for services that want lifecycle manager functionality. |
InMemoryStateService | 类class | io.agentscope.runtime.engine.services.agent_state | In 记忆状态服务,承载智能体的部署、调度与服务化运行。 In-memory implementation of StateService using maps
for sparse round storage. |
StateService | 类class | io.agentscope.runtime.engine.services.agent_state | 智能体状态管理服务的抽象基类。 Abstract base class for agent state management services. |
InMemoryMemoryService | 类class | io.agentscope.runtime.engine.services.memory.persistence.memory.service | In 记忆记忆服务,在多次调用之间保存和恢复会话与记忆数据。 In-memory implementation of memory service |
Mem0MemoryService | 类class | io.agentscope.runtime.engine.services.memory.persistence.memory.service | Mem 0 记忆服务,在多次调用之间保存和恢复会话与记忆数据。 Mem0-based implementation of memory service
Uses Mem0 HTTP API for persistent storage with search capabilities
To get the API key, please refer to Mem0 Documentation |
RedisMemoryService | 类class | io.agentscope.runtime.engine.services.memory.persistence.memory.service | Redis 记忆服务,在多次调用之间保存和恢复会话与记忆数据。 Redis-based memory service implementation |
SimpleEmbeddingService | 类class | io.agentscope.runtime.engine.services.memory.persistence.memory.service | 简单向量化服务,在多次调用之间保存和恢复会话与记忆数据。 Simple text embedding service implementation
Uses TF-IDF and term frequency statistics as vector representation |
TableStoreMemoryService | 类class | io.agentscope.runtime.engine.services.memory.persistence.memory.service | Table 存储记忆服务,在多次调用之间保存和恢复会话与记忆数据。 TableStore-based implementation of memory service
Uses Aliyun TableStore KnowledgeStore for persistent storage with search capabilities |
InMemorySessionHistoryService | 类class | io.agentscope.runtime.engine.services.memory.persistence.session | In 记忆会话历史服务,在多次调用之间保存和恢复会话与记忆数据。 In-memory implementation of session history service
Stores all session data in dictionary, suitable for development, testing and scenarios that don't require persistence |
RedisSessionHistoryService | 类class | io.agentscope.runtime.engine.services.memory.persistence.session | Redis 会话历史服务,在多次调用之间保存和恢复会话与记忆数据。 Redis-based session history service implementation |
TableStoreSessionHistoryService | 类class | io.agentscope.runtime.engine.services.memory.persistence.session | Table 存储会话历史服务,在多次调用之间保存和恢复会话与记忆数据。 TableStore-based implementation of session history service
Uses Aliyun TableStore MemoryStore for persistent session and message storage |
EmbeddingService | 接口interface | io.agentscope.runtime.engine.services.memory.service | 文本向量化服务。 Text embedding service interface |
MemoryService | 接口interface | io.agentscope.runtime.engine.services.memory.service | 定义记忆服务契约的接口。 Memory service interface
Used for storing and retrieving long-term memories, supports database or in-memory storage
Memory is organized by user ID and supports two management strategies:
1. |
SessionHistoryService | 接口interface | io.agentscope.runtime.engine.services.memory.service | 定义会话历史服务契约的接口。 Session history management service interface
Defines standard interfaces for creating, retrieving, updating, and deleting dialogue sessions |
Service | 接口interface | io.agentscope.runtime.engine.shared | 定义服务契约的接口。 Service interface that defines basic methods that all services must implement |
ServiceManager | 类class | io.agentscope.runtime.engine.shared | 服务管理器,承载智能体的部署、调度与服务化运行。 Abstract base class for service managers
Provides common functionality for service registration and lifecycle management |
ServiceWithLifecycleManager | 类class | io.agentscope.runtime.engine.shared | 服务使用生命周期管理器,承载智能体的部署、调度与服务化运行。 Base class for services with lifecycle management capabilities
Combines Service interface and lifecycle management functionality, providing a convenient base class for most service implementations |