pub struct ConeConfig {
pub id: ConeId,
pub name: String,
pub model_id: String,
pub system_prompt: Option<String>,
pub head: Position,
pub metadata: Option<Value>,
pub created_at: i64,
pub updated_at: i64,
}Expand description
Cone configuration - defines an cone’s identity and behavior
Fields§
§id: ConeIdUnique identifier for this cone
name: StringHuman-readable name
model_id: StringModel ID to use (e.g., “gpt-4o-mini”, “claude-3-haiku-20240307”)
system_prompt: Option<String>System prompt / instructions for the cone
head: PositionThe canonical head - current position in conversation tree This couples tree_id and node_id together
metadata: Option<Value>Additional configuration metadata
created_at: i64Created timestamp
updated_at: i64Last updated timestamp
Implementations§
Trait Implementations§
Source§impl Clone for ConeConfig
impl Clone for ConeConfig
Source§fn clone(&self) -> ConeConfig
fn clone(&self) -> ConeConfig
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 ConeConfig
impl Debug for ConeConfig
Source§impl<'de> Deserialize<'de> for ConeConfig
impl<'de> Deserialize<'de> for ConeConfig
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 From<&ConeConfig> for ConeInfo
impl From<&ConeConfig> for ConeInfo
Source§fn from(config: &ConeConfig) -> Self
fn from(config: &ConeConfig) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ConeConfig
impl JsonSchema for ConeConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ConeConfig
impl RefUnwindSafe for ConeConfig
impl Send for ConeConfig
impl Sync for ConeConfig
impl Unpin for ConeConfig
impl UnsafeUnpin for ConeConfig
impl UnwindSafe for ConeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more