objectiveai-sdk 2.0.6

ObjectiveAI SDK, definitions, and utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Object type marker for streaming vector completion chunks.

use serde::{Deserialize, Serialize};
use schemars::JsonSchema;

/// Object type for streaming vector completion chunks.
///
/// Serializes to `"vector.completion.chunk"` in JSON.
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize, Default, JsonSchema, arbitrary::Arbitrary)]
#[schemars(rename = "vector.completions.response.streaming.Object")]
pub enum Object {
    /// A streaming vector completion chunk.
    #[serde(rename = "vector.completion.chunk")]
    #[default]
    VectorCompletionChunk,
}