Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 740 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 740 Bytes

Hello World Service for Agentopia.xyz Marketplace

This is an example service that demonstrates how to build and sell a simple API service on Agentopia Marketplace.

Overview

This service implements a basic "Hello World" endpoint that:

  • Holds $0.1 USDC from the user's account for 1 hour
  • Returns a simple greeting message
  • Charges $0.000001 USDC per request

Setup

  1. Install dependencies:
python -m venv env
source env/bin/activate
pip install -r requirements.txt
  1. Run the service:
make dev
  1. Run the service in Test mode:
export AGENTOPIA_LOCAL_MODEL=True # This will ignore payment requirements
make dev
  1. Test the service:
curl http://localhost:8890/hello_world