pub struct AtlasCloudProvider;Expand description
Provider for AtlasCloud-hosted models (atlascloud/* slugs), served behind the
OpenAI-compatible /chat/completions schema.
Why: gives build_request an AtlasCloud-correct normalisation profile so the
wire payload matches what AtlasCloud accepts (no OpenRouter-only directives,
no cache_control breakpoints).
What: zero-sized marker type implementing Provider.
Test: atlascloud::tests::*.
Implementations§
Trait Implementations§
Source§impl Clone for AtlasCloudProvider
impl Clone for AtlasCloudProvider
Source§fn clone(&self) -> AtlasCloudProvider
fn clone(&self) -> AtlasCloudProvider
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AtlasCloudProvider
impl Debug for AtlasCloudProvider
Source§impl Default for AtlasCloudProvider
impl Default for AtlasCloudProvider
Source§fn default() -> AtlasCloudProvider
fn default() -> AtlasCloudProvider
Source§impl Provider for AtlasCloudProvider
impl Provider for AtlasCloudProvider
Source§fn map_tool_choice(&self, choice: ToolChoice) -> Value
fn map_tool_choice(&self, choice: ToolChoice) -> Value
Translate a neutral ToolChoice into OpenAI-dialect wire JSON.
Why: AtlasCloud uses the OpenAI tool_choice spelling (string policies +
{type:function, function:{name}} object), identical to OpenRouter,
Fireworks, and Together.
What: the OpenAI mapping.
Test: atlascloud::tests::map_tool_choice_scalars.
Source§fn extract_usage(&self, response: &ChatResponse) -> TokenUsage
fn extract_usage(&self, response: &ChatResponse) -> TokenUsage
Extract canonical token usage from an AtlasCloud response.
Why: AtlasCloud returns the standard OpenAI usage block, already
normalised into ChatResponse.usage by the shared adapter’s parse.
What: delegates to ChatResponse::token_usage (identical to the other
OpenAI-dialect providers).
Test: atlascloud::tests::extract_usage_maps_fields.
Source§fn supports_native_tools(&self) -> bool
fn supports_native_tools(&self) -> bool
Source§fn supports_prompt_caching(&self) -> bool
fn supports_prompt_caching(&self) -> bool
cache_control
prompt-cache breakpoints (#2156). Read moreSource§fn wants_detailed_usage(&self) -> bool
fn wants_detailed_usage(&self) -> bool
Auto Trait Implementations§
impl Freeze for AtlasCloudProvider
impl RefUnwindSafe for AtlasCloudProvider
impl Send for AtlasCloudProvider
impl Sync for AtlasCloudProvider
impl Unpin for AtlasCloudProvider
impl UnsafeUnpin for AtlasCloudProvider
impl UnwindSafe for AtlasCloudProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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