pub struct ChannelConfig {
pub valid_channels: Vec<String>,
pub channel_required: bool,
}
Fields§
§valid_channels: Vec<String>
List of valid channels to instruct the model it can generate.
If empty, this part of the system message will not be rendered.
channel_required: bool
If True, every assistant’s message must have channel value set.
Implementations§
Source§impl ChannelConfig
impl ChannelConfig
pub fn require_channels<I, T>(channels: I) -> Self
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
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 ChannelConfig
impl Debug for ChannelConfig
Source§impl Default for ChannelConfig
impl Default for ChannelConfig
Source§fn default() -> ChannelConfig
fn default() -> ChannelConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelConfig
impl<'de> Deserialize<'de> for ChannelConfig
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 ChannelConfig
impl PartialEq for ChannelConfig
Source§impl Serialize for ChannelConfig
impl Serialize for ChannelConfig
impl StructuralPartialEq for ChannelConfig
Auto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnwindSafe for ChannelConfig
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