Skip to content

choguun/vv-base-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vv-base-ai

How to deploy vv-base-ai

Deploy Sapphire

  • cd hardhat
  • npx hardhat run sapphire-script/01_deploy.ts --network oasisSapphireTestnet
  • config contract address to all deploy scripts.
  • npx hardhat run sapphire-script/02_setup.ts --network oasisSapphireTestnet
  • npx hardhat run sapphire-script/03_quest.ts --network oasisSapphireTestnet
  • npx hardhat run sapphire-script/04_recipe.ts --network oasisSapphireTestnet
  • npx hardhat run sapphire-script/05_item.ts --network oasisSapphireTestnet

Demo: https://vv-base-app-oasis.vercel.app

How to run AI Agent

  • cd ai-agent

Project Requirements

  • Python >= 3.11

Setup

  • Create a new file called .env

  • Copy the contents of .env.example into your new .env file

  • API keys for third party tools are not provided.

    • OPENAI_API_KEY from OpenAI

    You can use other LLMs, in which case you can add a corresponding API key

  • Create a virtual Python environment

$ python -m venv ./venv
  • Activate the Python virtual env.
    • Windows:
      • In cmd.exe: venv\Scripts\activate.bat
      • In PowerShell: venv\Scripts\Activate.ps1
    • Unix: source venv/bin/activate
  • Install dependencies.
$ pip install -r requirements.txt

Usage

  • Run it
(venv) $ python vv-npc-agent.py
  • Test your agent by calling it Chat API endpoint, /api/chat, to see the result:
curl --location 'localhost:8000/api/v1/chat' \
--header 'Content-Type: application/json' \
--data '{
    "user_id": "user123",
    "session_id": "session123",
    "chat_data": {
        "messages": [
            { "role": "user", "content": "what is the base selling item on game?" }
        ]
    }
}'

Technologies Used:

  1. Smart Contract(Autonomous World)
    1.1 On-chain in-game Items, Tokens, NFTs, and Game Logic
    1.2 World Contract with Hooks feature
    1.3 Built-in in-game DeFi
  2. AI-generated content & LLM
  3. Chainlink
  4. AppKit

Key Features:

  1. On-chain Game Logic eg. Quest(Daily Check-in, Raffle, Mini game), Craft, Item, Token, Profile, and World.
  2. Multiplayer
  3. Supported Multi-Platform on browser
  4. In-game DeFi
  5. AI NPC

How it works:

How it works

About

base, chainlink, hive ai agent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published