Python SDK for AI Agents - Semantic Intelligence for AI builders
Project description
AI SDK for Python
Python SDK for invoking Metadata Dynamic Agents from your AI applications.
Installation
pip install data-ai-sdk
With LangChain integration:
pip install data-ai-sdk[langchain]
Quick Start
from ai_sdk import AISdk
client = AISdk(
host="https://your-metadata-instance.com",
token="your-bot-jwt-token"
)
response = client.agent("DataQualityPlannerAgent").call(
"What data quality tests should I add for the customers table?"
)
print(response.response)
Streaming
for event in client.agent("DataQualityPlannerAgent").stream("Analyze the customers table"):
if event.event_type == "message":
print(event.content, end="", flush=True)
Async Support
import asyncio
from ai_sdk import AISdk
async def main():
client = AISdk(
host="https://your-metadata-instance.com",
token="your-bot-jwt-token",
enable_async=True,
)
response = await client.agent("DataQualityPlannerAgent").acall(
"Analyze the customers table"
)
print(response.response)
asyncio.run(main())
MCP Tools
Access Model Context Protocol tools from your Metadata instance:
tools = client.mcp.list_tools()
result = client.mcp.call_tool(
tool=MCPTool.SEARCH_ENTITIES,
arguments={"query": "customers", "limit": 5},
)
Documentation
License
Collate Community License 1.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
data_ai_sdk-0.1.2.tar.gz
(82.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file data_ai_sdk-0.1.2.tar.gz.
File metadata
- Download URL: data_ai_sdk-0.1.2.tar.gz
- Upload date:
- Size: 82.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ceccd65c02ee76ff3770ba46a54a9d187e8209de0fc07fb3dc3bdf1115ac738e
|
|
| MD5 |
c93e47421f34f4d600c4ddd08bc30550
|
|
| BLAKE2b-256 |
4e67580df19e893aa740469457b144e9da201370bc204a6f377cac5b64b606b5
|
File details
Details for the file data_ai_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: data_ai_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 89.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
086b6429e3f7991ae36e8558a7e5f9d4f1d89ee2b8663cbae4505533db2e24e0
|
|
| MD5 |
dfedf0f195c96b9bbf446548a2e8278b
|
|
| BLAKE2b-256 |
973cc7d2bca183a89aa49cf43cc937dadf08a09c615335b231204a5da5050adf
|