aws-sdk-context 1.0.0

AWS SDK for AWS Context
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_agentic_retrieve_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::agentic_retrieve::AgenticRetrieveInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.agent_context_id {
        encoder.str("agentContextId").str(var_1.as_str());
    }
    if let Some(var_2) = &input.messages {
        encoder.str("messages");
        encoder.array((*var_2).len());
        for item_3 in var_2 {
            {
                crate::protocol_serde::shape_message::ser_message(encoder, item_3)?;
            }
        }
    }
    if let Some(var_4) = &input.session_id {
        encoder.str("sessionId").str(var_4.as_str());
    }
    if let Some(var_5) = &input.analysis_configuration {
        encoder.str("analysisConfiguration");
        crate::protocol_serde::shape_analysis_configuration::ser_analysis_configuration(encoder, var_5)?;
    }
    if let Some(var_6) = &input.retrieval_configuration {
        encoder.str("retrievalConfiguration");
        crate::protocol_serde::shape_retrieval_configuration::ser_retrieval_configuration(encoder, var_6)?;
    }
    encoder.end();
    Ok(())
}