rig_extra/
lib.rs

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