Skip to content

Commit 1422736

Browse files
authored
Merge pull request #273 from ai16z/docs
Improve Docs
2 parents 61cc988 + 3c77f96 commit 1422736

File tree

160 files changed

+27779
-5125
lines changed

Some content is hidden

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

160 files changed

+27779
-5125
lines changed

docs/api/classes/AgentRuntime.md

+38-40
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[@ai16z/eliza v1.0.0](../index.md) / AgentRuntime
2+
13
# Class: AgentRuntime
24

35
Represents the runtime environment for an agent, handling message processing,
@@ -89,7 +91,7 @@ The ID of the agent
8991

9092
#### Implementation of
9193

92-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`agentId`](../interfaces/IAgentRuntime.md#agentid)
94+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`agentId`](../interfaces/IAgentRuntime.md#agentId)
9395

9496
#### Defined in
9597

@@ -105,7 +107,7 @@ The base URL of the server where the agent's requests are processed.
105107

106108
#### Implementation of
107109

108-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`serverUrl`](../interfaces/IAgentRuntime.md#serverurl)
110+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`serverUrl`](../interfaces/IAgentRuntime.md#serverUrl)
109111

110112
#### Defined in
111113

@@ -121,7 +123,7 @@ The database adapter used for interacting with the database.
121123

122124
#### Implementation of
123125

124-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`databaseAdapter`](../interfaces/IAgentRuntime.md#databaseadapter)
126+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`databaseAdapter`](../interfaces/IAgentRuntime.md#databaseAdapter)
125127

126128
#### Defined in
127129

@@ -201,7 +203,7 @@ The model to use for generateText.
201203

202204
#### Implementation of
203205

204-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`modelProvider`](../interfaces/IAgentRuntime.md#modelprovider)
206+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`modelProvider`](../interfaces/IAgentRuntime.md#modelProvider)
205207

206208
#### Defined in
207209

@@ -268,7 +270,7 @@ Store messages that are sent and received by the agent.
268270

269271
#### Implementation of
270272

271-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`messageManager`](../interfaces/IAgentRuntime.md#messagemanager)
273+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`messageManager`](../interfaces/IAgentRuntime.md#messageManager)
272274

273275
#### Defined in
274276

@@ -284,7 +286,7 @@ Store and recall descriptions of users based on conversations.
284286

285287
#### Implementation of
286288

287-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`descriptionManager`](../interfaces/IAgentRuntime.md#descriptionmanager)
289+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`descriptionManager`](../interfaces/IAgentRuntime.md#descriptionManager)
288290

289291
#### Defined in
290292

@@ -300,7 +302,7 @@ Manage the creation and recall of static information (documents, historical game
300302

301303
#### Implementation of
302304

303-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`loreManager`](../interfaces/IAgentRuntime.md#loremanager)
305+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`loreManager`](../interfaces/IAgentRuntime.md#loreManager)
304306

305307
#### Defined in
306308

@@ -370,7 +372,7 @@ Searchable document fragments
370372

371373
#### Implementation of
372374

373-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`registerMemoryManager`](../interfaces/IAgentRuntime.md#registermemorymanager)
375+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`registerMemoryManager`](../interfaces/IAgentRuntime.md#registerMemoryManager)
374376

375377
#### Defined in
376378

@@ -392,7 +394,7 @@ Searchable document fragments
392394

393395
#### Implementation of
394396

395-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`getMemoryManager`](../interfaces/IAgentRuntime.md#getmemorymanager)
397+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`getMemoryManager`](../interfaces/IAgentRuntime.md#getMemoryManager)
396398

397399
#### Defined in
398400

@@ -418,7 +420,7 @@ Searchable document fragments
418420

419421
#### Implementation of
420422

421-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`getService`](../interfaces/IAgentRuntime.md#getservice)
423+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`getService`](../interfaces/IAgentRuntime.md#getService)
422424

423425
#### Defined in
424426

@@ -440,7 +442,7 @@ Searchable document fragments
440442

441443
#### Implementation of
442444

443-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`registerService`](../interfaces/IAgentRuntime.md#registerservice)
445+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`registerService`](../interfaces/IAgentRuntime.md#registerService)
444446

445447
#### Defined in
446448

@@ -452,10 +454,6 @@ Searchable document fragments
452454

453455
> **getSetting**(`key`): `any`
454456
455-
Processes character knowledge by creating document memories and fragment memories.
456-
This function takes an array of knowledge items, creates a document memory for each item if it doesn't exist,
457-
then chunks the content into fragments, embeds each fragment, and creates fragment memories.
458-
459457
#### Parameters
460458

461459
**key**: `string`
@@ -466,11 +464,11 @@ then chunks the content into fragments, embeds each fragment, and creates fragme
466464

467465
#### Implementation of
468466

469-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`getSetting`](../interfaces/IAgentRuntime.md#getsetting)
467+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`getSetting`](../interfaces/IAgentRuntime.md#getSetting)
470468

471469
#### Defined in
472470

473-
[packages/core/src/runtime.ts:371](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L371)
471+
[packages/core/src/runtime.ts:372](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L372)
474472

475473
***
476474

@@ -488,11 +486,11 @@ The number of recent messages to be kept in memory.
488486

489487
#### Implementation of
490488

491-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`getConversationLength`](../interfaces/IAgentRuntime.md#getconversationlength)
489+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`getConversationLength`](../interfaces/IAgentRuntime.md#getConversationLength)
492490

493491
#### Defined in
494492

495-
[packages/core/src/runtime.ts:393](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L393)
493+
[packages/core/src/runtime.ts:394](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L394)
496494

497495
***
498496

@@ -514,11 +512,11 @@ The action to register.
514512

515513
#### Implementation of
516514

517-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`registerAction`](../interfaces/IAgentRuntime.md#registeraction)
515+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`registerAction`](../interfaces/IAgentRuntime.md#registerAction)
518516

519517
#### Defined in
520518

521-
[packages/core/src/runtime.ts:401](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L401)
519+
[packages/core/src/runtime.ts:402](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L402)
522520

523521
***
524522

@@ -540,7 +538,7 @@ The evaluator to register.
540538

541539
#### Defined in
542540

543-
[packages/core/src/runtime.ts:410](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L410)
541+
[packages/core/src/runtime.ts:411](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L411)
544542

545543
***
546544

@@ -562,7 +560,7 @@ The context provider to register.
562560

563561
#### Defined in
564562

565-
[packages/core/src/runtime.ts:418](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L418)
563+
[packages/core/src/runtime.ts:419](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L419)
566564

567565
***
568566

@@ -590,11 +588,11 @@ The message to process.
590588

591589
#### Implementation of
592590

593-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`processActions`](../interfaces/IAgentRuntime.md#processactions)
591+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`processActions`](../interfaces/IAgentRuntime.md#processActions)
594592

595593
#### Defined in
596594

597-
[packages/core/src/runtime.ts:427](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L427)
595+
[packages/core/src/runtime.ts:428](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L428)
598596

599597
***
600598

@@ -630,7 +628,7 @@ The results of the evaluation.
630628

631629
#### Defined in
632630

633-
[packages/core/src/runtime.ts:500](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L500)
631+
[packages/core/src/runtime.ts:501](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L501)
634632

635633
***
636634

@@ -658,11 +656,11 @@ An error if the participant cannot be added.
658656

659657
#### Implementation of
660658

661-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`ensureParticipantExists`](../interfaces/IAgentRuntime.md#ensureparticipantexists)
659+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`ensureParticipantExists`](../interfaces/IAgentRuntime.md#ensureParticipantExists)
662660

663661
#### Defined in
664662

665-
[packages/core/src/runtime.ts:571](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L571)
663+
[packages/core/src/runtime.ts:572](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L572)
666664

667665
***
668666

@@ -694,11 +692,11 @@ The user name to ensure the existence of.
694692

695693
#### Implementation of
696694

697-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`ensureUserExists`](../interfaces/IAgentRuntime.md#ensureuserexists)
695+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`ensureUserExists`](../interfaces/IAgentRuntime.md#ensureUserExists)
698696

699697
#### Defined in
700698

701-
[packages/core/src/runtime.ts:587](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L587)
699+
[packages/core/src/runtime.ts:588](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L588)
702700

703701
***
704702

@@ -718,11 +716,11 @@ The user name to ensure the existence of.
718716

719717
#### Implementation of
720718

721-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`ensureParticipantInRoom`](../interfaces/IAgentRuntime.md#ensureparticipantinroom)
719+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`ensureParticipantInRoom`](../interfaces/IAgentRuntime.md#ensureParticipantInRoom)
722720

723721
#### Defined in
724722

725-
[packages/core/src/runtime.ts:607](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L607)
723+
[packages/core/src/runtime.ts:608](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L608)
726724

727725
***
728726

@@ -748,11 +746,11 @@ The user name to ensure the existence of.
748746

749747
#### Implementation of
750748

751-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`ensureConnection`](../interfaces/IAgentRuntime.md#ensureconnection)
749+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`ensureConnection`](../interfaces/IAgentRuntime.md#ensureConnection)
752750

753751
#### Defined in
754752

755-
[packages/core/src/runtime.ts:618](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L618)
753+
[packages/core/src/runtime.ts:619](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L619)
756754

757755
***
758756

@@ -779,11 +777,11 @@ An error if the room cannot be created.
779777

780778
#### Implementation of
781779

782-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`ensureRoomExists`](../interfaces/IAgentRuntime.md#ensureroomexists)
780+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`ensureRoomExists`](../interfaces/IAgentRuntime.md#ensureRoomExists)
783781

784782
#### Defined in
785783

786-
[packages/core/src/runtime.ts:654](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L654)
784+
[packages/core/src/runtime.ts:655](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L655)
787785

788786
***
789787

@@ -809,11 +807,11 @@ The state of the agent.
809807

810808
#### Implementation of
811809

812-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`composeState`](../interfaces/IAgentRuntime.md#composestate)
810+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`composeState`](../interfaces/IAgentRuntime.md#composeState)
813811

814812
#### Defined in
815813

816-
[packages/core/src/runtime.ts:667](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L667)
814+
[packages/core/src/runtime.ts:668](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L668)
817815

818816
***
819817

@@ -831,8 +829,8 @@ The state of the agent.
831829

832830
#### Implementation of
833831

834-
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`updateRecentMessageState`](../interfaces/IAgentRuntime.md#updaterecentmessagestate)
832+
[`IAgentRuntime`](../interfaces/IAgentRuntime.md).[`updateRecentMessageState`](../interfaces/IAgentRuntime.md#updateRecentMessageState)
835833

836834
#### Defined in
837835

838-
[packages/core/src/runtime.ts:1100](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L1100)
836+
[packages/core/src/runtime.ts:1101](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L1101)

0 commit comments

Comments
 (0)