Skip to content

Commit 231e01d

Browse files
authored
Merge pull request game-by-virtuals#108 from game-by-virtuals/fix_worldinfo_bug
fix: hosted GAME SDK endpoints expect strings from worldInfo
2 parents 79c92e8 + ba24a4d commit 231e01d

File tree

1 file changed

+2
-0
lines changed
  • src/game_sdk/hosted_game

1 file changed

+2
-0
lines changed

src/game_sdk/hosted_game/sdk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def simulate(self, session_id: str, goal: str, description: str, functions: li
3636
"sessionId": session_id,
3737
"goal": goal,
3838
"description": description,
39+
"worldInfo": "",
3940
"functions": functions,
4041
"customFunctions": [x.toJson() for x in custom_functions]
4142
}
@@ -60,6 +61,7 @@ def react(self, session_id: str, platform: str, goal: str,
6061
"sessionId": session_id,
6162
"goal": goal,
6263
"description": description,
64+
"worldInfo": "",
6365
"functions": functions,
6466
"customFunctions": [x.toJson() for x in custom_functions]
6567
}

0 commit comments

Comments
 (0)