Skip to content

Commit 329db11

Browse files
committed
handle merge conflicts
2 parents ff28e99 + 5fa2184 commit 329db11

Some content is hidden

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

44 files changed

+2144
-1973
lines changed

.env.example

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ DISCORD_APPLICATION_ID=
33
DISCORD_API_TOKEN= # Bot token
44
OPENAI_API_KEY=sk-* # OpenAI API key, starting with sk-
55
REDPILL_API_KEY= # REDPILL API Key
6+
GROK_API_KEY= # GROK API Key
67
GROQ_API_KEY=gsk_*
78
OPENROUTER_API_KEY=
89
GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key
@@ -37,20 +38,20 @@ POST_INTERVAL_MAX= #180 #Default
3738
#USE IMAGE GEN
3839
IMAGE_GEN= #TRUE
3940

40-
#Leave blank to use local embeddings
41+
#Leave blank to use local embeddings
4142
USE_OPENAI_EMBEDDING= #TRUE
4243

4344
#OpenRouter (Use one model for everything or set individual for small, medium, large tasks)
4445
#leave blank to use defaults hermes 70b for small tasks & 405b for medium/large tasks
4546
OPENROUTER_MODEL=
46-
SMALL_OPENROUTER_MODEL=
47-
MEDIUM_OLLAMA_MODEL=
48-
LARGE_OLLAMA_MODEL=
47+
SMALL_OPENROUTER_MODEL=
48+
MEDIUM_OLLAMA_MODEL=
49+
LARGE_OLLAMA_MODEL=
4950

5051

51-
#Set to Use for New OLLAMA provider
52+
#Set to Use for New OLLAMA provider
5253
OLLAMA_SERVER_URL= #Leave blank for default localhost:11434
53-
OLLAMA_MODEL=
54+
OLLAMA_MODEL=
5455
OLLAMA_EMBEDDING_MODEL= #default mxbai-embed-large
5556
#To use custom model types for different tasks set these
5657
SMALL_OLLAMA_MODEL= #default llama3.2

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
</div>
1212

1313
## 🌍 README Translations
14-
[中文说明](./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)
14+
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)
1516

1617
## ✨ Features
1718

@@ -40,7 +41,7 @@
4041
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
4142
- [pnpm](https://pnpm.io/installation)
4243

43-
> **Note for Windows Users:** WSL is required
44+
> **Note for Windows Users:** [WSL 2](https://learn.microsoft.com/en-us/windows/wsl/install-manual) is required.
4445
4546
### Edit the .env file
4647

README_IT.md

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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+
## ✨ Caratteristiche
8+
9+
- 🛠️ Connettori completi per Discord, Twitter e Telegram
10+
- 🔗 Supporto per tutti i modelli (Llama, Grok, OpenAI, Anthropic, ecc.)
11+
- 👥 Supporto multi-agente e per stanze
12+
- 📚 Acquisisci ed interagisci facilmente con i tuoi documenti
13+
- 💾 Memoria recuperabile e archivio documenti
14+
- 🚀 Altamente estensibile - crea le tue azioni e clients personalizzati
15+
- ☁️ Supporto di numerosi modelli (Llama locale, OpenAI, Anthropic, Groq, ecc.)
16+
- 📦 Funziona e basta!
17+
18+
## 🎯 Casi d'Uso
19+
20+
- 🤖 Chatbot
21+
- 🕵️ Agenti Autonomi
22+
- 📈 Gestione Processi Aziendali
23+
- 🎮 NPC per Videogiochi
24+
- 🧠 Trading
25+
26+
## 🚀 Avvio Rapido
27+
28+
### Prerequisiti
29+
30+
- [Python 2.7+](https://www.python.org/downloads/)
31+
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
32+
- [pnpm](https://pnpm.io/installation)
33+
34+
> **Nota per gli utenti Windows:** È richiesto WSL
35+
36+
### Modifica il file .env
37+
38+
Copia .env.example in .env e inserisci i valori appropriati
39+
40+
```
41+
cp .env.example .env
42+
```
43+
44+
### Avvia Eliza Automaticamente
45+
46+
Questo script eseguirà tutti i comandi necessari per configurare il progetto e avviare il bot con il personaggio predefinito.
47+
48+
```bash
49+
sh scripts/start.sh
50+
```
51+
52+
### Modifica il file del personaggio
53+
54+
1. Apri `packages/agent/src/character.ts` per modificare il personaggio predefinito. Decommentare e modificare.
55+
56+
2. Per caricare personaggi personalizzati:
57+
- Usa `pnpm start --characters="percorso/del/tuo/personaggio.json"`
58+
- È possibile caricare più file di personaggi contemporaneamente
59+
60+
### Avvia Eliza Manualmente
61+
62+
```bash
63+
pnpm i
64+
pnpm build
65+
pnpm start
66+
67+
# Il progetto evolve rapidamente; a volte è necessario pulire il progetto se si ritorna sul progetto dopo un po' di tempo
68+
pnpm clean
69+
```
70+
71+
#### Requisiti Aggiuntivi
72+
73+
Potrebbe essere necessario installare Sharp. Se vedi un errore all'avvio, prova a installarlo con il seguente comando:
74+
75+
```
76+
pnpm install --include=optional sharp
77+
```
78+
79+
### Community e contatti
80+
81+
- [GitHub Issues](https://github.com/ai16z/eliza/issues). Ideale per: bug riscontrati utilizzando Eliza e proposte di funzionalità.
82+
- [Discord](https://discord.gg/ai16z). Ideale per: condividere le tue applicazioni e interagire con la community.
83+
84+
## Contributori
85+
86+
<a href="https://github.com/ai16z/eliza/graphs/contributors">
87+
<img src="https://contrib.rocks/image?repo=ai16z/eliza" />
88+
</a>
89+
90+
## Cronologia Stelle
91+
92+
[![Grafico Cronologia Stelle](https://api.star-history.com/svg?repos=ai16z/eliza&type=Date)](https://star-history.com/#ai16z/eliza&Date)

docs/docs/core/actions.md

+28
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sidebar_position: 6
66

77
Actions are core building blocks in Eliza that define how agents respond to and interact with messages. They allow agents to interact with external systems, modify their behavior, and perform tasks beyond simple message responses.
88

9+
---
10+
911
## Overview
1012

1113
Each Action consists of:
@@ -17,6 +19,8 @@ Each Action consists of:
1719
- `handler`: Implementation of the action's behavior
1820
- `examples`: Array of example usage patterns
1921

22+
---
23+
2024
## Implementation
2125

2226
```typescript
@@ -36,6 +40,8 @@ Source: https://github.com/ai16z/eliza/packages/core/src/types.ts
3640

3741
# Built-in Actions
3842

43+
---
44+
3945
## Conversation Flow
4046

4147
### CONTINUE
@@ -57,6 +63,8 @@ Source: https://github.com/ai16z/eliza/packages/core/src/types.ts
5763
- Default response action
5864
- Used for standard conversational replies
5965

66+
---
67+
6068
## External Integrations
6169

6270
### TAKE_ORDER
@@ -81,6 +89,8 @@ const take_order: Action = {
8189

8290
Source: https://github.com/ai16z/eliza/packages/plugin-solana/src/actions/takeOrder.ts
8391

92+
---
93+
8494
## Creating Custom Actions
8595

8696
1. Implement the Action interface
@@ -123,6 +133,8 @@ test("Validate action behavior", async () => {
123133
});
124134
```
125135

136+
---
137+
126138
## Core Concepts
127139

128140
### Action Structure
@@ -151,6 +163,8 @@ interface Action {
151163
- **handler**: Implements the action's behavior
152164
- **examples**: Demonstrates proper usage patterns
153165

166+
---
167+
154168
## Built-in Actions
155169

156170
### CONTINUE
@@ -205,6 +219,8 @@ const followRoomAction: Action = {
205219
};
206220
```
207221

222+
---
223+
208224
## Creating Custom Actions
209225

210226
### Basic Action Template
@@ -273,6 +289,8 @@ const complexAction: Action = {
273289
};
274290
```
275291

292+
---
293+
276294
## Implementation Patterns
277295

278296
### State-Based Actions
@@ -310,6 +328,8 @@ const serviceAction: Action = {
310328
};
311329
```
312330

331+
---
332+
313333
## Best Practices
314334

315335
### Action Design
@@ -368,6 +388,8 @@ examples: [
368388
];
369389
```
370390

391+
---
392+
371393
## Troubleshooting
372394

373395
### Common Issues
@@ -425,6 +447,8 @@ const chainedAction: Action = {
425447
};
426448
```
427449

450+
---
451+
428452
## Example: Complete Action Implementation
429453

430454
```typescript
@@ -498,6 +522,8 @@ const documentAnalysisAction: Action = {
498522
};
499523
```
500524

525+
---
526+
501527
# Best Practices
502528

503529
1. **Validation**
@@ -517,6 +543,8 @@ const documentAnalysisAction: Action = {
517543
- Document expected inputs/outputs
518544
- Explain error scenarios
519545

546+
---
547+
520548
## Further Reading
521549

522550
- [Provider System](./providers.md)

docs/docs/core/agents.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Agents are the core components of the Eliza framework that handle autonomous int
1010

1111
## Overview
1212

13-
The [AgentRuntime](/api/classes/AgentRuntime) class is the primary implementation of the [IAgentRuntime](/api/interfaces) interface, which manages the agent's core functions, including:
13+
The [AgentRuntime](/api/classes/AgentRuntime) class is the primary implementation of the [IAgentRuntime](/api/interfaces/IAgentRuntime) interface, which manages the agent's core functions, including:
1414

1515
- **Message and Memory Processing**: Storing, retrieving, and managing conversation data and contextual memory.
1616
- **State Management**: Composing and updating the agent’s state for a coherent, ongoing interaction.
@@ -90,7 +90,7 @@ const runtime = new AgentRuntime({
9090

9191
## State Management
9292

93-
This section should cover how agents manage and update state, with a focus on initial state composition and updating methods. The runtime maintains state through the [State](/api/interfaces) interface:
93+
This section should cover how agents manage and update state, with a focus on initial state composition and updating methods. The runtime maintains state through the [State](/api/interfaces/state) interface:
9494

9595
```typescript
9696
interface State {
@@ -148,7 +148,7 @@ The Eliza framework uses multiple types of memory to support an agent's long-ter
148148

149149
- **RAG Integration**: Uses a vector search to perform contextual recall based on similarity matching. This enables the agent to retrieve relevant memory snippets or knowledge based on the content and intent of the current conversation, making its responses more contextually relevant.
150150

151-
The runtime uses multiple specialized [IMemoryManager](/api/interfaces) instances:
151+
The runtime uses multiple specialized [IMemoryManager](/api/interfaces/IMemoryManager) instances:
152152

153153
- `messageManager` - conversation messages and responses
154154
- `descriptionManager` - user descriptions and profiles
@@ -210,6 +210,8 @@ await memoryManager.createMemory({
210210
- Use immutability in state management.
211211
- Log errors and maintain stability during service failures.
212212

213+
---
214+
213215
## Evaluation System
214216

215217
The runtime's [evaluate](/api/classes/AgentRuntime#evaluate) method processes evaluations:
@@ -250,6 +252,7 @@ await memoryManager.createMemory({
250252
roomId,
251253
});
252254
```
255+
---
253256

254257
## Further Reading
255258

docs/docs/core/characterfile.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ sidebar_position: 4
66

77
Character files are JSON-formatted configurations that define an AI character's personality, knowledge, and behavior patterns. This guide explains how to create effective character files for use with Eliza agents.
88

9+
---
10+
911
## Overview
1012

11-
A `characterfile` implements the [Character](/api/type-aliases) type and defines the character's:
13+
A `characterfile` implements the [Character](/api/type-aliases/character) type and defines the character's:
1214

1315
- Core identity and behavior
1416
- Model provider configuration
@@ -90,11 +92,11 @@ The character's display name for identification and in conversations.
9092

9193
#### `modelProvider` (required)
9294

93-
Specifies the AI model provider. Supported options from [ModelProviderName](/api/enumerations) include `ANTHROPIC`, `LLAMALOCAL`, `OPENAI`, and others.
95+
Specifies the AI model provider. Supported options from [ModelProviderName](/api/enumerations/modelprovidername) include `ANTHROPIC`, `LLAMALOCAL`, `OPENAI`, and others.
9496

9597
#### `clients` (required)
9698

97-
Array of supported client types from [Clients](/api/enumerations) e.g., `DISCORD`, `DIRECT`, `TWITTER`, `TELEGRAM`.
99+
Array of supported client types from [Clients](/api/enumerations/clients) e.g., `DISCORD`, `DIRECT`, `TWITTER`, `TELEGRAM`.
98100

99101
#### `bio`
100102

@@ -205,6 +207,8 @@ The `settings` object defines additional configurations like secrets and voice m
205207
}
206208
```
207209

210+
---
211+
208212
## Example: Complete Character File
209213

210214
```json
@@ -290,6 +294,8 @@ npx knowledge2character <character-file> <knowledge-file>
290294
- Show character-specific responses
291295
- Demonstrate typical interaction patterns
292296

297+
---
298+
293299
## Tips for Quality
294300

295301
1. **Bio and Lore**
@@ -316,6 +322,8 @@ npx knowledge2character <character-file> <knowledge-file>
316322
- Organize in digestible chunks
317323
- Update regularly to maintain relevance
318324

325+
---
326+
319327
## Further Reading
320328

321329
- [Agents Documentation](./agents.md)

0 commit comments

Comments
 (0)