SQL Runner
Last updated
Was this helpful?
Last updated
Was this helpful?
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 , where the queries are executed, and results are returned to the AI Agent.
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.
See Kubernetes Job Tool ➡️
Go to ⬅️
Learn about ➡️
Explore ➡️