Skip to content

Commit 8587414

Browse files
committed
Merge branch 'main' into feature/tests
2 parents 5542f76 + 4b1caa0 commit 8587414

File tree

244 files changed

+35721
-24419
lines changed

Some content is hidden

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

244 files changed

+35721
-24419
lines changed

.env.example

+9-1
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ LARGE_OLLAMA_MODEL= #default hermes3:70b
5555
# For asking Claude stuff
5656
ANTHROPIC_API_KEY=
5757

58-
# Heurist API
58+
# Heurist API (Get API Key at https://heurist.ai/dev-access)
5959
HEURIST_API_KEY=
60+
SMALL_HEURIST_LANGUAGE_MODEL=
61+
MEDIUM_HEURIST_LANGUAGE_MODEL=
62+
LARGE_HEURIST_LANGUAGE_MODEL=
63+
HEURIST_IMAGE_MODEL=
6064

6165
WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
6266
WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY
@@ -75,3 +79,7 @@ TELEGRAM_BOT_TOKEN=
7579

7680
TOGETHER_API_KEY=
7781
SERVER_PORT=3000
82+
83+
# Starknet
84+
STARKNET_ADDRESS=
85+
STARKNET_PRIVATE_KEY=

.github/workflows/pr.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: PR Title Check
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize]
6+
7+
jobs:
8+
check-pr-title:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Check out the repository
13+
uses: actions/checkout@v2
14+
15+
- name: Validate PR title
16+
id: validate
17+
run: |
18+
PR_TITLE=$(jq -r .pull_request.title "$GITHUB_EVENT_PATH")
19+
echo "PR Title: $PR_TITLE"
20+
if [[ ! "$PR_TITLE" =~ ^(feat|fix|docs|style|refactor|test|chore):\ .+ ]]; then
21+
echo "PR title does not match the required pattern."
22+
exit 1
23+
fi
24+
25+
- name: Set status
26+
if: failure()
27+
run: |
28+
gh pr comment ${{ github.event.pull_request.number }} --body "❌ PR title does not match the required pattern. Please use the format: 'type: description' (e.g., 'feat: add new feature')."

README.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
<img src="./docs/static/img/eliza_banner.jpg" alt="Eliza Banner" width="100%" />
44

55
### [For Chinese Version: 中文说明](./README_CN.md)
6+
67
### [For Japanese Version: 日本語の説明](./README_JA.md)
8+
79
### [For Korean Version: 한국어 설명](./README_KOR.md)
10+
811
### [For French Version: Instructions en français](./README_FR.md)
12+
913
### [For Portuguese Version: Instruções em português](./README_PTBR.md)
1014

1115
## Features
@@ -193,4 +197,21 @@ pnpm docker
193197

194198
This will drop you into a shell inside the docker container where you can continue to configure the instance
195199

196-
and then you can start it with `pnpm start`
200+
and then you can start it with `pnpm start`
201+
202+
203+
## Community & contact
204+
205+
* [GitHub Issues](https://github.com/ai16z/eliza/issues). Best for: bugs you encounter using Eliza, and feature proposals.
206+
* [Discord](https://discord.gg/ai16z). Best for: sharing your applications and hanging out with the community.
207+
208+
209+
**Contributors**
210+
211+
<a href="https://github.com/ai16z/eliza/graphs/contributors">
212+
<img src="https://contrib.rocks/image?repo=ai16z/eliza" />
213+
</a>
214+
215+
## Star History
216+
217+
[![Star History Chart](https://api.star-history.com/svg?repos=ai16z/eliza&type=Date)](https://star-history.com/#ai16z/eliza&Date)

README_FR.md

+20-21
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44

55
## la fonctionnalité
66

7-
- 🛠 soutenir la connexion discord/ twitter /telegram
8-
- 👥 soutien aux agents multimodaux
9-
- 📚 simple à importer des documents et interagir avec les documents
10-
- mémoire et stockage des documents accessibles
11-
- 🚀 haute scalabilité, vous pouvez personnaliser les clients et les comportements pour une extension fonctionnelle
12-
- ☁ ️ plusieurs modèles, y compris Llama, OpenAI Grok Anthropic, etc.
13-
- 📦 simple et facile à utiliser
7+
- 🛠 soutenir la connexion discord/ twitter /telegram
8+
- 👥 soutien aux agents multimodaux
9+
- 📚 simple à importer des documents et interagir avec les documents
10+
- mémoire et stockage des documents accessibles
11+
- 🚀 haute scalabilité, vous pouvez personnaliser les clients et les comportements pour une extension fonctionnelle
12+
- ☁ ️ plusieurs modèles, y compris Llama, OpenAI Grok Anthropic, etc.
13+
- 📦 simple et facile à utiliser
1414

1515
Que pouvez-vous faire avec Eliza?
1616

17-
- 🤖 le chatbot
18-
- 🕵 ️ Agents autonomes
19-
- 📈 processus métier pour automatiser le traitement
20-
- 🎮 jeux PNJ
17+
- 🤖 le chatbot
18+
- 🕵 ️ Agents autonomes
19+
- 📈 processus métier pour automatiser le traitement
20+
- 🎮 jeux PNJ
2121

2222
# commencez à utiliser
2323

@@ -30,17 +30,16 @@ Que pouvez-vous faire avec Eliza?
3030

3131
### éditer le fichier.env
3232

33-
- copiez.env.example en.env et remplissez la valeur appropriée
34-
- modifier l’environnement twitter et entrer votre compte twitter et mot de passe
33+
- copiez.env.example en.env et remplissez la valeur appropriée
34+
- modifier l’environnement twitter et entrer votre compte twitter et mot de passe
3535

3636
### modifier les fichiers de rôles
3737

38-
- voir le document ` src/core/defaultCharacter ts ` - vous pouvez le modifier
39-
- vous pouvez également utiliser `node --loader ts-node/esm src/index.ts --characters="path/to/your/character.json" ` et simultanément plusieurs robots.
38+
- voir le document `src/core/defaultCharacter ts` - vous pouvez le modifier
39+
- vous pouvez également utiliser `node --loader ts-node/esm src/index.ts --characters="path/to/your/character.json" ` et simultanément plusieurs robots.
4040

4141
Après avoir terminé la configuration des fichiers de compte et de rôle, lancez votre bot en tapant la ligne de commande suivante:
4242

43-
4443
```
4544
pnpm i
4645
pnpm start
@@ -164,9 +163,9 @@ pnpm test:sqljs # Run tests with SQL.js
164163

165164
Les tests sont écrits en Jest et se trouvent dans le fichier SRC /\*_/_.test.ts. L’environnement de test est configuré comme suit:
166165

167-
- chargement des variables d’environnement de.env.test
168-
- utilisez un temps d’attente de 2 minutes pour exécuter des tests de longue durée
169-
- support du module ESM
170-
- exécuter les tests dans l’ordre (--runInBand)
166+
- chargement des variables d’environnement de.env.test
167+
- utilisez un temps d’attente de 2 minutes pour exécuter des tests de longue durée
168+
- support du module ESM
169+
- exécuter les tests dans l’ordre (--runInBand)
171170

172-
Pour créer un nouveau test, ajoutez un fichier.test.ts à côté du code à tester.
171+
Pour créer un nouveau test, ajoutez un fichier.test.ts à côté du code à tester.

README_JA.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,37 @@
44

55
## 機能
66

7-
- 🛠 Discord、Twitter、Telegramのフル機能コネクタ
8-
- 👥 マルチエージェントおよびルームサポート
9-
- 📚 ドキュメントの簡単な取り込みと対話
10-
- 💾 検索可能なメモリおよびドキュメントストア
11-
- 🚀 高い拡張性 - 機能を拡張するための独自のアクションとクライアントを作成可能
12-
- ☁️ Llama、OpenAI、Anthropic、Groqなど、多くのモデルをサポート
13-
- 📦 すぐに使える!
7+
- 🛠 Discord、Twitter、Telegramのフル機能コネクタ
8+
- 👥 マルチエージェントおよびルームサポート
9+
- 📚 ドキュメントの簡単な取り込みと対話
10+
- 💾 検索可能なメモリおよびドキュメントストア
11+
- 🚀 高い拡張性 - 機能を拡張するための独自のアクションとクライアントを作成可能
12+
- ☁️ Llama、OpenAI、Anthropic、Groqなど、多くのモデルをサポート
13+
- 📦 すぐに使える!
1414

1515
## 何に使えるのか?
1616

17-
- 🤖 チャットボット
18-
- 🕵️ 自律エージェント
19-
- 📈 ビジネスプロセスの処理
20-
- 🎮 ビデオゲームのNPC
17+
- 🤖 チャットボット
18+
- 🕵️ 自律エージェント
19+
- 📈 ビジネスプロセスの処理
20+
- 🎮 ビデオゲームのNPC
2121

2222
# 始め方
2323

2424
**必須条件:**
2525

26-
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
27-
- [pnpm](https://pnpm.io/installation)
26+
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
27+
- [pnpm](https://pnpm.io/installation)
2828

2929
### .envファイルの編集
3030

31-
- .env.exampleを.envにコピーし、適切な値を入力
32-
- TWITTER環境変数を編集して、ボットのユーザー名とパスワードを追加
31+
- .env.exampleを.envにコピーし、適切な値を入力
32+
- TWITTER環境変数を編集して、ボットのユーザー名とパスワードを追加
3333

3434
### キャラクターファイルの編集
3535

36-
- `src/core/defaultCharacter.ts`ファイルを確認 - これを変更可能
37-
- `pnpm start --characters="path/to/your/character.json"`を使用してキャラクターをロードし、複数のボットを同時に実行可能
36+
- `src/core/defaultCharacter.ts`ファイルを確認 - これを変更可能
37+
- `pnpm start --characters="path/to/your/character.json"`を使用してキャラクターをロードし、複数のボットを同時に実行可能
3838

3939
.envファイルとキャラクターファイルを設定した後、以下のコマンドでボットを起動可能:
4040

@@ -166,9 +166,9 @@ pnpm test:sqljs # SQL.jsでテストを実行
166166

167167
テストはJestを使用して記述されており、`src/**/*.test.ts`ファイルにあります。テスト環境は次のように構成されています:
168168

169-
- `.env.test`から環境変数をロード
170-
- 長時間実行されるテストのために2分のタイムアウトを使用
171-
- ESMモジュールをサポート
172-
- テストを順番に実行 (--runInBand)
169+
- `.env.test`から環境変数をロード
170+
- 長時間実行されるテストのために2分のタイムアウトを使用
171+
- ESMモジュールをサポート
172+
- テストを順番に実行 (--runInBand)
173173

174174
新しいテストを作成するには、テストするコードの隣に`.test.ts`ファイルを追加します。

README_KOR.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
- 📚 높은 유연성: 개발자가 쉽게 데이터를 추가하고, 이를 활용해 다양한 기능을 만들 수 있습니다.
1010
- 💾 검색 지원: 당신의 데이터와 작업을 쉽게 찾아볼 수 있도록, 검색 기능을 지원합니다.
1111
- 🚀 높은 확장성: 자신의 동작과 클라이언트를 만들어 기능을 확장할 수 있습니다.
12-
- ☁️ 다양한 AI 모델 지원: local Llama, OpenAI, Anthropic, Groq 등 다양한 AI 모델을 지원합니다
13-
- 📦 즐겁게 개발해 봐요!
12+
- ☁️ 다양한 AI 모델 지원: local Llama, OpenAI, Anthropic, Groq 등 다양한 AI 모델을 지원합니다
13+
- 📦 즐겁게 개발해 봐요!
1414

1515
## eliza로 어떤걸 만들 수 있을까요?
1616

1717
- 🤖 챗봇 개발
18-
- 🕵 ️AI가 자율적으로 결과를 만들어줘요!
18+
- 🕵 ️AI가 자율적으로 결과를 만들어줘요!
1919
- 📈 업무처리 자동화
2020
- 🎮 비디오 게임 NPC
2121

@@ -66,7 +66,7 @@ pnpm start
6666

6767
## 기타 요구 사항
6868

69-
시작시 오류가 발견되면, 아래의 명령어로 Sharp를 설치해보세요:
69+
시작시 오류가 발견되면, 아래의 명령어로 Sharp를 설치해보세요:
7070

7171
```
7272
pnpm install --include=optional sharp
@@ -141,7 +141,7 @@ npx --no node-llama-cpp source download --gpu cuda
141141
### 로컬 실행
142142

143143
다음 중 한가지 옵션을 선택하여 XAI_MODEL 을 추가하세요. [Run with
144-
Llama](#run-with-llama) - X_SERVER_URL 와 XAI_API_KEY 는 비워둬도 됩니다.
144+
Llama](#run-with-llama) - X_SERVER_URL 와 XAI_API_KEY 는 비워둬도 됩니다.
145145
이 파일을 통해 huggingface 에서 모델이 다운로드 되며, 로컬로 쿼리 됩니다.
146146

147147
# 클라이언트
@@ -169,7 +169,7 @@ pnpm test:sqlite # Run tests with SQLite
169169
pnpm test:sqljs # Run tests with SQL.js
170170
```
171171

172-
테스트 결과는 Jest를 통해 작성되며, `src/**/*.test.ts` 파일에서 확인할 수 있습니다.
172+
테스트 결과는 Jest를 통해 작성되며, `src/**/*.test.ts` 파일에서 확인할 수 있습니다.
173173
테스트 환경 구성단계:
174174

175175
- `.env.test` 에서 환경변수가 불러와집니다.

README_PTBR.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# Começando
2323

2424
**Pré-requisitos (OBRIGATÓRIO):**
25-
25+
2626
- [Python 2.7+](https://www.python.org/downloads/)
2727
- [Node.js 23.1+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2828
- [pnpm](https://pnpm.io/installation)

docs/api/classes/AgentRuntime.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ Searchable document fragments
464464

465465
#### Defined in
466466

467-
[packages/core/src/runtime.ts:372](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L372)
467+
[packages/core/src/runtime.ts:368](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L368)
468468

469469
***
470470

@@ -486,7 +486,7 @@ The number of recent messages to be kept in memory.
486486

487487
#### Defined in
488488

489-
[packages/core/src/runtime.ts:394](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L394)
489+
[packages/core/src/runtime.ts:390](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L390)
490490

491491
***
492492

@@ -512,7 +512,7 @@ The action to register.
512512

513513
#### Defined in
514514

515-
[packages/core/src/runtime.ts:402](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L402)
515+
[packages/core/src/runtime.ts:398](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L398)
516516

517517
***
518518

@@ -534,7 +534,7 @@ The evaluator to register.
534534

535535
#### Defined in
536536

537-
[packages/core/src/runtime.ts:411](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L411)
537+
[packages/core/src/runtime.ts:407](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L407)
538538

539539
***
540540

@@ -556,7 +556,7 @@ The context provider to register.
556556

557557
#### Defined in
558558

559-
[packages/core/src/runtime.ts:419](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L419)
559+
[packages/core/src/runtime.ts:415](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L415)
560560

561561
***
562562

@@ -588,7 +588,7 @@ The message to process.
588588

589589
#### Defined in
590590

591-
[packages/core/src/runtime.ts:428](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L428)
591+
[packages/core/src/runtime.ts:424](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L424)
592592

593593
***
594594

@@ -624,7 +624,7 @@ The results of the evaluation.
624624

625625
#### Defined in
626626

627-
[packages/core/src/runtime.ts:501](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L501)
627+
[packages/core/src/runtime.ts:497](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L497)
628628

629629
***
630630

@@ -656,7 +656,7 @@ An error if the participant cannot be added.
656656

657657
#### Defined in
658658

659-
[packages/core/src/runtime.ts:571](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L571)
659+
[packages/core/src/runtime.ts:567](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L567)
660660

661661
***
662662

@@ -692,7 +692,7 @@ The user name to ensure the existence of.
692692

693693
#### Defined in
694694

695-
[packages/core/src/runtime.ts:587](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L587)
695+
[packages/core/src/runtime.ts:583](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L583)
696696

697697
***
698698

@@ -716,7 +716,7 @@ The user name to ensure the existence of.
716716

717717
#### Defined in
718718

719-
[packages/core/src/runtime.ts:607](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L607)
719+
[packages/core/src/runtime.ts:603](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L603)
720720

721721
***
722722

@@ -746,7 +746,7 @@ The user name to ensure the existence of.
746746

747747
#### Defined in
748748

749-
[packages/core/src/runtime.ts:618](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L618)
749+
[packages/core/src/runtime.ts:614](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L614)
750750

751751
***
752752

@@ -777,7 +777,7 @@ An error if the room cannot be created.
777777

778778
#### Defined in
779779

780-
[packages/core/src/runtime.ts:654](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L654)
780+
[packages/core/src/runtime.ts:650](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L650)
781781

782782
***
783783

@@ -807,7 +807,7 @@ The state of the agent.
807807

808808
#### Defined in
809809

810-
[packages/core/src/runtime.ts:667](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L667)
810+
[packages/core/src/runtime.ts:663](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L663)
811811

812812
***
813813

0 commit comments

Comments
 (0)