pub struct ResponseTextMeta {
pub id: Option<String>,
pub status: Option<String>,
pub phase: Option<String>,
pub provider_payload: Option<String>,
pub origin_provider: Option<String>,
pub origin_model: Option<String>,
}Fields§
§id: Option<String>§status: Option<String>§phase: Option<String>Opaque provider replay phase tag. Provider crates own the wire
vocabulary (e.g. OpenAI Responses "commentary"/"final_answer");
the kernel treats it as an opaque string and round-trips it verbatim.
provider_payload: Option<String>Provider-owned payload needed to replay this text part on a future request. The kernel stores it opaquely and providers decide whether it is valid for their next wire request.
origin_provider: Option<String>§origin_model: Option<String>Implementations§
Source§impl ResponseTextMeta
impl ResponseTextMeta
pub fn phase_is(&self, expected: &str) -> bool
pub fn is_final_answer_phase(&self) -> bool
pub fn is_commentary_phase(&self) -> bool
Trait Implementations§
Source§impl Clone for ResponseTextMeta
impl Clone for ResponseTextMeta
Source§fn clone(&self) -> ResponseTextMeta
fn clone(&self) -> ResponseTextMeta
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 moreSource§impl Debug for ResponseTextMeta
impl Debug for ResponseTextMeta
Source§impl Default for ResponseTextMeta
impl Default for ResponseTextMeta
Source§fn default() -> ResponseTextMeta
fn default() -> ResponseTextMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseTextMeta
impl<'de> Deserialize<'de> for ResponseTextMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResponseTextMeta
Source§impl PartialEq for ResponseTextMeta
impl PartialEq for ResponseTextMeta
Source§fn eq(&self, other: &ResponseTextMeta) -> bool
fn eq(&self, other: &ResponseTextMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResponseTextMeta
impl Serialize for ResponseTextMeta
impl StructuralPartialEq for ResponseTextMeta
Auto Trait Implementations§
impl Freeze for ResponseTextMeta
impl RefUnwindSafe for ResponseTextMeta
impl Send for ResponseTextMeta
impl Sync for ResponseTextMeta
impl Unpin for ResponseTextMeta
impl UnsafeUnpin for ResponseTextMeta
impl UnwindSafe for ResponseTextMeta
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