Skip to content

Commit f96fbf5

Browse files
authored
Merge branch 'ai16z:main' into plugin-evm-multichain
2 parents 790da55 + 622000e commit f96fbf5

File tree

313 files changed

+13736
-2223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+13736
-2223
lines changed

.env.example

+46-17
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ DISCORD_VOICE_CHANNEL_ID= # The ID of the voice channel the bot should join (opt
66
# AI Model API Keys
77
OPENAI_API_KEY= # OpenAI API key, starting with sk-
88

9+
# Eternal AI's Decentralized Inference API
910
ETERNALAI_URL=
11+
ETERNALAI_MODEL= #Default: "neuralmagic/Meta-Llama-3.1-405B-Instruct-quantized.w4a16"
1012
ETERNALAI_API_KEY=
1113

1214
GROK_API_KEY= # GROK API Key
@@ -17,6 +19,8 @@ GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
1719
ALI_BAILIAN_API_KEY= # Ali Bailian API Key
1820
VOLENGINE_API_KEY= # VolEngine API Key
1921

22+
HYPERBOLIC_API_KEY= # Hyperbolic API Key
23+
2024
# Speech Synthesis
2125
ELEVENLABS_XI_API_KEY= # API key from elevenlabs
2226

@@ -74,6 +78,19 @@ SMALL_OLLAMA_MODEL= # Default: llama3.2
7478
MEDIUM_OLLAMA_MODEL= # Default: hermes3
7579
LARGE_OLLAMA_MODEL= # Default: hermes3:70b
7680

81+
# Google Configuration
82+
GOOGLE_MODEL=
83+
SMALL_GOOGLE_MODEL= # Default: gemini-1.5-flash-latest
84+
MEDIUM_GOOGLE_MODEL= # Default: gemini-1.5-flash-latest
85+
LARGE_GOOGLE_MODEL= # Default: gemini-1.5-pro-latest
86+
EMBEDDING_GOOGLE_MODEL= # Default: text-embedding-004
87+
88+
# Groq Configuration
89+
SMALL_GROQ_MODEL= # Default: llama-3.1-8b-instant
90+
MEDIUM_GROQ_MODEL= # Default: llama-3.3-70b-versatile
91+
LARGE_GROQ_MODEL= # Default: llama-3.2-90b-vision-preview
92+
EMBEDDING_GROQ_MODEL= # Default: llama-3.1-8b-instant
93+
7794
#LlamaLocal Configuration
7895
LLAMALOCAL_PATH= # Default: "" which is the current directory in plugin-node/dist/ which gets destroyed and recreated on every build
7996

@@ -82,15 +99,26 @@ ANTHROPIC_API_KEY= # For Claude
8299
HEURIST_API_KEY= # Get from https://heurist.ai/dev-access
83100

84101
# Heurist Models
85-
SMALL_HEURIST_LANGUAGE_MODEL=
86-
MEDIUM_HEURIST_LANGUAGE_MODEL=
87-
LARGE_HEURIST_LANGUAGE_MODEL=
88-
HEURIST_IMAGE_MODEL=
102+
SMALL_HEURIST_MODEL= # Default: meta-llama/llama-3-70b-instruct
103+
MEDIUM_HEURIST_MODEL= # Default: meta-llama/llama-3-70b-instruct
104+
LARGE_HEURIST_MODEL= # Default: meta-llama/llama-3.1-405b-instruct
105+
HEURIST_IMAGE_MODEL= # Default: PepeXL
89106

90107
# Gaianet Configuration
91108
GAIANET_MODEL=
92109
GAIANET_SERVER_URL=
110+
111+
SMALL_GAIANET_MODEL= # Default: llama3b
112+
SMALL_GAIANET_SERVER_URL= # Default: https://llama3b.gaia.domains/v1
113+
114+
MEDIUM_GAIANET_MODEL= # Default: llama
115+
MEDIUM_GAIANET_SERVER_URL= # Default: https://llama8b.gaia.domains/v1
116+
117+
LARGE_GAIANET_MODEL= # Default: qwen72b
118+
LARGE_GAIANET_SERVER_URL= # Default: https://qwen72b.gaia.domains/v1
119+
93120
GAIANET_EMBEDDING_MODEL=
121+
USE_GAIANET_EMBEDDING= # Set to TRUE for GAIANET/768, leave blank for local
94122

95123
# EVM
96124
EVM_PRIVATE_KEY=
@@ -130,10 +158,12 @@ STARKNET_RPC_URL=
130158
# Intiface Configuration
131159
INTIFACE_WEBSOCKET_URL=ws://localhost:12345
132160

133-
# Farcaster
134-
FARCASTER_HUB_URL=
135-
FARCASTER_FID=
136-
FARCASTER_PRIVATE_KEY=
161+
# Farcaster Neynar Configuration
162+
FARCASTER_FID= # the FID associated with the account your are sending casts from
163+
FARCASTER_NEYNAR_API_KEY= # Neynar API key: https://neynar.com/
164+
FARCASTER_NEYNAR_SIGNER_UUID= # signer for the account you are sending casts from. create a signer here: https://dev.neynar.com/app
165+
FARCASTER_DRY_RUN=false # Set to true if you want to run the bot without actually publishing casts
166+
FARCASTER_POLL_INTERVAL=120 # How often (in seconds) the bot should check for farcaster interactions (replies and mentions)
137167

138168
# Coinbase
139169
COINBASE_COMMERCE_KEY= # from coinbase developer portal
@@ -142,7 +172,8 @@ COINBASE_PRIVATE_KEY= # from coinbase developer portal
142172
# if not configured it will be generated and written to runtime.character.settings.secrets.COINBASE_GENERATED_WALLET_ID and runtime.character.settings.secrets.COINBASE_GENERATED_WALLET_HEX_SEED
143173
COINBASE_GENERATED_WALLET_ID= # not your address but the wallet id from generating a wallet through the plugin
144174
COINBASE_GENERATED_WALLET_HEX_SEED= # not your address but the wallet hex seed from generating a wallet through the plugin and calling export
145-
175+
# for webhook plugin the uri you want to send the webhook to for dummy ones use https://webhook.site
176+
COINBASE_NOTIFICATION_URI=
146177
# Conflux Configuration
147178
CONFLUX_CORE_PRIVATE_KEY=
148179
CONFLUX_CORE_SPACE_RPC_URL=
@@ -156,14 +187,6 @@ ZEROG_EVM_RPC=
156187
ZEROG_PRIVATE_KEY=
157188
ZEROG_FLOW_ADDRESS=
158189

159-
# Coinbase
160-
COINBASE_COMMERCE_KEY=
161-
COINBASE_API_KEY=
162-
COINBASE_PRIVATE_KEY=
163-
164-
COINBASE_GENERATED_WALLET_ID=
165-
COINBASE_GENERATED_WALLET_HEX_SEED=
166-
167190
# TEE Configuration
168191
DSTACK_SIMULATOR_ENDPOINT=
169192
WALLET_SECRET_SALT= # ONLY DEFINE IF YOU WANT TO USE TEE Plugin, otherwise it will throw errors
@@ -182,6 +205,12 @@ WHATSAPP_BUSINESS_ACCOUNT_ID= # Business Account ID from Facebook Business Mana
182205
WHATSAPP_WEBHOOK_VERIFY_TOKEN= # Custom string for webhook verification
183206
WHATSAPP_API_VERSION=v17.0 # WhatsApp API version (default: v17.0)
184207

208+
# Flow Blockchain Configuration
209+
FLOW_ADDRESS=
210+
FLOW_PRIVATE_KEY= # Private key for SHA3-256 + P256 ECDSA
211+
FLOW_NETWORK= # Default: mainnet
212+
FLOW_ENDPOINT_URL= # Default: https://mainnet.onflow.org
213+
185214
# ICP
186215
INTERNET_COMPUTER_PRIVATE_KEY=
187216
INTERNET_COMPUTER_ADDRESS=

.github/workflows/ci.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Build packages
4040
run: pnpm run build
4141

42-
# - name: Upload coverage reports to Codecov
43-
# uses: codecov/codecov-action@v5
44-
# with:
45-
# token: ${{ secrets.CODECOV_TOKEN }}
42+
- name: Upload coverage reports to Codecov
43+
uses: codecov/codecov-action@v5
44+
with:
45+
token: ${{ secrets.CODECOV_TOKEN }}

.vscode/settings.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"typescript.format.enable": false,
1313
"files.trimTrailingWhitespace": true,
1414
"editor.trimAutoWhitespace": true,
15+
"cadence.test.maxConcurrency": 5,
16+
"cadence.customConfigPath": "packages/plugin-flow/flow.json",
1517
"[properties]": {
1618
"editor.defaultFormatter": "foxundermoon.shell-format"
1719
},
@@ -42,4 +44,4 @@
4244
"[shellscript]": {
4345
"editor.defaultFormatter": "foxundermoon.shell-format"
4446
}
45-
}
47+
}

CHANGELOG.md

+34
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# Changelog
22

3+
## [v0.1.5-alpha.5](https://github.com/ai16z/eliza/tree/v0.1.5-alpha.5) (2024-12-07)
4+
5+
[Full Changelog](https://github.com/ai16z/eliza/compare/v0.1.5-alpha.4...v0.1.5-alpha.5)
6+
7+
**Merged pull requests:**
8+
9+
- feat: working farcaster client with neynar [\#570](https://github.com/ai16z/eliza/pull/570) ([sayangel](https://github.com/sayangel))
10+
11+
## [v0.1.5-alpha.4](https://github.com/ai16z/eliza/tree/v0.1.5-alpha.4) (2024-12-06)
12+
13+
[Full Changelog](https://github.com/ai16z/eliza/compare/v0.1.5-alpha.3...v0.1.5-alpha.4)
14+
15+
**Fixed bugs:**
16+
17+
- `pnpm start` crashes if there is too much data in knowledge [\#866](https://github.com/ai16z/eliza/issues/866)
18+
- Twitter login some function not work. [\#857](https://github.com/ai16z/eliza/issues/857)
19+
20+
**Merged pull requests:**
21+
22+
- docs: Add AI Agent Dev School Parts 2 and 3 summaries and timestamps [\#877](https://github.com/ai16z/eliza/pull/877) ([YoungPhlo](https://github.com/YoungPhlo))
23+
- Add google model env vars [\#875](https://github.com/ai16z/eliza/pull/875) ([peersky](https://github.com/peersky))
24+
- Update quickstart.md [\#872](https://github.com/ai16z/eliza/pull/872) ([oxSaturn](https://github.com/oxSaturn))
25+
- Remove duplicated coinbase CDP options in .env.example [\#863](https://github.com/ai16z/eliza/pull/863) ([juntao](https://github.com/juntao))
26+
- test: adding environment and knowledge tests [\#862](https://github.com/ai16z/eliza/pull/862) ([ai16z-demirix](https://github.com/ai16z-demirix))
27+
- Updated quickstart.md to contemplate common issue [\#861](https://github.com/ai16z/eliza/pull/861) ([fede2442](https://github.com/fede2442))
28+
- fix: Use LARGE models for responses [\#853](https://github.com/ai16z/eliza/pull/853) ([lalalune](https://github.com/lalalune))
29+
- Update Node version in local-development.md [\#850](https://github.com/ai16z/eliza/pull/850) ([oxSaturn](https://github.com/oxSaturn))
30+
- fix: plugins docs [\#848](https://github.com/ai16z/eliza/pull/848) ([cygaar](https://github.com/cygaar))
31+
- fix: run release workflow after a github release is created [\#846](https://github.com/ai16z/eliza/pull/846) ([cygaar](https://github.com/cygaar))
32+
- fix: Include scripts/postinstall.js in the final NPM package [\#843](https://github.com/ai16z/eliza/pull/843) ([martincik](https://github.com/martincik))
33+
- feat: add Aptos plugin [\#818](https://github.com/ai16z/eliza/pull/818) ([0xaptosj](https://github.com/0xaptosj))
34+
- feat: add coinbase ERC20, ERC721, and ERC1155 tokenContract deployment / invokement plugin [\#803](https://github.com/ai16z/eliza/pull/803) ([monilpat](https://github.com/monilpat))
35+
- feat: coinbase webhook + add more examples + testing [\#801](https://github.com/ai16z/eliza/pull/801) ([monilpat](https://github.com/monilpat))
36+
337
## [v0.1.5-alpha.3](https://github.com/ai16z/eliza/tree/v0.1.5-alpha.3) (2024-12-04)
438

539
[Full Changelog](https://github.com/ai16z/eliza/compare/v0.1.5-alpha.2...v0.1.5-alpha.3)

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
</div>
66

77
<div align="center">
8-
8+
99
📖 [Documentation](https://ai16z.github.io/eliza/) | 🎯 [Examples](https://github.com/thejoven/awesome-eliza)
10-
10+
1111
</div>
1212

1313
## 🌍 README Translations
1414

15-
[中文说明](./README_CN.md) | [日本語の説明](./README_JA.md) | [한국어 설명](./README_KOR.md) | [Français](./README_FR.md) | [Português](./README_PTBR.md) | [Türkçe](./README_TR.md) | [Русский](./README_RU.md) | [Español](./README_ES.md) | [Italiano](./README_IT.md)
15+
[中文说明](./README_CN.md) | [日本語の説明](./README_JA.md) | [한국어 설명](./README_KOR.md) | [Français](./README_FR.md) | [Português](./README_PTBR.md) | [Türkçe](./README_TR.md) | [Русский](./README_RU.md) | [Español](./README_ES.md) | [Italiano](./README_IT.md) | [ไทย](./README_TH.md)
1616

1717
## ✨ Features
1818

README_KOR.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pnpm install --include=optional sharp
114114

115115
### Community & contact
116116

117-
- [깃헙 이슈](https://github.com/ai16z/eliza/issues). 용도: Eliza 사용 중 발견된 버그 리포트, 기능 제안.
117+
- [Github Issues](https://github.com/ai16z/eliza/issues). 용도: Eliza 사용 중 발견된 버그 리포트, 기능 제안.
118118
- [Discord](https://discord.gg/ai16z). 용도: 애플리케이션 공유 및 커뮤니티 활동.
119119

120120
## 컨트리뷰터

README_TH.md

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# Eliza (อีไลซ่า) 🤖
2+
3+
<div align="center">
4+
<img src="./docs/static/img/eliza_banner.jpg" alt="Eliza Banner" width="100%" />
5+
</div>
6+
7+
<div align="center">
8+
9+
📖 [คู่มือ](https://ai16z.github.io/eliza/) | 🎯 [ตัวอย่าง](https://github.com/thejoven/awesome-eliza)
10+
11+
</div>
12+
13+
## ✨ ฟีเจอร์
14+
15+
- 🛠️ สามารถเชื่อมต่อ Discord, Twitter และ Telegram ได้
16+
- 🔗 ซัพพอร์ตครบทุกโมเดล (Llama, Grok, OpenAI, Anthropic, ฯลฯ)
17+
- 👥 มัลติเอเจนต์และห้องสนทนา
18+
- 📚 ง่ายต่อการดึงและเข้าถึงข้อมูลเอกสาร
19+
- 💾 มีหน่วยความจำและที่จัดเก็บข้อมูล
20+
- 🚀 ง่ายต่อการปรับแต่งไม่ว่าจะเป็นการสร้าง clients หรือกำหนด action
21+
- ☁️ รองรับหลายโมเดล (local Llama, OpenAI, Anthropic, Groq, ฯลฯ)
22+
- 📦 ครบเครื่องเรื่อง AI agent!
23+
24+
## 🎯 ตัวอย่างการนำไปใช้
25+
26+
- 🤖 แชทบอท
27+
- 🕵️ เอเจนต์อิสระ (Autonomous Agent)
28+
- 📈 จัดการฝั่งธุรกิจ
29+
- 🎮 ตัวละครในเกมที่ไม่ใช่ผู้เล่น (NPC)
30+
- 🧠 การเทรด
31+
32+
## 🚀 เริ่มต้นการใช้งาน
33+
34+
### สิ่งที่จำเป็นก่อนเริ่มใช้งาน
35+
36+
- [Python 2.7+](https://www.python.org/downloads/)
37+
- [Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
38+
- [pnpm](https://pnpm.io/installation)
39+
40+
> **หมายเหตุสำหรับผู้ใช้ Windows:** จำเป็นต้องมี [WSL 2](https://learn.microsoft.com/en-us/windows/wsl/install-manual)
41+
42+
### เริ่มใช้งานด้วยตัวอย่าง (แนะนำ)
43+
44+
```bash
45+
git clone https://github.com/ai16z/eliza-starter.git
46+
47+
cp .env.example .env
48+
49+
pnpm i && pnpm start
50+
```
51+
52+
จากนั้นอ่าน [คู่มือ](https://ai16z.github.io/eliza/) เพื่อศึกษาวิธีการปรับแต่ง Eliza
53+
54+
### เริ่มใช้งาน Eliza ด้วยตนเอง (แนะนำสำหรับคนที่มีประสบการณ์)
55+
56+
```bash
57+
# โคลน repo
58+
git clone https://github.com/ai16z/eliza.git
59+
60+
# Checkout release ล่าสุด
61+
# โปรเจกต์นี้มีการอัปเดตอยู่บ่อยครั้ง เราแนะนำให้ checkout release ล่าสุดเสมอ
62+
git checkout $(git describe --tags --abbrev=0)
63+
```
64+
65+
### เริ่มใช้งาน Eliza ผ่าน Gitpod
66+
67+
[![เปิดใน Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ai16z/eliza/tree/main)
68+
69+
### แก้ไขไฟล์ .env
70+
71+
คัดลอก .env.example ไปเป็น .env และระบุค่าที่เหมาะสม
72+
73+
```
74+
cp .env.example .env
75+
```
76+
77+
หมายเหตุ: ไม่จำเป็นต้องใช้ .env หากคุณอยากใช้งานเอเจนต์หลายๆตัวพร้อมกัน คุณสามารถส่ง secrets ผ่าน JSON ของตัวละครได้
78+
79+
### เริ่มใช้งาน Eliza แบบอัตโนมัติ
80+
81+
จะทำการติดตั้งโปรเจกต์ทั้งหมด และเริ่มต้น bot ด้วยตัวละครแบบค่าเริ่มต้น
82+
83+
```bash
84+
sh scripts/start.sh
85+
```
86+
87+
### แก้ไขไฟล์ตัวละคร
88+
89+
1. เปิด `agent/src/character.ts` เพื่อแก้ไขตัวละครเริ่มต้น นำคอมเม้นออกและเริ่มแก้ไข
90+
91+
92+
2. การโหลดตัวละคร custom:
93+
- ใช้ `pnpm start --characters="path/to/your/character.json"`
94+
- สามารถโหลดหลายๆตัวละครพร้อมกันได้
95+
3. เชื่อมต่อกับ X (Twitter)
96+
- เปลี่ยน `"clients": []` เป็น `"clients": ["twitter"]` ในไฟล์ตัวละครเพื่อเชื่อมต่อกับ X (Twitter)
97+
98+
### เริ่มใช้งาน Eliza ด้วยตนเอง
99+
100+
```bash
101+
pnpm i
102+
pnpm build
103+
pnpm start
104+
105+
# โปรเจกต์นี้มีการอัปเดตอยู่บ่อยครั้ง บางครั้งอาจต้องทำการ clean โปรเจกต์ถ้าหากกลับมาทำใหม่
106+
pnpm clean
107+
```
108+
109+
#### สิ่งที่จำเป็นเพิ่มเติม
110+
111+
คุณอาจต้องติดตั้ง Sharp ถ้าหากคุณเห็นข้อความ error เมื่อเริ่มต้น สามารถลองติดตั้งด้วยคำสั่งต่อไปนี้:
112+
113+
```
114+
pnpm install --include=optional sharp
115+
```
116+
117+
### ชุมชนและข้อมูลการติดต่อ
118+
119+
- [GitHub Issues](https://github.com/ai16z/eliza/issues). เหมาะสำหรับ: เมื่อปัญหาที่พบเมื่อใช้ Eliza และข้อเสนอแนะเกี่ยวกับฟีเจอร์เพิ่มเติม
120+
- [Discord](https://discord.gg/ai16z). เหมาะสำหรับ: แชร์ผลงานแอปพลิเคชั่นและพบปะกับคอมมูนิตี้
121+
122+
## ผู้มีส่วนร่วม
123+
124+
<a href="https://github.com/ai16z/eliza/graphs/contributors">
125+
<img src="https://contrib.rocks/image?repo=ai16z/eliza" />
126+
</a>
127+
128+
## ประวัติดาว
129+
130+
[![Star History Chart](https://api.star-history.com/svg?repos=ai16z/eliza&type=Date)](https://star-history.com/#ai16z/eliza&Date)

agent/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ai16z/agent",
3-
"version": "0.1.5-alpha.3",
3+
"version": "0.1.5-alpha.5",
44
"main": "src/index.ts",
55
"type": "module",
66
"scripts": {
@@ -22,6 +22,7 @@
2222
"@ai16z/client-auto": "workspace:*",
2323
"@ai16z/client-direct": "workspace:*",
2424
"@ai16z/client-discord": "workspace:*",
25+
"@ai16z/client-farcaster": "workspace:*",
2526
"@ai16z/client-telegram": "workspace:*",
2627
"@ai16z/client-twitter": "workspace:*",
2728
"@ai16z/eliza": "workspace:*",
@@ -32,6 +33,7 @@
3233
"@ai16z/plugin-coinbase": "workspace:*",
3334
"@ai16z/plugin-conflux": "workspace:*",
3435
"@ai16z/plugin-evm": "workspace:*",
36+
"@ai16z/plugin-flow": "workspace:*",
3537
"@ai16z/plugin-goat": "workspace:*",
3638
"@ai16z/plugin-icp": "workspace:*",
3739
"@ai16z/plugin-image-generation": "workspace:*",

0 commit comments

Comments
 (0)