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
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:
- Parse the intent & parameters (token, amount, action)
- Call the FastAPI backend endpoint (
/swap) - Backend executes the swap using the EVM functions
- User gets a result/transaction receipt in the chat
.
├── backend/ # FastAPI backend + EVM function wrapper
├── agent/ # Python LangChain agent
├── frontend/ # Web chat UI
├── README.md # Project overview
├──
git clone https://github.com/kingksjo/swap-agent.git
cd swap-agent