pub enum PhaseSource {
Provider,
Derived,
}Expand description
Where a message’s ExecutionPhase came from.
Only some providers report a phase. For the rest the runtime infers one from tool-call presence, where “commentary” means nothing more than “this message called tools” — so a text-only preamble is indistinguishable from a final answer. Those are different claims, and a consumer cannot tell them apart from the phase value alone, so the source travels with it.
Variants§
Provider
The provider reported this phase on the wire.
Derived
The runtime inferred it from tool-call presence. A weak signal.
Implementations§
Source§impl PhaseSource
impl PhaseSource
Trait Implementations§
Source§impl Clone for PhaseSource
impl Clone for PhaseSource
Source§fn clone(&self) -> PhaseSource
fn clone(&self) -> PhaseSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhaseSource
Source§impl Debug for PhaseSource
impl Debug for PhaseSource
Source§impl<'de> Deserialize<'de> for PhaseSource
impl<'de> Deserialize<'de> for PhaseSource
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PhaseSource
Source§impl PartialEq for PhaseSource
impl PartialEq for PhaseSource
Source§impl Serialize for PhaseSource
impl Serialize for PhaseSource
impl StructuralPartialEq for PhaseSource
Auto Trait Implementations§
impl Freeze for PhaseSource
impl RefUnwindSafe for PhaseSource
impl Send for PhaseSource
impl Sync for PhaseSource
impl Unpin for PhaseSource
impl UnsafeUnpin for PhaseSource
impl UnwindSafe for PhaseSource
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