Skip to content

Commit ee9929c

Browse files
authored
Merge pull request #30 from ai16z/main
merge from main
2 parents c9b50ba + 5fdbee6 commit ee9929c

8 files changed

+68
-22
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

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)

docs/docs/core/evaluators.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,21 @@ sidebar_position: 5
44

55
# 📊 Evaluators
66

7-
## Table of Contents
7+
[Evaluators](/api/interfaces/evaluator) are core components that assess and extract information from conversations. They integrate with the [AgentRuntime](/api/classes/AgentRuntime)'s evaluation system.
88

9-
- [Overview](#overview)
10-
- [Quick Start](#quick-start)
11-
- [Best Practices](#best-practices)
12-
- [Built-in Evaluators](#built-in-evaluators)
13-
- [Creating Custom Evaluators](#creating-custom-evaluators)
14-
- [Memory Integration](#memory-integration)
9+
---
1510

1611
## Overview
1712

18-
[Evaluators](/api/interfaces) are core components that assess and extract information from conversations. They integrate with the [AgentRuntime](/api/classes/AgentRuntime)'s evaluation system, enabling agents to:
13+
Evaluators enable agents to:
1914

2015
- Build long-term memory
2116
- Track goal progress
2217
- Extract facts and insights
2318
- Maintain contextual awareness
2419

20+
---
21+
2522
## Quick Start
2623

2724
1. Import the necessary evaluator types:
@@ -46,6 +43,8 @@ const evaluator: Evaluator = {
4643
};
4744
```
4845

46+
---
47+
4948
## Built-in Evaluators
5049

5150
### Fact Evaluator
@@ -205,6 +204,8 @@ const memoryEvaluator: Evaluator = {
205204
};
206205
```
207206

207+
---
208+
208209
## Integration with Agent Runtime
209210

210211
The [AgentRuntime](/api/classes/AgentRuntime) processes evaluators through its [evaluate](/api/classes/AgentRuntime#evaluate) method:
@@ -217,6 +218,8 @@ runtime.registerEvaluator(customEvaluator);
217218
const results = await runtime.evaluate(message, state);
218219
```
219220

221+
---
222+
220223
## Error Handling
221224

222225
```typescript

docs/docs/core/providers.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# 🔌 Providers
22

3-
[Providers](/api/interfaces) are core modules that inject dynamic context and real-time information into agent interactions. They serve as a bridge between the agent and various external systems, enabling access to market data, wallet information, sentiment analysis, and temporal context.
3+
[Providers](/api/interfaces/provider) are core modules that inject dynamic context and real-time information into agent interactions. They serve as a bridge between the agent and various external systems, enabling access to market data, wallet information, sentiment analysis, and temporal context.
4+
5+
---
46

57
## Overview
68

docs/docs/quickstart.md

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Before getting started with Eliza, ensure you have:
6060
DISCORD_API_TOKEN= # Bot token
6161
HEURIST_API_KEY= # Heurist API key for LLM and image generation
6262
OPENAI_API_KEY= # OpenAI API key
63+
GROK_API_KEY= # Grok API key
6364
ELEVENLABS_XI_API_KEY= # API key from elevenlabs (for voice)
6465
```
6566

docs/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { themes as prismThemes } from "prism-react-renderer";
22

33
const config = {
44
title: "eliza",
5-
tagline: "The flexible, scalable AI agent for everyone",
5+
tagline: "Flexible, scalable AI agents for everyone",
66
favicon: "img/favicon.ico",
77
url: "https://ai16z.github.io",
88
baseUrl: "/eliza/",

0 commit comments

Comments
 (0)