rig_extra/lib.rs
1pub mod extra_providers;
2mod json_utils;
3pub mod error;
4pub mod rand_agent;
5pub mod simple_rand_builder;
6
7pub use rig::*;
8/// 导出 backon 实现失败重试
9pub use backon::*;
10
11#[derive(Debug,Clone)]
12pub struct AgentInfo{
13 pub id: i32,
14 /// 提供者
15 pub provider: String,
16 /// 模型名称
17 pub model: String,
18 /// 失败次数
19 pub failure_count: u32,
20 /// 最大失败次数
21 pub max_failures: u32,
22}