SQL Runner
The SQL Runner Tool (CansoSQLRunnerTool) is a tool in Canso toolkit that enables AI agents to execute SQL queries against databases. It delegates the execution of the SQL queries to the Task Server, where the queries are executed, and results are returned to the AI Agent.
Usage
The constructor for the CansoSQLRunnerTool has following parameters:
db_host
Database hostname
"db.example.com"
db_port
Database port
"5432"
db_username
Database username
"db_user"
db_password
Database password
"password123"
db_name
Target database name
"my_database"
The input parameters for the tool, provided at runtime by the workflow or the agent, include:
query
Query to be executed
"select * from table"
The following code snippet illustrates how the CansoSQLRunnerTool can be integrated with your AI Agent.
Tool Tips
Go to Toolkit β¬ οΈ
See Kubernetes Job Tool β‘οΈ
Learn about Task Server β‘οΈ
Explore Examples β‘οΈ
Last updated
Was this helpful?