DigMind Function Tool SDK for Python
Project description
DigMind SDK
DigMind SDK is the official Python library for developing Function Tools and orchestrating agent workflows within the DigMind Platform.
Installation
pip install digmind-sdk
Creating a Function Tool
Function Tools allow you to construct composite tools locally using Python and connect them securely to DigMind's execution engine via the ToolBridge.
Usage Example
from pydantic import BaseModel
from digmind_sdk import FunctionToolContext, tool_model
# 1. Define the Pydantic schema and bind it to a platform Tool Reference
@tool_model("rss.list_feeds")
class ListFeeds(BaseModel):
source_ids: list[str]
# 2. Implement the entry point function
def run(ctx: FunctionToolContext) -> dict:
# Safely call the platform tools via context
ctx.progress(0.1, "Fetching RSS feeds...")
feeds = ctx.call(ListFeeds(source_ids=["tech-blog"]))
# Process results locally...
ctx.progress(1.0, "Complete!")
return {"status": "success", "data": feeds}
Features
- Pydantic Validation: Ensure type-safety immediately before making network requests.
- Progress Tracking: Send real-time partial completion updates back to the DigMind web UI.
- Parallel Dispatch: Run multiple tool calls simultaneously (
ctx.parallel_call) to drastically reduce overall execution latency.
Requirements
- Python 3.11+
- You must connect this SDK running instance to a valid DigMind platform context (normally provided automatically when executed dynamically within DigMind Sandbox environments).
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
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 digmind_sdk-0.1.0.tar.gz.
File metadata
- Download URL: digmind_sdk-0.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6898614f835d5bc9c8b37218168e1decb19058a776821e7d1b18b306aa5a779
|
|
| MD5 |
15f9c95b579417a1f29ef4d685d3455c
|
|
| BLAKE2b-256 |
30254f354fd053f5fe7d6e66b340ac11ea5dfc341d9ecc526ed0533b7230b5b0
|
File details
Details for the file digmind_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: digmind_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c7c366822c7f672c3d88ea6b502aa72eab9f0c4888afc0aab0ea9db23d741dd
|
|
| MD5 |
6415593795b84608e15a0359c1f1fb69
|
|
| BLAKE2b-256 |
a03fc00d157034eae419af9eae660d3bc69a0e774725316e8ab3bcf64c70c078
|