CreateMessageResponse

Type Alias CreateMessageResponse 

Source
pub type CreateMessageResponse = SamplingResponse;

Aliased Type§

pub struct CreateMessageResponse {
    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>>,
}

Fields§

§role: SamplingRole

Role of the response

§content: SamplingContent

Content 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