Files
Genarrative/server-rs/crates/agent-runtime-core/src/lib.rs
T
AIGameCreator App d4075c3423
Project CI / Frontend tests (push) Failing after 3m43s
Project CI / Native shell tests (push) Failing after 3m36s
Project CI / Repository checks (push) Failing after 4m36s
Project CI / Backend tests (push) Successful in 8m36s
抽取通用多智能体运行时与可扩展Provider
新增纯 Rust agent-runtime-core,提供运行时契约、能力注册、Agent 目录、Profile、完成策略与零重放恢复
抽取中立 LLM Provider 协议与可扩展 Registry,并适配 OpenAI Responses、OpenAI Chat 和 Anthropic
将 AGC interaction、Provider 控制、Runner 生命周期、steering 与 tool-plan handoff 接入统一运行时边界
补充非游戏消费者、Provider 网络闭环、Runtime 恢复及 GUI Runner owner 测试
同步 Cargo/npm 门禁、Runtime 技术方案和项目共享记忆
2026-07-30 16:15:51 +08:00

40 lines
1.8 KiB
Rust

//! Pure execution kernel and contracts shared by local multi-agent runtime hosts.
//!
//! The kernel owns deterministic lifecycle, lane, action and all-join decisions,
//! while product hosts inject persistence, time and capability execution. It does
//! not depend on provider DTOs, desktop frameworks, prompts, permissions or any
//! product domain.
mod capability;
mod catalog;
mod completion;
mod contract;
mod lifecycle;
mod profile;
mod provider;
mod runtime;
pub use capability::{
CapabilityDefinition, CapabilityRegistry, CapabilityRegistryError, CapabilityRegistryErrorKind,
};
pub use catalog::{AgentCatalog, AgentDescriptor};
pub use completion::{CompletionBlocker, CompletionDecision, CompletionPolicy};
pub use contract::{ContractError, ContractErrorKind};
pub use lifecycle::{RecoverableTaskState, RecoveryStep, next_recovery_step};
pub use profile::{RunProfileCatalog, RunProfileDefinition};
pub use provider::{
ProviderAdapter, ProviderCapability, ProviderContentPart, ProviderDescriptor, ProviderError,
ProviderErrorKind, ProviderFuture, ProviderInstanceId, ProviderMessage, ProviderProtocolId,
ProviderReasoningEffort, ProviderRegistry, ProviderRequest, ProviderResponse, ProviderRole,
ProviderStreamEvent, ProviderStreamFuture, ProviderStreamSink, ProviderTarget,
ProviderTextVerbosity, ProviderToolCall, ProviderToolChoice, ProviderToolDefinition,
ProviderUsage,
};
pub use runtime::{
ActionExecutionOutcome, ActionRecord, ActionStatus, CompletionAttempt, DelegationGroup,
JoinMode, ObservationStatus, RUNTIME_SNAPSHOT_SCHEMA_VERSION, RunRecord, RunSpec, RunStatus,
RunTerminalResult, RuntimeAction, RuntimeClock, RuntimeEngine, RuntimeError, RuntimeErrorKind,
RuntimeEvent, RuntimeEventKind, RuntimeObservation, RuntimeSnapshot, RuntimeStore,
ToolExecution, ToolHost, ToolOutput,
};