pub struct RecorderModel { /* private fields */ }Implementations§
Source§impl RecorderModel
impl RecorderModel
pub fn new( inner: Arc<dyn Model>, config: Option<RecorderConfig>, engine_version: &str, ) -> Self
Wrap inner sharing shared with every other model recording into the
same root — the constructor multi-provider routing uses, so a session’s
calls land in one recording however many providers served them.
pub fn with_provider_id(self, provider_id: impl Into<String>) -> Self
Source§impl RecorderModel
impl RecorderModel
Sourcepub fn default_divergence() -> Divergence
pub fn default_divergence() -> Divergence
The divergence policy a harness should ask for rather than re-derive.
Public because a harness that builds an explicit RecorderConfig
never reaches RecorderModel::env_config, and re-deriving this is
how the equivalent flag once shipped as a silent no-op.
Overrides, highest precedence first: AGIX_REPLAY_STRICT=1, then
AGIX_REPLAY_WARN=1.
Trait Implementations§
Source§impl Model for RecorderModel
impl Model for RecorderModel
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 RecorderModel
impl !UnwindSafe for RecorderModel
impl Forget for RecorderModel
impl Freeze for RecorderModel
impl Move for RecorderModel
impl Send for RecorderModel
impl Sync for RecorderModel
impl Unpin for RecorderModel
impl UnsafeUnpin for RecorderModelwhere
*const ArcInner<dyn Model> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Model>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Recorder> is !null: UnsafeUnpin,
PhantomData<ArcInner<Recorder>>: UnsafeUnpin,
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