Skip to content

kingksjo/swap-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miye MVP

This project is a proof-of-concept MVP of Miye. It combines:

  • 🌀 web3.py – for blockchain integration on EVM Chains like base.
  • 🧑‍💻 FastAPI (Python) – wraps the SDK into HTTP/Websocket endpoints
  • 🤖 LangChain Agent (Python) – interprets user intent and calls the backend endpoints
  • 💬 Web Chat UI – lightweight frontend for user interaction

🚀 System Overview

The project enables users to interact with the AutoSwap SDK via natural language. A user can say things like:

"Swap 10 ETH for USDC"

And the LangChain agent will:

  1. Parse the intent & parameters (token, amount, action)
  2. Call the FastAPI backend endpoint (/swap)
  3. Backend executes the swap using the EVM functions
  4. User gets a result/transaction receipt in the chat

🏗️ Architecture

System Architecture Diagram

📂 Repository Structure

.
├── backend/              # FastAPI backend + EVM function wrapper
├── agent/                # Python LangChain agent
├── frontend/             # Web chat UI
├── README.md             # Project overview
├── 

⚡ Quick Start

Clone the repo

git clone https://github.com/kingksjo/swap-agent.git
cd swap-agent

About

An AI Agent that abstracts dex technology with a conversational UX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors