Skip to content

Commit 6f441a2

Browse files
committed
updated agent formate
1 parent 5bee251 commit 6f441a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/agent/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const codebolt = require('@codebolt/codeboltjs').default;
33

44
const { UserMessage, SystemPrompt, TaskInstruction, Agent } = require("@codebolt/codeboltjs/utils");
55

6-
codebolt.chat.onActionMessage().on("userMessage", async (req, response) => {
6+
codebolt.onMessage(async (req, response) => {
77
try {
88
const userMessage = new UserMessage(req.message);
99
const systemPrompt = new SystemPrompt("./agent.yaml", "test");

0 commit comments

Comments
 (0)