#[non_exhaustive]pub struct SpanSearchResult {
pub model: String,
pub score: f32,
pub session_id: String,
pub snippet: String,
pub span_id: String,
pub started_at: String,
pub trace_id: String,
pub user_prompt: String,
}Expand description
One span hit with its trace/turn context.
Models the contract’s SpanSearchResult schema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: StringThe contract’s model.
score: f32The contract’s score.
session_id: StringThe contract’s session_id.
snippet: StringSnippet previews the matched span’s delta-only text.
span_id: StringThe contract’s span_id.
started_at: StringThe contract’s started_at, an RFC 3339 timestamp.
trace_id: StringThe contract’s trace_id.
user_prompt: StringThe prompt of the turn (trace) the span belongs to. Served explicitly (not omitempty) so a synthetic turn’s empty prompt reaches consumers as “” rather than a dropped key — see TraceItem.
Trait Implementations§
Source§impl Clone for SpanSearchResult
impl Clone for SpanSearchResult
Source§fn clone(&self) -> SpanSearchResult
fn clone(&self) -> SpanSearchResult
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 ContractModel for SpanSearchResult
impl ContractModel for SpanSearchResult
Source§impl Debug for SpanSearchResult
impl Debug for SpanSearchResult
Source§impl Default for SpanSearchResult
impl Default for SpanSearchResult
Source§fn default() -> SpanSearchResult
fn default() -> SpanSearchResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpanSearchResultwhere
SpanSearchResult: Default,
impl<'de> Deserialize<'de> for SpanSearchResultwhere
SpanSearchResult: Default,
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
Source§impl PartialEq for SpanSearchResult
impl PartialEq for SpanSearchResult
Source§impl Serialize for SpanSearchResult
impl Serialize for SpanSearchResult
impl StructuralPartialEq for SpanSearchResult
Auto Trait Implementations§
impl Freeze for SpanSearchResult
impl RefUnwindSafe for SpanSearchResult
impl Send for SpanSearchResult
impl Sync for SpanSearchResult
impl Unpin for SpanSearchResult
impl UnsafeUnpin for SpanSearchResult
impl UnwindSafe for SpanSearchResult
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