pub struct LarkDocProcessTool { /* private fields */ }Expand description
Extract structured data from documents using the Lark intelligent document processing API.
Supports invoice, receipt, ID card, and general document extraction.
Implementations§
Source§impl LarkDocProcessTool
impl LarkDocProcessTool
Sourcepub fn new(config: LarkConfig) -> Self
pub fn new(config: LarkConfig) -> Self
Create a new tool using the given config.
Trait Implementations§
Source§impl Tool for LarkDocProcessTool
impl Tool for LarkDocProcessTool
fn name(&self) -> &'static str
fn description(&self) -> &'static str
fn parameters(&self) -> Option<Value>
fn call<'life0, 'async_trait>(
&'life0 self,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, SynapticError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn as_tool_definition(&self) -> ToolDefinition
Auto Trait Implementations§
impl Freeze for LarkDocProcessTool
impl !RefUnwindSafe for LarkDocProcessTool
impl Send for LarkDocProcessTool
impl Sync for LarkDocProcessTool
impl Unpin for LarkDocProcessTool
impl UnsafeUnpin for LarkDocProcessTool
impl !UnwindSafe for LarkDocProcessTool
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