MCPcopy Create free account

hub / github.com/GigaxGames/gigax / functions

Functions25 in github.com/GigaxGames/gigax

↓ 3 callersMethodget_action
Prompt the NPC for an input.
gigax/step.py:117
↓ 2 callersFunctionNPCPrompt
- WORLD KNOWLEDGE: {{ context }} - KNOWN LOCATIONS: {{ locations | map(attribute='name') | join(', ') }} - NPCS: {{ NPCs | map(attribute=
gigax/prompt.py:14
↓ 2 callersMethodfrom_str
Parse a command string into a CharacterAction object.
gigax/parse.py:42
↓ 2 callersFunctionget_guided_regex
Generate a combined regex pattern for all the skills of the protagonist.
gigax/parse.py:100
↓ 1 callersMethodgenerate_api
( self, model: str, prompt: str, guided_regex: str, temperature: float
gigax/step.py:40
↓ 1 callersMethodgenerate_local
( self, prompt: str, llm: models.LogitsGenerator, guided_regex: str, )
gigax/step.py:73
↓ 1 callersFunctionllama_chat_template
( message: list[dict[Literal["role", "content"], str]], bos_token: str, chat_template: str, )
gigax/prompt.py:52
↓ 1 callersMethodto_regex
( self, character_names: list[str], location_names: list[str], item_names: lis
gigax/scene.py:75
FunctionNPCs
(current_location)
tests/conftest.py:23
Method__init__
( self, model: str | models.LogitsGenerator, api_key: str | None = None, api_u
gigax/step.py:22
Method__str__
Print the action according to the training format: cmd_name param1 param2. e.g.: Alice: say Bob "Hello, how are you"
gigax/parse.py:34
Method__str__
(self)
gigax/scene.py:20
Functioncontext
()
tests/conftest.py:7
Functioncurrent_location
(locations)
tests/conftest.py:18
Functionevents
(protagonist, items)
tests/conftest.py:58
Functionitems
()
tests/conftest.py:53
Functionlocations
()
tests/conftest.py:13
Functionprotagonist
(current_location)
tests/conftest.py:34
Functiontest_parse
( locations: list[Location], NPCs: list[Character], protagonist: ProtagonistCharacter, items:
tests/test_parse.py:5
Functiontest_prompt
( context: str, locations: list[Location], NPCs: list[Character], protagonist: ProtagonistChar
tests/test_prompt.py:6
Functiontest_stepper_api
( context: str, locations: list[Location], NPCs: list[Character], protagonist: ProtagonistChar
tests/test_step.py:77
Functiontest_stepper_local_llamacpp
( context: str, locations: list[Location], NPCs: list[Character], protagonist: ProtagonistChar
tests/test_step.py:15
Functiontest_stepper_local_transformers
( context: str, locations: list[Location], NPCs: list[Character], protagonist: ProtagonistChar
tests/test_step.py:49
Methodto_training_format
Print the character according to the training format.
gigax/scene.py:23
Methodto_training_format
Print the action according to our training format: cmd_name <param_type1> <param_type2> e.g.: say <character> <content> : Say somethi
gigax/scene.py:68