Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add modelProvider to json to resolve embeddings error #274

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion characters/trump.character.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "trump",
"clients": [],
"modelProvider": "openai",
"settings": {
"secrets": {},
"voice": {
Expand Down Expand Up @@ -73,7 +74,6 @@
"knows Kamala's REAL tax plans (coming for everything)",
"saw what they did to Minneapolis (and other cities)"
],

"messageExamples": [
[
{
Expand Down
66 changes: 33 additions & 33 deletions docs/api/classes/AgentRuntime.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ The ID of the agent

[packages/core/src/runtime.ts:59](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L59)

***
---

### serverUrl

Expand All @@ -111,7 +111,7 @@ The base URL of the server where the agent's requests are processed.

[packages/core/src/runtime.ts:63](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L63)

***
---

### databaseAdapter

Expand All @@ -127,7 +127,7 @@ The database adapter used for interacting with the database.

[packages/core/src/runtime.ts:68](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L68)

***
---

### token

Expand All @@ -143,7 +143,7 @@ Authentication token used for securing requests.

[packages/core/src/runtime.ts:73](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L73)

***
---

### actions

Expand All @@ -159,7 +159,7 @@ Custom actions that the agent can perform.

[packages/core/src/runtime.ts:78](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L78)

***
---

### evaluators

Expand All @@ -175,7 +175,7 @@ Evaluators used to assess and guide the agent's responses.

[packages/core/src/runtime.ts:83](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L83)

***
---

### providers

Expand All @@ -191,7 +191,7 @@ Context providers used to provide context for message generation.

[packages/core/src/runtime.ts:88](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L88)

***
---

### modelProvider

Expand All @@ -207,7 +207,7 @@ The model to use for generateText.

[packages/core/src/runtime.ts:93](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L93)

***
---

### fetch()

Expand Down Expand Up @@ -242,7 +242,7 @@ Some environments may not have access to the global fetch function and need a cu

[packages/core/src/runtime.ts:99](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L99)

***
---

### character

Expand All @@ -258,7 +258,7 @@ The character to use for the agent

[packages/core/src/runtime.ts:104](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L104)

***
---

### messageManager

Expand All @@ -274,7 +274,7 @@ Store messages that are sent and received by the agent.

[packages/core/src/runtime.ts:109](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L109)

***
---

### descriptionManager

Expand All @@ -290,7 +290,7 @@ Store and recall descriptions of users based on conversations.

[packages/core/src/runtime.ts:114](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L114)

***
---

### loreManager

Expand All @@ -306,7 +306,7 @@ Manage the creation and recall of static information (documents, historical game

[packages/core/src/runtime.ts:119](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L119)

***
---

### documentsManager

Expand All @@ -318,7 +318,7 @@ Hold large documents that can be referenced

[packages/core/src/runtime.ts:124](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L124)

***
---

### fragmentsManager

Expand All @@ -330,7 +330,7 @@ Searchable document fragments

[packages/core/src/runtime.ts:129](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L129)

***
---

### services

Expand All @@ -344,7 +344,7 @@ Searchable document fragments

[packages/core/src/runtime.ts:131](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L131)

***
---

### memoryManagers

Expand Down Expand Up @@ -376,7 +376,7 @@ Searchable document fragments

[packages/core/src/runtime.ts:134](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L134)

***
---

### getMemoryManager()

Expand All @@ -398,7 +398,7 @@ Searchable document fragments

[packages/core/src/runtime.ts:149](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L149)

***
---

### getService()

Expand All @@ -424,7 +424,7 @@ Searchable document fragments

[packages/core/src/runtime.ts:153](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L153)

***
---

### registerService()

Expand All @@ -446,7 +446,7 @@ Searchable document fragments

[packages/core/src/runtime.ts:161](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L161)

***
---

### getSetting()

Expand All @@ -472,7 +472,7 @@ then chunks the content into fragments, embeds each fragment, and creates fragme

[packages/core/src/runtime.ts:371](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L371)

***
---

### getConversationLength()

Expand All @@ -494,7 +494,7 @@ The number of recent messages to be kept in memory.

[packages/core/src/runtime.ts:393](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L393)

***
---

### registerAction()

Expand All @@ -520,7 +520,7 @@ The action to register.

[packages/core/src/runtime.ts:401](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L401)

***
---

### registerEvaluator()

Expand All @@ -542,7 +542,7 @@ The evaluator to register.

[packages/core/src/runtime.ts:410](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L410)

***
---

### registerContextProvider()

Expand All @@ -564,7 +564,7 @@ The context provider to register.

[packages/core/src/runtime.ts:418](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L418)

***
---

### processActions()

Expand Down Expand Up @@ -596,7 +596,7 @@ The message to process.

[packages/core/src/runtime.ts:427](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L427)

***
---

### evaluate()

Expand Down Expand Up @@ -632,7 +632,7 @@ The results of the evaluation.

[packages/core/src/runtime.ts:500](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L500)

***
---

### ensureParticipantExists()

Expand Down Expand Up @@ -664,7 +664,7 @@ An error if the participant cannot be added.

[packages/core/src/runtime.ts:571](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L571)

***
---

### ensureUserExists()

Expand Down Expand Up @@ -700,7 +700,7 @@ The user name to ensure the existence of.

[packages/core/src/runtime.ts:587](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L587)

***
---

### ensureParticipantInRoom()

Expand All @@ -724,7 +724,7 @@ The user name to ensure the existence of.

[packages/core/src/runtime.ts:607](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L607)

***
---

### ensureConnection()

Expand Down Expand Up @@ -754,7 +754,7 @@ The user name to ensure the existence of.

[packages/core/src/runtime.ts:618](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L618)

***
---

### ensureRoomExists()

Expand Down Expand Up @@ -785,7 +785,7 @@ An error if the room cannot be created.

[packages/core/src/runtime.ts:654](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L654)

***
---

### composeState()

Expand Down Expand Up @@ -815,7 +815,7 @@ The state of the agent.

[packages/core/src/runtime.ts:667](https://github.com/ai16z/eliza/blob/main/packages/core/src/runtime.ts#L667)

***
---

### updateRecentMessageState()

Expand Down
Loading
Loading