e50e272
//! AI 运行核心。
//!
//! 本 crate 是全平台唯一发起 LLM 请求的地方:一个 OpenAI 兼容客户端
//! ([`client::AgentClient`])访问 `[ai].model` 指定的**单一模型**,一组任务
//! 执行器([`AgentService`])把模型输出落库为评审记录、仓库总结与 release 文案。
//!
//! 队列协议定义在 [`ci_protocol::ai::AgentTask`],生产侧投递入口是
//! `git::sync::ai_task::submit_ai_task`,消费侧为 `app/aihost`。
pub mod bot;
pub mod client;
pub mod context;
pub mod diff;
mod language_pref;
pub mod languages;
pub mod notifications;
pub mod notify;
pub mod prompt;
pub mod queue;
mod service;
pub use client::{AgentClient, AgentCompletion, AgentError, AgentResult, extract_json};
pub use languages::{
display_name as language_display_name, normalize as normalize_language,
supported_codes as supported_languages,
};
pub use prompt::{ReleaseNotesOutput, ReviewFinding, ReviewOutput, SummaryOutput};
pub use service::AgentService;
/// 便捷别名:AI 队列任务载荷。
pub use ci_protocol::ai::AgentTask;