Python SDK for AgentMind agent infrastructure platform
Project description
AgentMind Python SDK
Python SDK for AgentMind, an infrastructure platform for autonomous AI agents.
Installation
Install locally
pip install agentmind-sdk
Basic Usage
from agentmind import AgentMindClient
client = AgentMindClient(
base_url="https://your-agentmind-api.up.railway.app",
api_key="agm_your_api_key"
)
response = client.chat(
task="What is 45 * 12?",
llm_config={
"provider": "openai",
"api_key": "your_openai_api_key",
"model": "gpt-4.1-mini"
}
)
print(response)
Register an Agent
from agentmind import AgentMindClient
client = AgentMindClient(
base_url="https://your-agentmind-api.up.railway.app"
)
result = client.register_agent(
name="Research Agent",
purpose="Testing AgentMind",
invite_code="AGENTMIND-BETA-001",
permissions=[
"memory:read",
"memory:write",
"tools:calculator:run",
"tools:echo:run",
"tools:quadratic_solver:run"
]
)
print(result["api_key"])
Save Memory
client.save_memory(
"This agent prefers short technical answers."
)
Search Memory
client.search_memory(
"answer style"
)
List Available Tools
client.list_tools()
Get Tool Details
client.get_tool("quadratic_solver")
Run Tool Directly
client.run_tool(
"calculator",
{
"expression": "45 * 12"
}
)
Runtime Chat
client.chat(
task="Solve x^2 - 5x + 6 = 0",
memory_search_limit=5,
save_result_to_memory=False
)
Features
- Agent authentication
- Memory storage
- Vector memory search
- Tool discovery
- Tool execution
- Autonomous runtime reasoning
- MCP-compatible architecture
- Structured validation
- Tool schema registry
- Railway deployment support
Architecture
Developer Agent
↓
AgentMind SDK
↓
AgentMind API
↓
Runtime + Memory + Tools
↓
PostgreSQL / Redis / ChromaDB
Error Handling
The SDK includes:
AgentMindErrorAgentMindAuthErrorAgentMindAPIError
Example:
from agentmind import (
AgentMindClient,
AgentMindAPIError
)
try:
client.chat("What is 45 * 12?")
except AgentMindAPIError as error:
print(error)
SDK Methods
| Method | Description |
|---|---|
get_manifest() |
Get platform manifest |
register_agent() |
Register new agent |
me() |
Get current agent |
save_memory() |
Save memory |
search_memory() |
Search memories |
list_tools() |
List all tools |
get_tool() |
Get one tool schema |
run_tool() |
Execute tool |
chat() |
Use autonomous runtime |
Local Testing
python test_sdk.py
Future Improvements
- Async SDK
- Streaming runtime responses
- Built-in retries
- Typed response models
- CLI support
- WebSocket support
- Hosted MCP integration
Author
Built by Olumba C Patrick
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 agentmind_sdk-0.1.1.tar.gz.
File metadata
- Download URL: agentmind_sdk-0.1.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15db3c769cafb9ef86bb7e93114e3d568b380d94d7f6e27a319ba4e3f5f683cf
|
|
| MD5 |
582f2d094e8f33e80dbabf3605dbfd92
|
|
| BLAKE2b-256 |
a4becd2dd21952cb0d80087b6692477dd97e0a00dfb5faafe2076a76aad8c740
|
Provenance
The following attestation bundles were made for agentmind_sdk-0.1.1.tar.gz:
Publisher:
publish.yml on patdal1810/agent-mind-framework
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentmind_sdk-0.1.1.tar.gz -
Subject digest:
15db3c769cafb9ef86bb7e93114e3d568b380d94d7f6e27a319ba4e3f5f683cf - Sigstore transparency entry: 1630566094
- Sigstore integration time:
-
Permalink:
patdal1810/agent-mind-framework@8393bba626a5a020c9b06507eab84c48ca6a6ce2 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/patdal1810
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8393bba626a5a020c9b06507eab84c48ca6a6ce2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agentmind_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: agentmind_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d982c33f08775627598b26b708b71e426bda1075cec813e1babbd957fbf4085d
|
|
| MD5 |
2bc7002ad0fa33d0322bba5a3c08ca65
|
|
| BLAKE2b-256 |
f808e635a538334a7624a6d9428b3d39ed40440c33c162ff3dc74141a3fd6c04
|
Provenance
The following attestation bundles were made for agentmind_sdk-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on patdal1810/agent-mind-framework
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentmind_sdk-0.1.1-py3-none-any.whl -
Subject digest:
d982c33f08775627598b26b708b71e426bda1075cec813e1babbd957fbf4085d - Sigstore transparency entry: 1630566103
- Sigstore integration time:
-
Permalink:
patdal1810/agent-mind-framework@8393bba626a5a020c9b06507eab84c48ca6a6ce2 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/patdal1810
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8393bba626a5a020c9b06507eab84c48ca6a6ce2 -
Trigger Event:
release
-
Statement type: