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.21.tar.gz (7.8 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.21-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agenthink-0.1.21.tar.gz
  • Upload date:
  • Size: 7.8 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.21.tar.gz
Algorithm Hash digest
SHA256 e372c8aa46f36de007c312c65fe07d6251976afbc8e6a9f23bc0f970be1645cb
MD5 9648254d4d9ede053b8d540bf1c4d78d
BLAKE2b-256 ca3dbf5e2cff23e94a028ed5b81b1be80bb33ed53e964d053d4abdb8e0435fe7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agenthink-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.21-py3-none-any.whl
Algorithm Hash digest
SHA256 b7a61fd090e5d2198d9342c063c796849fc7af7404dddcb32ca3db9c4afd759d
MD5 378195a7e5446e3eadcc33f6011b8232
BLAKE2b-256 908ffe1de15b5f348e355ed1289955b6170e8777d2e6f8021178b92298f0fc03

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