Struct OpenAI Chat Completion Chunk Choice
Generated from cargo doc --no-deps -p nemo-fabric-core.
pub struct OpenAiChatCompletionChunkChoice {
pub index: u32,
pub delta: OpenAiChatCompletionChunkDelta,
pub finish_reason: Option<String>,
pub logprobs: Option<BTreeMap<String, Value>>,
pub extensions: BTreeMap<String, Value>,
}
One choice within an OpenAI Chat Completions streaming chunk.
Fields
index: u32
Choice index within the response.
delta: OpenAiChatCompletionChunkDelta
Incremental assistant message fields.
finish_reason: Option<String>
Terminal reason when this choice finishes.
logprobs: Option<BTreeMap<String, Value>>
Incremental log-probability information.
extensions: BTreeMap<String, Value>
Additional OpenAI-compatible choice fields preserved by pass-through.
Trait Implementations
impl Clone for OpenAiChatCompletionChunkChoice
impl Clone for OpenAiChatCompletionChunkChoice
clone
fn clone(&self) -> OpenAiChatCompletionChunkChoice
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for OpenAiChatCompletionChunkChoice
impl Debug for OpenAiChatCompletionChunkChoice
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for OpenAiChatCompletionChunkChoice
impl<'de> Deserialize<'de> for OpenAiChatCompletionChunkChoice
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl JsonSchema for OpenAiChatCompletionChunkChoice
impl JsonSchema for OpenAiChatCompletionChunkChoice
schema_name
fn schema_name() -> Cow<'static, str>
schema_id
fn schema_id() -> Cow<'static, str>
json_schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
inline_schema
fn inline_schema() -> bool
impl PartialEq for OpenAiChatCompletionChunkChoice
impl PartialEq for OpenAiChatCompletionChunkChoice
eq
fn eq(&self, other: &OpenAiChatCompletionChunkChoice) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for OpenAiChatCompletionChunkChoice
impl Serialize for OpenAiChatCompletionChunkChoice
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for OpenAiChatCompletionChunkChoice
impl StructuralPartialEq for OpenAiChatCompletionChunkChoice