pub struct LarkBitableTool { /* private fields */ }Expand description
Interact with Feishu/Lark Bitable (multi-dimensional tables) as an Agent tool.
§Supported actions
| Action | Description |
|---|---|
search | Search records with optional filter |
create | Batch-create new records |
update | Update a single record |
delete | Delete a single record |
batch_update | Update multiple records in one call |
batch_delete | Delete multiple records in one call |
list_tables | List all tables in the app |
list_fields | List fields in a table |
create_table | Create a new table |
delete_table | Delete a table |
create_field | Add a field to a table |
update_field | Rename a field |
delete_field | Remove a field from a table |
§Filter operators for search
The filter.operator field supports: is (default), is_not,
contains, does_not_contain, is_empty, is_not_empty.
§Tool call examples
Search with operator:
{
"action": "search",
"app_token": "bascnXxx",
"table_id": "tblXxx",
"filter": {"field": "Status", "operator": "contains", "value": "Pend"}
}Batch-update:
{
"action": "batch_update",
"app_token": "bascnXxx",
"table_id": "tblXxx",
"records": [{"record_id": "recXxx", "fields": {"Status": "Done"}}]
}Create table:
{
"action": "create_table",
"app_token": "bascnXxx",
"table_name": "My New Table"
}Implementations§
Source§impl LarkBitableTool
impl LarkBitableTool
Sourcepub fn new(config: LarkConfig) -> Self
pub fn new(config: LarkConfig) -> Self
Create a new Bitable tool.
Trait Implementations§
Source§impl Tool for LarkBitableTool
impl Tool for LarkBitableTool
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 LarkBitableTool
impl !RefUnwindSafe for LarkBitableTool
impl Send for LarkBitableTool
impl Sync for LarkBitableTool
impl Unpin for LarkBitableTool
impl UnsafeUnpin for LarkBitableTool
impl !UnwindSafe for LarkBitableTool
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