Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
adding some contexts around of the example + fix minor typos
  • Loading branch information
ismaelfaro authored Aug 30, 2024
1 parent fe68867 commit 7e05270
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ import { TokenMemory } from "bee-agent-framework/memory/tokenMemory";
import { DuckDuckGoSearchTool } from "bee-agent-framework/tools/search/duckDuckGoSearch";
import { OpenMeteoTool } from "bee-agent-framework/tools/weather/openMeteo";

const llm = new OllamaChatLLM(); // default is llama3.1 (7b), it is recommended to use 70b model
const llm = new OllamaChatLLM(); // default is llama3.1 (8B), it is recommended to use 70B model

const agent = new BeeAgent({
llm, // for more explore 'bee-agent-framework/adapters'
memory: new TokenMemory({ llm }), // for more explore 'bee-agent-framework/memory'
llm, // for more explore 'bee-agent-framework/adapters'
memory: new TokenMemory({ llm }), // for more explore 'bee-agent-framework/memory'
tools: [new DuckDuckGoSearchTool(), new OpenMeteoTool()], // for more explore 'bee-agent-framework/tools'
});

Expand All @@ -67,6 +68,8 @@ const response = await agent
console.log(`Agent 🤖 : `, response.result.text);
```

To run this example, be sure that you have installed [ollama](https://ollama.com) with the [llama3.1](https://ollama.com/library/llama3.1) model downloaded.

➡️ See a more [advanced example](./examples/agents/bee.ts).

➡️ All examples can be found in the [examples](./examples) directory.
Expand Down

0 comments on commit 7e05270

Please sign in to comment.