Skip to main content

Crate synaptic_sqltoolkit

Crate synaptic_sqltoolkit 

Source
Expand description

SQL database toolkit for the Synaptic framework.

Provides a set of read-only SQL tools for use with LLM agents:

§Quick start

use sqlx::sqlite::SqlitePoolOptions;
use synaptic_sqltoolkit::SqlToolkit;
use synaptic_tools::ToolRegistry;
use std::sync::Arc;

let pool = SqlitePoolOptions::new()
    .connect("sqlite::memory:")
    .await?;

let toolkit = SqlToolkit::sqlite(pool);
let registry = ToolRegistry::new();
for tool in toolkit.tools() {
    registry.register(tool)?;
}

Structs§

DescribeTableTool
Tool that returns the schema of a specific table.
ExecuteQueryTool
Tool that executes a read-only SQL SELECT query.
ListTablesTool
Tool that lists all tables in the SQLite database.
SqlToolkit
A toolkit that provides SQL tools for agent use.