Python SDK for AgentNode — the open upgrade and discovery infrastructure for AI agents.
Project description
agentnode-sdk
Python SDK for AgentNode — the open upgrade and discovery infrastructure for AI agents.
Installation
pip install agentnode-sdk
Quick Start
from agentnode_sdk import AgentNodeClient, run_tool
client = AgentNodeClient(api_key="ank_...")
# Search for packages
results = client.search("pdf extraction")
for hit in results.hits:
print(f"{hit.slug} — {hit.summary}")
# Resolve capability gaps
resolved = client.resolve(
capabilities=["pdf_extraction"],
framework="langchain",
)
# v0.3: Run tools with trust-aware isolation
# trusted/curated → direct (in-process), verified/unverified → subprocess
result = run_tool("pdf-reader-pack", file_path="report.pdf")
print(result.result) # tool output
print(result.mode_used) # "direct" or "subprocess"
# Multi-tool packs — specify tool_name
result = run_tool("csv-analyzer-pack", tool_name="describe", file_path="data.csv")
API Reference
AgentNodeClient
The main client with typed return models.
| Method | Description |
|---|---|
search(query, ...) |
Search packages by keyword or capability |
resolve(capabilities, ...) |
Resolve capability gaps to ranked packages |
get_package(slug) |
Get package details |
get_install_metadata(slug) |
Get install info (artifact, permissions, deps) |
download(slug) |
Track download and get artifact URL |
run_tool(slug, tool_name=, mode=, timeout=, **kwargs) |
Run a tool with optional subprocess isolation (v0.3) |
load_tool(slug, tool_name=) |
Load a tool function from an installed pack (v0.2) |
run_tool() (standalone)
Top-level function for running tools with trust-aware execution mode.
from agentnode_sdk import run_tool
result = run_tool("pdf-reader-pack", mode="auto", file_path="report.pdf")
# result.success, result.result, result.error, result.mode_used, result.duration_ms
| Param | Type | Default | Description |
|---|---|---|---|
slug |
str | required | Package slug |
tool_name |
str | None | None | Tool name for multi-tool packs |
mode |
str | "auto" |
"direct", "subprocess", or "auto" |
timeout |
float | 30.0 | Subprocess timeout in seconds |
**kwargs |
Any | — | Arguments forwarded to the tool function |
AgentNode
Lightweight client returning raw dicts.
| Method | Description |
|---|---|
search(query, ...) |
Search packages |
resolve_upgrade(missing_capability, ...) |
Resolve a single capability gap |
check_policy(package_slug, ...) |
Evaluate security policy |
get_install_metadata(slug) |
Get install metadata |
install(slug) |
Create installation record |
recommend(missing_capabilities) |
Get recommendations |
validate(manifest) |
Validate a package manifest |
License
MIT
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
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 agentnode_sdk-0.4.0.tar.gz.
File metadata
- Download URL: agentnode_sdk-0.4.0.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b07a31a59702f6735cea16aea7022391a0c7bd3772eb4ae293729695bb6beaff
|
|
| MD5 |
12b0f821d742dac1b672d336104a77ea
|
|
| BLAKE2b-256 |
57afa9ee12c247fce444e97a17179d10abcf39f7a98a7686200a6d925b74ed00
|
File details
Details for the file agentnode_sdk-0.4.0-py3-none-any.whl.
File metadata
- Download URL: agentnode_sdk-0.4.0-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fc0d4735f0ec55aaa1b200293610b0ee8294bcbbf9e7b89edd81f9e22391af5
|
|
| MD5 |
46b60a0c8e94d87d5eca8eb7dbbf538c
|
|
| BLAKE2b-256 |
2afea82b301b88fa6ac0515e9d97687c99894a8cb5c4cb48249e048a648e6506
|