pub struct SamplingResponse {
pub role: SamplingRole,
pub content: SamplingContent,
pub model: Option<String>,
pub stop_reason: Option<StopReason>,
pub approval_status: Option<ApprovalStatus>,
pub request_id: Option<String>,
pub processing_time_ms: Option<u64>,
pub cost_info: Option<CostInfo>,
pub included_context: Option<SamplingContext>,
pub human_feedback: Option<HumanFeedback>,
pub warnings: Option<Vec<String>>,
}Expand description
Enhanced sampling response with human-in-the-loop support
Fields§
§role: SamplingRoleRole of the response
content: SamplingContentContent of the response
model: Option<String>Model that was used for sampling
stop_reason: Option<StopReason>Reason why sampling stopped
approval_status: Option<ApprovalStatus>Human approval status
request_id: Option<String>Request ID for tracking
processing_time_ms: Option<u64>Processing time in milliseconds
cost_info: Option<CostInfo>Cost information
included_context: Option<SamplingContext>Context that was included in the request
human_feedback: Option<HumanFeedback>Human feedback or modifications
warnings: Option<Vec<String>>Warnings or considerations
Trait Implementations§
Source§impl Clone for SamplingResponse
impl Clone for SamplingResponse
Source§fn clone(&self) -> SamplingResponse
fn clone(&self) -> SamplingResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 SamplingResponse
impl Debug for SamplingResponse
Source§impl<'de> Deserialize<'de> for SamplingResponse
impl<'de> Deserialize<'de> for SamplingResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SamplingResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SamplingResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SamplingResponse
impl Serialize for SamplingResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SamplingResponse
impl RefUnwindSafe for SamplingResponse
impl Send for SamplingResponse
impl Sync for SamplingResponse
impl Unpin for SamplingResponse
impl UnwindSafe for SamplingResponse
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