pub enum ChatOriginKind {
User,
Fork,
Tool,
}Expand description
Discriminant for {@link ChatOrigin} — how a chat came into existence.
Variants§
User
User created the chat explicitly (e.g. via the host UI).
Fork
Forked from an existing chat at a specific turn.
Tool
Spawned by a tool call running in another chat (e.g. a sub-agent delegation).
Trait Implementations§
Source§impl Clone for ChatOriginKind
impl Clone for ChatOriginKind
Source§fn clone(&self) -> ChatOriginKind
fn clone(&self) -> ChatOriginKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChatOriginKind
Source§impl Debug for ChatOriginKind
impl Debug for ChatOriginKind
Source§impl<'de> Deserialize<'de> for ChatOriginKind
impl<'de> Deserialize<'de> for ChatOriginKind
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
impl Eq for ChatOriginKind
Source§impl Hash for ChatOriginKind
impl Hash for ChatOriginKind
Source§impl PartialEq for ChatOriginKind
impl PartialEq for ChatOriginKind
Source§fn eq(&self, other: &ChatOriginKind) -> bool
fn eq(&self, other: &ChatOriginKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatOriginKind
impl Serialize for ChatOriginKind
impl StructuralPartialEq for ChatOriginKind
Auto Trait Implementations§
impl Freeze for ChatOriginKind
impl RefUnwindSafe for ChatOriginKind
impl Send for ChatOriginKind
impl Sync for ChatOriginKind
impl Unpin for ChatOriginKind
impl UnsafeUnpin for ChatOriginKind
impl UnwindSafe for ChatOriginKind
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