Expand description
Agent lifecycle and execution management
This module provides runtime infrastructure for managing agent execution.
§Main Components
AgentBuilder: Builder pattern for constructing agentsSimpleRuntime: Multi-agent coordination (non-dora)AgentRuntime: Dora-rs integration (withdorafeature)
§Example
ⓘ
use mofa_sdk::runtime::{AgentBuilder, SimpleRuntime};
let runtime = SimpleRuntime::new();
runtime.register_agent(metadata, config, "worker").await?;Structs§
- Agent
Builder - 智能体构建器 - 提供流式 API
- Agent
Registry - Agent 注册中心
- Agent
Runner - 统一 Agent 运行器
- Agent
Runner Builder - AgentRunner 构建器
- Framework
Config - 框架核心配置
- Registry
Stats - 注册中心统计
- Runner
Stats - 运行器统计信息
- Simple
Runtime - 简单运行时 - 管理多个智能体的协同运行(非 dora 版本)
Enums§
- Runner
State - 运行器状态
Traits§
- Agent
Factory - Agent 工厂 Trait
Functions§
- run_
agents - 创建并运行 Agent(多次执行)