Quick Start Guide

This guide will help you set up and run your first D.A.T.A framework agent. Follow these steps to get started quickly.

Prerequisites

  • Go 1.19 or higher

  • SQLite3

  • Git

  • Discord/Twitter/Telegram API credentials (optional)

  • CARV API key

Installation

  1. Clone the repository:

git clone https://github.com/carv-protocol/d.a.t.a
cd d.a.t.a
  1. Install dependencies:

go mod download

Basic Configuration

  1. Create a .env file in the project root:

# LLM Configuration
LLM_API_KEY=your_api_key
LLM_PROVIDER=openai

# CARV Configuration
CARV_DATA_BASE_URL=https://api.carv.io
CARV_DATA_API_KEY=your_carv_api_key

# Optional Social Media Configuration
DISCORD_API_TOKEN=your_discord_token
TWITTER_API_KEY=your_twitter_key
TWITTER_API_KEY_SECRET=your_twitter_secret
TWITTER_ACCESS_TOKEN=your_twitter_access
TWITTER_TOKEN_SECRET=your_twitter_token
TELEGRAM_BOT_TOKEN=your_telegram_token
  1. Create a basic character configuration (src/config/character.json):

  1. Update the config file (src/config/config.yaml)

Config will be override by the env vars.

Running Your First Agent

  1. Build the project:

  1. Run the agent:

Basic Usage Examples

1. Implementing a Custom Tool

2. Adding a New Social Platform Integration

Common Operations

Checking Token Balance

Processing Social Messages

Common Issues and Solutions

  1. Database Connection Issues

    • Ensure SQLite3 is installed

    • Check database path permissions

    • Verify database file exists

  2. API Authentication Errors

    • Validate API keys in .env file

    • Check API endpoint availability

    • Confirm network connectivity

  3. Memory Management

    • Monitor memory usage

    • Adjust batch sizes if needed

    • Check for memory leaks

Next Steps

  1. Explore the full documentati

  2. Join D.A.T.A Discord community

  3. Check out example implementations in the /examples directory

  4. Learn about advanced features in the Architecture Guide

Last updated