Skip to main content

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 -e .

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("What is 45 * 12?")
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:

  • AgentMindError
  • AgentMindAuthError
  • AgentMindAPIError

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentmind_sdk-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentmind_sdk-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file agentmind_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: agentmind_sdk-0.1.0.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

Hashes for agentmind_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7cdcea4111ca72fffda2fd6061f4c091f0ec6c76be21d4deafc04e16db460a86
MD5 d78a52e578119377d7a93a19af79a768
BLAKE2b-256 131d2f2c0c995854e11608c7db5210a751673ab0be5d95ff38360f1c917e1ec4

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmind_sdk-0.1.0.tar.gz:

Publisher: publish.yml on patdal1810/agent-mind-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentmind_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentmind_sdk-0.1.0-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

Hashes for agentmind_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98a6cc826bdd6a81eb63dc0fe2055da0686e8acb56d4ac131d37ed497425cee4
MD5 fceac25885bd055890b7f5d3ff0e9457
BLAKE2b-256 c882c9feabdea97c8091414f2da31b78a8e7fd93eda8c563ef928011b6a452ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmind_sdk-0.1.0-py3-none-any.whl:

Publisher: publish.yml on patdal1810/agent-mind-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page