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 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:

  • 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.1.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.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for agentmind_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 15db3c769cafb9ef86bb7e93114e3d568b380d94d7f6e27a319ba4e3f5f683cf
MD5 582f2d094e8f33e80dbabf3605dbfd92
BLAKE2b-256 a4becd2dd21952cb0d80087b6692477dd97e0a00dfb5faafe2076a76aad8c740

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmind_sdk-0.1.1.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.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

Hashes for agentmind_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d982c33f08775627598b26b708b71e426bda1075cec813e1babbd957fbf4085d
MD5 2bc7002ad0fa33d0322bba5a3c08ca65
BLAKE2b-256 f808e635a538334a7624a6d9428b3d39ed40440c33c162ff3dc74141a3fd6c04

See more details on using hashes here.

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

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