nexithium-agent-platform

Nexithium Agent Platform Documentation

Welcome to the official documentation for Nexithium Agent Platform, your go‑to framework for building, deploying, and extending AI agents.


Table of Contents

  1. Overview
  2. Getting Started
  3. Architecture
  4. Using the CLI
  5. Telegram Bot Interface
  6. REST API
  7. Writing New Agents
  8. Registering Custom Tools
  9. Memory Management
  10. Contributing
  11. License
  12. Whitepaper

Overview

Nexithium Agent Platform is a modular Python framework that lets you:

Use it for crypto analysis, customer support, research assistants, and more.


Getting Started

Prerequisites

Installation

git clone https://github.com/nexithium/nexithium-agent-platform.git
cd nexithium-agent-platform
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Configuration

Copy the example and fill in your environment variables:

cp config.env.example .env

Edit .env:

OPENAI_API_KEY=sk-...
TELEGRAM_BOT_TOKEN=12345:abcde
NEXITHIUM_API_KEY=your-secret-key
SERPER_API_KEY=your-serper-api-key
# REDIS_URL=redis://:pass@host:6379/0

Architecture

Core Components

Tools

Located in tools/, each tool is a simple function registered via @register_tool:

Interfaces


Using the CLI

python interfaces/cli.py --memory short --model gpt-4

Commands:


Telegram Bot Interface

Start the bot:

python interfaces/telegram_bot.py

Commands:


REST API

Run server:

uvicorn interfaces.fastapi_server:app --reload --port 8000

Endpoints:

Use Swagger UI at /docs.


Writing New Agents

Create an agent in agents/:

from core.agent import Agent
from core.tools import load_all_tools
from core.memory import ShortTermMemory

my_agent = Agent(
    name="MyCustomAgent",
    system_prompt="You are...",
    tools=list(load_all_tools().values()),
    memory=ShortTermMemory().get()
)

Registering Custom Tools

In tools/, create a new file with a function:

# tools/my_tool.py
def my_tool(arg1: str, arg2: int) -> str:
    return f"Received {arg1} and {arg2}"

Then register in core/tools.py:

from tools.my_tool import my_tool
register_tool("my_tool")(my_tool)

Memory Management


Contributing

See CONTRIBUTING.md for guidelines on coding standards, testing, and pull requests.


License

This project is licensed under the MIT License. See LICENSE for details.


Whitepaper

Read the full project whitepaper here.


Documentation generated by Nexithium Agent Platform.