-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add ability to pass thought chains and maximum conversation length to game master factory PiperOrigin-RevId: 654054735 Change-Id: Ia282c593ee557ff7450966ca203e53ef85e46e13
- Loading branch information
1 parent
10ab158
commit 3741a12
Showing
5 changed files
with
782 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
examples/modular/environment/modules/modern_london_social_context.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Copyright 2024 DeepMind Technologies Limited. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""A set of social context descriptions.""" | ||
|
||
SOCIAL_CONTEXT = [ | ||
( | ||
"The sun peeks through the morning" | ||
" mist as a {players} gather near the entrance of Hackney" | ||
" Marshes. They stretch and laugh, their colorful running attire" | ||
" contrasting with the green expanse. A few dog walkers pass by, their" | ||
" furry companions excitedly sniffing the air. " | ||
"{player_name} just arrived." | ||
), | ||
( | ||
"The aroma of freshly brewed coffee and" | ||
" artisan pastries fills the air. {players} sit at a long wooden table" | ||
" under a striped awning, their laughter mingling with the chatter of" | ||
" the bustling market. A street musician strums a guitar nearby, adding" | ||
" a bohemian touch to the scene. " | ||
"{player_name} just arrived." | ||
), | ||
( | ||
"Sunlight dances on the water as" | ||
" {players} cycle along the towpath of Regent's Canal. They" | ||
" pause to admire the colorful houseboats and wave at fellow cyclists." | ||
" The gentle sound of water lapping against the canal banks creates a" | ||
" peaceful atmosphere. " | ||
"{player_name} just arrived." | ||
), | ||
( | ||
"Vibrant murals and graffiti adorn the brick walls of Shoreditch." | ||
" {players} wander through the streets, their eyes wide with wonder as" | ||
" they discover hidden gems of urban art. The smell of street food" | ||
" wafts from nearby vendors, tempting them to take a break." | ||
" {player_name} just arrived." | ||
), | ||
( | ||
"A checkered blanket is spread out on the" | ||
" lush green lawn of Victoria Park. {players} lounge in the sunshine," | ||
" sharing snacks and stories. The laughter of children playing nearby" | ||
" adds a joyful backdrop to the scene. " | ||
"{player_name} just arrived." | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Copyright 2024 DeepMind Technologies Limited. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""A set of names to be used for creating characters.""" | ||
|
||
FIRST_NAMES = [ | ||
"Aaliyah", | ||
"Adrian", | ||
"Aurora", | ||
"Benjamin", | ||
"Camila", | ||
"Daniel", | ||
"Eleanor", | ||
"Ethan", | ||
"Fiona", | ||
"Gabriel", | ||
"Harper", | ||
"Isaac", | ||
"Jasmine", | ||
"Julian", | ||
"Kaitlyn", | ||
"Leo", | ||
"Maya", | ||
"Mateo", | ||
"Naomi", | ||
"Noah", | ||
"Olivia", | ||
"Owen", | ||
"Penelope", | ||
"Quinn", | ||
"Riley", | ||
"Samuel", | ||
"Sophia", | ||
"Theodore", | ||
"Valentina", | ||
"William", | ||
"Xander", | ||
"Yasmine", | ||
"Zachary", | ||
"Amelia", | ||
"Alexander", | ||
"Ava", | ||
"Liam", | ||
"Mia", | ||
"Elijah", | ||
"Isabella", | ||
"James", | ||
"Emily", | ||
"Lucas", | ||
"Abigail", | ||
"Mason", | ||
"Harper", | ||
"Logan", | ||
"Evelyn", | ||
"Oliver", | ||
"Chloe", | ||
"Jackson", | ||
"Ella", | ||
] |
Oops, something went wrong.