pub struct DocumentExtractorNode { /* private fields */ }Expand description
Extracts text from a file or a list of files.
Output text is a string for a single file and an array of strings (input
order) for a file list. Per-file details (format, characters, truncation) are
reported in the files metadata entry.
Implementations§
Source§impl DocumentExtractorNode
impl DocumentExtractorNode
Sourcepub fn from_doc(doc: &NodeDoc) -> Result<Self, ConfigError>
pub fn from_doc(doc: &NodeDoc) -> Result<Self, ConfigError>
Build from a node document.
Trait Implementations§
Source§impl Clone for DocumentExtractorNode
impl Clone for DocumentExtractorNode
Source§impl Debug for DocumentExtractorNode
impl Debug for DocumentExtractorNode
Source§impl Node for DocumentExtractorNode
impl Node for DocumentExtractorNode
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 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 DocumentExtractorNode
impl Freeze for DocumentExtractorNode
impl Move for DocumentExtractorNode
impl RefUnwindSafe for DocumentExtractorNode
impl Send for DocumentExtractorNode
impl Sync for DocumentExtractorNode
impl Unpin for DocumentExtractorNode
impl UnsafeUnpin for DocumentExtractorNode
impl UnwindSafe for DocumentExtractorNode
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