// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. // SPDX-License-Identifier: Apache-2.0 use serde::{Deserialize, Serialize}; use super::FinishReason; use crate::protocols::TokenIdType; #[derive(Serialize, Deserialize, Debug, Clone, PartialEq)] pub struct PostprocessedResponse { /// Model Deployment Card checksum pub mdcsum: String, // if the number of slots for a given request is greater than 1 // this indicates the index of the slot for the response pub index: Option, pub finish_reason: Option, // new token_ids pub token_ids: Vec, // tokens pub tokens: Option>>, // decoded text pub text: Option, /// cumulative log probabilities pub cum_log_probs: Option, }