pub struct Kimi { /* private fields */ }Expand description
Kimi’s native Chat Completions provider.
Implementations§
Trait Implementations§
Source§impl Model for Kimi
impl Model for Kimi
Source§fn supports_image_input(&self) -> bool
fn supports_image_input(&self) -> bool
Reports whether this provider accepts native image input.
Source§fn prompt_cache_capability(&self) -> PromptCacheMode
fn prompt_cache_capability(&self) -> PromptCacheMode
Reports the provider’s prompt-cache mode without exposing transport details.
Source§fn respond<'a>(
&'a self,
request: ModelRequest<'a>,
events: ModelEventSink,
) -> BoxFuture<'a, Result<ModelOutput>>
fn respond<'a>( &'a self, request: ModelRequest<'a>, events: ModelEventSink, ) -> BoxFuture<'a, Result<ModelOutput>>
Produces one streamed response. Read more
Source§fn supports_tool_image_input(&self) -> bool
fn supports_tool_image_input(&self) -> bool
Whether images can remain associated with their originating tool call.
Source§fn supports_realtime_voice(&self) -> bool
fn supports_realtime_voice(&self) -> bool
Reports whether this transport can negotiate a provider-owned realtime voice call.
Source§fn start_realtime_voice(
&self,
_request: RealtimeVoiceRequest,
) -> BoxFuture<'_, Result<RealtimeVoiceCall>>
fn start_realtime_voice( &self, _request: RealtimeVoiceRequest, ) -> BoxFuture<'_, Result<RealtimeVoiceCall>>
Negotiates voice media without exposing provider credentials to the frontend.
Source§fn tool_discovery(&self) -> ToolDiscoveryMode
fn tool_discovery(&self) -> ToolDiscoveryMode
Reports how this route makes deferred tool schemas callable.
Source§fn pricing(&self) -> Option<ModelPricing>
fn pricing(&self) -> Option<ModelPricing>
Returns current token pricing when this provider owns a known billing schedule.
Source§fn fallback_transport<'a>(
&'a self,
_session_id: &'a str,
) -> BoxFuture<'a, Result<bool>>
fn fallback_transport<'a>( &'a self, _session_id: &'a str, ) -> BoxFuture<'a, Result<bool>>
Switches a session to its fallback transport once, without sending a request. Read more
Source§fn compaction_endpoint(&self) -> bool
fn compaction_endpoint(&self) -> bool
Reports whether this provider exposes a native compaction endpoint.
Source§fn compact<'a>(
&'a self,
_request: CompactRequest<'a>,
) -> BoxFuture<'a, Result<CompactOutput>>
fn compact<'a>( &'a self, _request: CompactRequest<'a>, ) -> BoxFuture<'a, Result<CompactOutput>>
Calls the native history-compaction endpoint when advertised.
Auto Trait Implementations§
impl !RefUnwindSafe for Kimi
impl !UnwindSafe for Kimi
impl Freeze for Kimi
impl Send for Kimi
impl Sync for Kimi
impl Unpin for Kimi
impl UnsafeUnpin for Kimi
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