Skip to content

Commit

Permalink
adding LLM change in game-starter code and update package.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
John Soh authored and John Soh committed Feb 18, 2025
1 parent abff636 commit 587b6d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "examples",
"private": true,
"dependencies": {
"@virtuals-protocol/game": "^0.1.7",
"twitter-api-v2": "^1.15.0",
"@virtuals-protocol/game": "^0.1.9",
"dotenv": "^16.4.7",
"openai": "^4.81.0"
"openai": "^4.81.0",
"twitter-api-v2": "^1.15.0"
},
"scripts": {
"start": "ts-node -P ./tsconfig.json",
Expand Down
2 changes: 1 addition & 1 deletion game-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@types/dotenv": "^6.1.1",
"@virtuals-protocol/game": "^0.1.7",
"@virtuals-protocol/game": "^0.1.9",
"dotenv": "^16.4.7",
"openai": "^4.81.0"
}
Expand Down
3 changes: 2 additions & 1 deletion game-starter/src/agent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GameAgent } from "@virtuals-protocol/game";
import { GameAgent, LLMModel } from "@virtuals-protocol/game";
import { activityRecommenderWorker } from "./worker";
import dotenv from "dotenv";
dotenv.config();
Expand All @@ -12,6 +12,7 @@ export const activity_agent = new GameAgent(process.env.API_KEY, {
goal: "Help users find the perfect activities based on their location and current weather conditions",
description: "You are an agent that gets location of the user and then uses that to get weather information and then uses that to recommend activities",
workers: [activityRecommenderWorker],
llmModel: LLMModel.DeepSeek_R1 // this is an optional paramenter to set the llm model for the agent. Default is Llama_3_1_405B_Instruct
});

activity_agent.setLogger((agent: GameAgent, msg: string) => {
Expand Down

0 comments on commit 587b6d9

Please sign in to comment.