pub struct ThreadSafeAgentState {
pub id: i32,
pub agent: Arc<BoxAgent<'static>>,
pub provider: String,
pub model: String,
pub failure_count: u32,
pub max_failures: u32,
}Expand description
线程安全的 Agent 状态
Fields§
§id: i32§agent: Arc<BoxAgent<'static>>§provider: String§model: String§failure_count: u32§max_failures: u32Trait Implementations§
Source§impl Clone for ThreadSafeAgentState
impl Clone for ThreadSafeAgentState
Source§fn clone(&self) -> ThreadSafeAgentState
fn clone(&self) -> ThreadSafeAgentState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ThreadSafeAgentState
impl !RefUnwindSafe for ThreadSafeAgentState
impl Send for ThreadSafeAgentState
impl Sync for ThreadSafeAgentState
impl Unpin for ThreadSafeAgentState
impl !UnwindSafe for ThreadSafeAgentState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more