File size: 562 Bytes
d90101d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
mod anthropic;
mod bedrock;
mod bedrock_cache;
mod bedrock_sanitize_ids;
mod chat;
mod event;
mod google;
#[cfg(test)]
mod mock_server;
mod openai;
mod openai_responses;
mod opencode;
mod provider_repo;
mod retry;
mod utils;

pub use chat::*;
pub use provider_repo::*;

/// Trait for converting types into domain types
pub(crate) trait IntoDomain {
    type Domain;
    fn into_domain(self) -> Self::Domain;
}

/// Trait for converting from domain types
trait FromDomain<T> {
    fn from_domain(value: T) -> anyhow::Result<Self>
    where
        Self: Sized;
}