Skip to content

Commit c34ff57

Browse files
authored
Merge pull request #1155 from ai16z/develop
chore: develop into main
2 parents c08d0a2 + 94d374a commit c34ff57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

agent/src/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,11 @@ const startAgents = async () => {
647647
elizaLogger.error("Error starting agents:", error);
648648
}
649649

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

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

0 commit comments

Comments
 (0)