Skip to content

Commit

Permalink
Merge pull request #1154 from odilitime/fix-lint
Browse files Browse the repository at this point in the history
fix: fix direct-client ability to start agents
  • Loading branch information
monilpat authored Dec 17, 2024
2 parents 0a23d6d + 79cf0df commit 94d374a
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 94d374a

Please sign in to comment.