0.3.0 • Published 3 months ago

@spacemangaming/daemon v0.3.0

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

@spacemangaming/daemon

Documentation

A TypeScript framework for creating AI agents that can interact with Model Context Protocol (MCP) servers. This package provides a robust system for message processing, tool management, and lifecycle events.

Installation

bun add @spacemangaming/daemon

Quick Start

import { Daemon } from "@spacemangaming/daemon";
import { Keypair } from "@solana/web3.js";

const keypair = Keypair.generate();

const character = {
    name: "John Doe",
    pubkey: keypair.publicKey.toBase58(),
    identityPrompt: "You are a helpful assistant.",
};

const daemon = new Daemon(character, keypair);
const daemon.addModelProvider({
    openai: {
        endpoint: "https://api.openai.com/v1",
        models: ["gpt-4o-mini"],
        apiKey: "your-openai-api-key",
    },
});
const response = await daemon.message("Hello! How are you doing today?");

Key Features

  • Message Lifecycle Management: Structured processing of messages through context gathering, LLM interactions, and actions
  • Tool System: Flexible integration with MCP servers for extended functionality
  • Security: Built-in message signing and cryptographic approval chains
  • Character System: Define agent personalities and behaviors through structured configurations

Core Components

  • Daemon Class: Main class implementing the agent functionality
  • Message Processing: Handles the complete lifecycle of message processing
  • MCP Server Integration: Connect to and utilize tools from MCP servers
  • Character Configuration: Define agent identity and behavior

Documentation

For detailed technical documentation, please see:

License

MIT

0.3.0

3 months ago

0.2.0-beta.2

3 months ago

0.2.0-beta.1

5 months ago

0.1.17

6 months ago

0.1.16

6 months ago

0.1.15

6 months ago

0.1.14

6 months ago

0.1.13

6 months ago

0.1.12

6 months ago

0.1.11

6 months ago

0.1.10

6 months ago

0.1.9

6 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago