pub struct AgentRoute {
pub name: String,
pub config: ProviderConfig,
pub provider: Arc<dyn ChatProvider>,
}Expand description
One route as the agent holds it: the name it answers to, the settings it was built from and the provider that talks to it. Routes are built once, when the agent is.
Fields§
§name: String§config: ProviderConfig§provider: Arc<dyn ChatProvider>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AgentRoute
impl !UnwindSafe for AgentRoute
impl Forget for AgentRoute
impl Freeze for AgentRoutewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<RouteConfig>: Freeze,
*const ArcInner<dyn ChatProvider> is !null: Freeze,
PhantomData<ArcInner<dyn ChatProvider>>: Freeze,
impl Move for AgentRoute
impl Send for AgentRoute
impl Sync for AgentRoute
impl Unpin for AgentRoute
impl UnsafeUnpin for AgentRoutewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<RouteConfig>: UnsafeUnpin,
*const ArcInner<dyn ChatProvider> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ChatProvider>>: UnsafeUnpin,
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