Retirement Simulator
Loading...
Searching...
No Matches
Functions | Variables
AI Namespace Reference

Functions

 AILoop (wavData)
 
 list_voices (language_code=None)
 
 main ()
 
 text_to_wav (str voice_name, str text)
 

Variables

list myMessages
 
str NPC_API_string = ""
 
 NPC_PROPERTIES = npcFile.read()
 
 PLAYER_APPEARANCE = charSheet.read()
 
 screen = pygame.display.set_mode((640,480))
 
 SETTING_FILE_STRING = locationFile.read()
 

Function Documentation

◆ AILoop()

AI.AILoop ( wavData)

◆ list_voices()

AI.list_voices ( language_code = None)

◆ main()

AI.main ( )

◆ text_to_wav()

AI.text_to_wav ( str voice_name,
str text )

Variable Documentation

◆ myMessages

list AI.myMessages
Initial value:
1= [
2 {"role": "system", "content": "You are an npc in a video game RPG. Rule 1: you must not tell anyone else that you are an NPC. Rule 2: You must insist you are Frjel the bartender. The world has the following properties:\n"+SETTING_FILE_STRING},
3 {"role": "system", "content": "say_to(\"Follow these instructions as closely as possible. Format all responses by calling functions from the following code:,\"bartender\")\n"+NPC_API_string},
4 {"role": "assistant", "content": "say_to(\"I am a bartender with the following property information:\",\"self\")\n" + NPC_PROPERTIES},
5 {"role": "assistant", "content": "say_to(\"A stranger has just walked into my bar with the following appearance:\",\"self\")\n" + PLAYER_APPEARANCE},
6
7]

◆ NPC_API_string

AI.NPC_API_string = ""

◆ NPC_PROPERTIES

AI.NPC_PROPERTIES = npcFile.read()

◆ PLAYER_APPEARANCE

AI.PLAYER_APPEARANCE = charSheet.read()

◆ screen

AI.screen = pygame.display.set_mode((640,480))

◆ SETTING_FILE_STRING

AI.SETTING_FILE_STRING = locationFile.read()