pub struct TelemetryModel { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Model for TelemetryModel
impl Model for TelemetryModel
Source§fn provenance(&self) -> Option<String>
fn provenance(&self) -> Option<String>
The provider id this client was built for, stamped on the reasoning
it produces so a later request to a different provider does not echo
it back. A client that routes between providers has none of its own:
each of its calls names its provider with
ModelEvent::Served.
None for a client built outside a provider route; reasoning from
such a client carries no provenance and is sent wherever it goes.Source§fn stream<'life0, 'async_trait>(
&'life0 self,
prompt_blocks: Vec<PromptBlock>,
tools: Vec<ToolDef>,
messages: Vec<ModelMessage>,
params: StreamParams,
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<ModelStream, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream<'life0, 'async_trait>(
&'life0 self,
prompt_blocks: Vec<PromptBlock>,
tools: Vec<ToolDef>,
messages: Vec<ModelMessage>,
params: StreamParams,
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<ModelStream, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stream a response from the LLM. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TelemetryModel
impl !UnwindSafe for TelemetryModel
impl Forget for TelemetryModel
impl Freeze for TelemetryModel
impl Move for TelemetryModel
impl Send for TelemetryModel
impl Sync for TelemetryModel
impl Unpin for TelemetryModel
impl UnsafeUnpin for TelemetryModel
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