pub struct ClassifierNode { /* private fields */ }Expand description
The question-classifier node.
Implementations§
Source§impl ClassifierNode
impl ClassifierNode
pub fn from_doc(doc: &NodeDoc) -> Result<Self, ConfigError>
Sourcepub fn uses_system_one(&self) -> bool
pub fn uses_system_one(&self) -> bool
Whether this node uses TypeSafe’s System One API instead of a chat model.
Trait Implementations§
Source§impl Debug for ClassifierNode
impl Debug for ClassifierNode
Source§impl Node for ClassifierNode
impl Node for ClassifierNode
Source§fn run(&self, ctx: NodeContext) -> BoxFuture<'_, NodeResult>
fn run(&self, ctx: NodeContext) -> BoxFuture<'_, NodeResult>
Execute the node. Dropping the returned future cancels the node.
Source§fn branch_handles(&self) -> Option<Vec<String>>
fn branch_handles(&self) -> Option<Vec<String>>
Every handle a
NodeRole::Branch node may select, when known from its
configuration (if-else case ids, classifier class ids…). Graph building
rejects edges with other handles. None (the default) falls back to the
kind’s catalog descriptor: Fixed handles are checked, Dynamic ones are
not, and non-branch nodes have the single handle source.Source§fn inputs(&self) -> Vec<Selector>
fn inputs(&self) -> Vec<Selector>
Selectors this node reads.
crate::graph::Graph::build rejects selectors
whose namespace is neither a node id nor sys / env / conversation
(catching typos at load time) and warns about references into other
container bodies. Return every selector the node may read, including
placeholders inside templates.Auto Trait Implementations§
impl Forget for ClassifierNode
impl Freeze for ClassifierNode
impl Move for ClassifierNode
impl RefUnwindSafe for ClassifierNode
impl Send for ClassifierNode
impl Sync for ClassifierNode
impl Unpin for ClassifierNode
impl UnsafeUnpin for ClassifierNode
impl UnwindSafe for ClassifierNode
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