pub struct LlmComponent { /* private fields */ }Implementations§
Source§impl LlmComponent
impl LlmComponent
pub fn new(config: LlmGlobalConfig) -> Result<Self, CamelError>
pub fn from_parts(config: LlmGlobalConfig, providers: ProviderMap) -> Self
pub fn providers(&self) -> &ProviderMap
pub fn config(&self) -> &LlmGlobalConfig
Trait Implementations§
Source§impl Component for LlmComponent
impl Component for LlmComponent
Source§fn create_endpoint(
&self,
uri: &str,
_ctx: &dyn ComponentContext,
) -> Result<Box<dyn Endpoint>, CamelError>
fn create_endpoint( &self, uri: &str, _ctx: &dyn ComponentContext, ) -> Result<Box<dyn Endpoint>, CamelError>
Create an endpoint from a URI string.
Auto Trait Implementations§
impl !RefUnwindSafe for LlmComponent
impl !UnwindSafe for LlmComponent
impl Freeze for LlmComponent
impl Send for LlmComponent
impl Sync for LlmComponent
impl Unpin for LlmComponent
impl UnsafeUnpin for LlmComponent
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