Skip to main content

A unified agent framework for connecting workflows, databases, and agents

Project description

DBConnector (Agenthink)

DBConnector is a database connectivity utility for the Agenthink platform.
It enables agents running on Agenthink to securely connect to external MySQL and MSSQL databases using credentials managed by Azure Blob Storage and Azure Key Vault.

Connections are cached per session and are designed for read-only access, allowing agents to safely query data without modifying source databases.

Purpose

This library allows Agenthink agents to:

  • Connect to user-registered databases on the Agenthink platform
  • Execute safe, read-only SQL queries
  • Reuse database connections across agent sessions

Features

  • Session-based connection caching for agents
  • Supports MySQL and MS SQL Server
  • Secure secret management via Azure Key Vault
  • Datastore metadata loaded from Azure Blob Storage
  • Read-only SQL enforcement (SELECT, SHOW, EXPLAIN, etc.)
  • Built-in logging for observability and debugging

Basic Usage (Agenthink Agent)

db = DBConnector.get(
    session_id="session_123",
    user_id="user1",
    workflow_id="workflow_A"
)

result = db.execute_query(
    db_name="database_name",
    query="SELECT * FROM item LIMIT 10"
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agenthink-0.1.19.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agenthink-0.1.19-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file agenthink-0.1.19.tar.gz.

File metadata

  • Download URL: agenthink-0.1.19.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for agenthink-0.1.19.tar.gz
Algorithm Hash digest
SHA256 5b68cb4db0fc7df9e939cf1b106b33c072ae04a0cee99de24eb1382c7abf31aa
MD5 ef9652f3430715726e342cf33bff33ac
BLAKE2b-256 feb30d1eadfc45903a0796b52e1ce3877a1a2dd4a1338a1eab90281f43d1f87f

See more details on using hashes here.

File details

Details for the file agenthink-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: agenthink-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for agenthink-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 1d8df2e9c979281b45c26cd570462aeeaa3e871c1a64f81f41672ef7ddf705f8
MD5 88ef416f1dc1977d67ac5d75c02aa5a3
BLAKE2b-256 fe13a39bb0fec01a7ff95e3e317f3839722e5c6b394554ceb10d25e7d0a27c61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page