Neuronum SDK
Project description
Neuronum SDK
A Getting Started into the Neuronum SDK
In this brief getting started guide, you will:
- Learn about the Neuronum SDK
- Connect your ID to Neuronum
- Create & Manage A custom Tool
- Integrate the API to call your Agent
About Neuronum SDK
The Neuronum SDK is the official Python ecosystem to develop and publish custom Tools and lets you integrate the Neuronum API to interact with your Agent from existing projects
Requirements
- Python >= 3.8
Connect To Neuronum
Installation
pip install neuronum
Connect an existing Cell (your secure identity)
neuronum connect-cell
Create A Tool
Neuronum Tools are MCP-compliant (Model Context Protocol ) plugins that extend your Agent's functionality, enabling it to interact with external data sources and systems.
Initialize a Tool
neuronum init-tool
You will be prompted to enter a tool name and description (e.g., "Test Tool" and "A simple test tool"). This will create a new folder named using the format: Tool Name_ToolID (e.g., Test Tool_019ac60e-cccc-7af5-b087-f6fcf1ba1299)
This folder will contain 2 files:
- tool.config - Configuration and metadata for your tool
- tool.py - Your Tool/MCP server implementation
Example tool.config:
{
"tool_meta": {
"tool_id": "019ac60e-cccc-7af5-b087-f6fcf1ba1299",
"version": "1.0.0",
"name": "Test Tool",
"description": "A simple test tool",
"audience": "private",
"logo": "https://neuronum.net/static/logo_new.png"
},
"legals": {
"terms": "https://url_to_your/terms",
"privacy_policy": "https://url_to_your/privacy_policy"
},
"requirements": [],
"variables": []
}
Example tool.py:
from mcp.server.fastmcp import FastMCP
# Create server instance
mcp = FastMCP("simple-example")
@mcp.tool()
def echo(message: str) -> str:
"""Echo back a message"""
return f"Echo: {message}"
if __name__ == "__main__":
mcp.run()
asyncio.run(main())
Update a Tool
After modifying your tool.config or tool.py files, submit the updates using:
neuronum update-tool
Delete a Tool
neuronum delete-tool
Integrate Neuronum API
Send a simple prompt to your Agent
import asyncio
from neuronum import Cell
async def main():
async with Cell() as cell:
# Build the data payload
data = {
"type": "prompt",
"prompt": "Explain what a black hole is in one sentence"
}
# Use activate_tx() if you expect a response from your Agent
tx_response = await cell.activate_tx(data)
print(tx_response)
if __name__ == '__main__':
asyncio.run(main())
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 neuronum-12.3.0.tar.gz.
File metadata
- Download URL: neuronum-12.3.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b305957d0a827c42e1a58dd4eebacaf4c7a69c2fc0a29192e0713be9e71f930
|
|
| MD5 |
496577f3e99b8da75f2368460801e5be
|
|
| BLAKE2b-256 |
28aa4ffb7753865f3876fb91ca4b50ab618f2c65df7fe052bf3a75f921957635
|
File details
Details for the file neuronum-12.3.0-py3-none-any.whl.
File metadata
- Download URL: neuronum-12.3.0-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f04571a85bdb47179314ac04095c9902ef2aae1eb47c46b89f8c1a3528d9ba6b
|
|
| MD5 |
e718fdea847c4990ee44b5a007036c2f
|
|
| BLAKE2b-256 |
237f1b2c6b7290e92acfb60c3db088a0ff48a4fbeea5b85cbb91ad603df07129
|