Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- game/state.py +2 -2
game/state.py
CHANGED
|
@@ -5,14 +5,14 @@ from models.mushroom import Mushroom
|
|
| 5 |
WELCOME_MESSAGE = "Hello! I'm Myco. Let's explore the forest."
|
| 6 |
EMPTY_DEX = "Your MycoDex is empty. Discover a mushroom, then add it here."
|
| 7 |
|
| 8 |
-
ChatHistory = list[
|
| 9 |
MushroomState = dict[str, str]
|
| 10 |
CollectionState = list[MushroomState]
|
| 11 |
|
| 12 |
|
| 13 |
def welcome_history() -> ChatHistory:
|
| 14 |
"""Return the opening Myco companion message."""
|
| 15 |
-
return [
|
| 16 |
|
| 17 |
|
| 18 |
def mushroom_from_state(current: MushroomState) -> Mushroom:
|
|
|
|
| 5 |
WELCOME_MESSAGE = "Hello! I'm Myco. Let's explore the forest."
|
| 6 |
EMPTY_DEX = "Your MycoDex is empty. Discover a mushroom, then add it here."
|
| 7 |
|
| 8 |
+
ChatHistory = list[dict[str, str]]
|
| 9 |
MushroomState = dict[str, str]
|
| 10 |
CollectionState = list[MushroomState]
|
| 11 |
|
| 12 |
|
| 13 |
def welcome_history() -> ChatHistory:
|
| 14 |
"""Return the opening Myco companion message."""
|
| 15 |
+
return [{"role": "assistant", "content": WELCOME_MESSAGE}]
|
| 16 |
|
| 17 |
|
| 18 |
def mushroom_from_state(current: MushroomState) -> Mushroom:
|