pub struct DeepSeekIntegrationExample;Expand description
Example: DeepSeek LLM integration
Demonstrates:
- Using
DeepSeek’s cost-effective AI models - Specialized models (Chat, Coder, Reasoner)
- Multi-provider setup with
DeepSeek - Cost optimization with
DeepSeek
Implementations§
Source§impl DeepSeekIntegrationExample
impl DeepSeekIntegrationExample
Sourcepub async fn run_basic(api_key: &str) -> Result<()>
pub async fn run_basic(api_key: &str) -> Result<()>
Run the DeepSeek integration example with basic usage
Sourcepub async fn run_with_coder(api_key: &str) -> Result<()>
pub async fn run_with_coder(api_key: &str) -> Result<()>
Run example with DeepSeek Coder (optimized for code tasks)
Sourcepub async fn run_with_fallback(
deepseek_key: &str,
openai_key: &str,
) -> Result<()>
pub async fn run_with_fallback( deepseek_key: &str, openai_key: &str, ) -> Result<()>
Run example with multi-provider setup (DeepSeek + fallback)
Sourcepub async fn run_cost_optimized(_api_key: &str) -> Result<()>
pub async fn run_cost_optimized(_api_key: &str) -> Result<()>
Run example with cost-optimized routing using DeepSeek
Sourcepub async fn run_model_comparison(api_key: &str) -> Result<()>
pub async fn run_model_comparison(api_key: &str) -> Result<()>
Run example showing all DeepSeek model options
Sourcepub async fn run_cost_comparison() -> Result<()>
pub async fn run_cost_comparison() -> Result<()>
Run example comparing cost across all providers
Auto Trait Implementations§
impl Freeze for DeepSeekIntegrationExample
impl RefUnwindSafe for DeepSeekIntegrationExample
impl Send for DeepSeekIntegrationExample
impl Sync for DeepSeekIntegrationExample
impl Unpin for DeepSeekIntegrationExample
impl UnwindSafe for DeepSeekIntegrationExample
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more