Skip to content

Commit

Permalink
feat(example): update bee
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Aug 29, 2024
1 parent 9cff032 commit 618cdf4
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion examples/agents/bee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ const agent = new BeeAgent({

const reader = createConsoleReader();
if (codeInterpreterUrl) {
reader.write("🛠️ System", "Please ensure that the code interpreter is running.");
reader.write(
"🛠️ System",
`The code interpreter is enabled. Please ensure that it is running on ${codeInterpreterUrl}`,
);
}

try {
Expand Down Expand Up @@ -91,6 +94,20 @@ try {
// emitter.match("*.*", async (data: unknown, event) => {
// logger.trace(event, `Received event "${event.path}"`);
// });

// To get raw LLM input (uncomment following block)
// emitter.match(
// (event) => event.creator === llm && event.name === "start",
// async (data: InferCallbackValue<GenerateCallbacks["start"]>, event) => {
// logger.trace(
// event,
// [
// `Received LLM event "${event.path}"`,
// JSON.stringify(data.input), // array of messages
// ].join("\n"),
// );
// },
// );
});

reader.write(`Agent 🤖 : `, response.result.text);
Expand Down

0 comments on commit 618cdf4

Please sign in to comment.