pub enum ProviderBackend {
Http(LlmClient),
Codex(CodexClient),
}Expand description
One provider’s concrete execution backend.
Variants§
Http(LlmClient)
Codex(CodexClient)
Implementations§
Source§impl ProviderBackend
impl ProviderBackend
pub fn model(&self) -> &str
Sourcepub fn request_identity(&self) -> &str
pub fn request_identity(&self) -> &str
Request discriminator independent of provider identity and model.
pub fn temperature(&self) -> Option<f32>
pub async fn complete_json( &self, system_prompt: &str, user_content: &str, ) -> Result<Extracted, LlmError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProviderBackend
impl RefUnwindSafe for ProviderBackend
impl Send for ProviderBackend
impl Sync for ProviderBackend
impl Unpin for ProviderBackend
impl UnsafeUnpin for ProviderBackend
impl UnwindSafe for ProviderBackend
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