pub struct PayloadBundle {
pub capture_id: String,
pub capture_kind: CaptureKind,
pub thread_id: ThreadId,
pub turn_number: usize,
pub provider_name: String,
pub provider_id: String,
pub span_is_recording: bool,
pub request_model: String,
pub response_model: Option<String>,
pub system_instructions: Option<Value>,
pub input_messages: Value,
pub output_messages: Value,
}Available on crate feature
otel only.Expand description
Structured payload bundle passed to the observability store.
Contains the GenAI semantic-convention-aligned payloads for a single
LLM operation, plus metadata needed for external persistence.
Fields§
§capture_id: StringOpaque SDK-generated identifier, unique per capture attempt.
capture_kind: CaptureKindDiscriminator for the type of LLM operation.
thread_id: ThreadIdThread this operation belongs to.
turn_number: usizeTurn number within the current invocation.
provider_name: StringCanonical gen_ai.provider.name value.
provider_id: StringRaw SDK provider identifier (e.g. "openai-responses").
span_is_recording: boolWhether the current LLM span is recording.
request_model: StringRequest model string.
response_model: Option<String>Response model string, if available.
system_instructions: Option<Value>System instructions as semconv JSON value, if present.
input_messages: ValueInput messages as semconv JSON value.
output_messages: ValueOutput messages as semconv JSON value.
Trait Implementations§
Source§impl Clone for PayloadBundle
impl Clone for PayloadBundle
Source§fn clone(&self) -> PayloadBundle
fn clone(&self) -> PayloadBundle
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 moreAuto Trait Implementations§
impl Freeze for PayloadBundle
impl RefUnwindSafe for PayloadBundle
impl Send for PayloadBundle
impl Sync for PayloadBundle
impl Unpin for PayloadBundle
impl UnsafeUnpin for PayloadBundle
impl UnwindSafe for PayloadBundle
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