Skip to content

Commit

Permalink
Merge pull request #1155 from ai16z/develop
Browse files Browse the repository at this point in the history
chore: develop into main
  • Loading branch information
shakkernerd authored Dec 17, 2024
2 parents c08d0a2 + 94d374a commit c34ff57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,11 @@ const startAgents = async () => {
elizaLogger.error("Error starting agents:", error);
}

// upload some agent functionality into directClient
directClient.startAgent = async character => {
// wrap it so we don't have to inject directClient later
return startAgent(character, directClient)
};
directClient.start(serverPort);

elizaLogger.log("Visit the following URL to chat with your agents:");
Expand Down

0 comments on commit c34ff57

Please sign in to comment.