pub struct ChatPromptModel {
pub prompt: Vec<ChatMessage>,
pub name: String,
pub version: i32,
pub config: Option<Value>,
pub labels: Vec<String>,
pub tags: Vec<String>,
pub commit_message: Option<Option<String>>,
pub resolution_graph: Option<Option<HashMap<String, Value>>>,
pub type: Type,
}Fields§
§prompt: Vec<ChatMessage>§name: String§version: i32§config: Option<Value>§labels: Vec<String>List of deployment labels of this prompt version.
List of tags. Used to filter via UI and API. The same across versions of a prompt.
commit_message: Option<Option<String>>Commit message for this prompt version.
resolution_graph: Option<Option<HashMap<String, Value>>>The dependency resolution graph for the current prompt. Null if prompt has no dependencies.
type: TypeImplementations§
Trait Implementations§
Source§impl Clone for ChatPromptModel
impl Clone for ChatPromptModel
Source§fn clone(&self) -> ChatPromptModel
fn clone(&self) -> ChatPromptModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChatPromptModel
impl Debug for ChatPromptModel
Source§impl Default for ChatPromptModel
impl Default for ChatPromptModel
Source§fn default() -> ChatPromptModel
fn default() -> ChatPromptModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatPromptModel
impl<'de> Deserialize<'de> for ChatPromptModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChatPromptModel
impl PartialEq for ChatPromptModel
Source§impl Serialize for ChatPromptModel
impl Serialize for ChatPromptModel
impl StructuralPartialEq for ChatPromptModel
Auto Trait Implementations§
impl Freeze for ChatPromptModel
impl RefUnwindSafe for ChatPromptModel
impl Send for ChatPromptModel
impl Sync for ChatPromptModel
impl Unpin for ChatPromptModel
impl UnwindSafe for ChatPromptModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more