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
Clone the repository:
git clone https://github.com/carv-protocol/d.a.t.a
cd d.a.t.aInstall dependencies:
go mod downloadBasic Configuration
Create a
.envfile 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_tokenCreate a basic character configuration (
src/config/character.json):
Update the config file (
src/config/config.yaml)
Config will be override by the env vars.
Running Your First Agent
Build the project:
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
Database Connection Issues
Ensure SQLite3 is installed
Check database path permissions
Verify database file exists
API Authentication Errors
Validate API keys in .env file
Check API endpoint availability
Confirm network connectivity
Memory Management
Monitor memory usage
Adjust batch sizes if needed
Check for memory leaks
Next Steps
Explore the full documentati
Join D.A.T.A Discord community
Check out example implementations in the
/examplesdirectoryLearn about advanced features in the Architecture Guide
Last updated