Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GigaxGames/gigax
/ functions
Functions
25 in github.com/GigaxGames/gigax
⨍
Functions
25
◇
Types & classes
10
↓ 3 callers
Method
get_action
Prompt the NPC for an input.
gigax/step.py:117
↓ 2 callers
Function
NPCPrompt
- WORLD KNOWLEDGE: {{ context }} - KNOWN LOCATIONS: {{ locations | map(attribute='name') | join(', ') }} - NPCS: {{ NPCs | map(attribute=
gigax/prompt.py:14
↓ 2 callers
Method
from_str
Parse a command string into a CharacterAction object.
gigax/parse.py:42
↓ 2 callers
Function
get_guided_regex
Generate a combined regex pattern for all the skills of the protagonist.
gigax/parse.py:100
↓ 1 callers
Method
generate_api
( self, model: str, prompt: str, guided_regex: str, temperature: float
gigax/step.py:40
↓ 1 callers
Method
generate_local
( self, prompt: str, llm: models.LogitsGenerator, guided_regex: str, )
gigax/step.py:73
↓ 1 callers
Function
llama_chat_template
( message: list[dict[Literal["role", "content"], str]], bos_token: str, chat_template: str, )
gigax/prompt.py:52
↓ 1 callers
Method
to_regex
( self, character_names: list[str], location_names: list[str], item_names: lis
gigax/scene.py:75
Function
NPCs
(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
Function
context
()
tests/conftest.py:7
Function
current_location
(locations)
tests/conftest.py:18
Function
events
(protagonist, items)
tests/conftest.py:58
Function
items
()
tests/conftest.py:53
Function
locations
()
tests/conftest.py:13
Function
protagonist
(current_location)
tests/conftest.py:34
Function
test_parse
( locations: list[Location], NPCs: list[Character], protagonist: ProtagonistCharacter, items:
tests/test_parse.py:5
Function
test_prompt
( context: str, locations: list[Location], NPCs: list[Character], protagonist: ProtagonistChar
tests/test_prompt.py:6
Function
test_stepper_api
( context: str, locations: list[Location], NPCs: list[Character], protagonist: ProtagonistChar
tests/test_step.py:77
Function
test_stepper_local_llamacpp
( context: str, locations: list[Location], NPCs: list[Character], protagonist: ProtagonistChar
tests/test_step.py:15
Function
test_stepper_local_transformers
( context: str, locations: list[Location], NPCs: list[Character], protagonist: ProtagonistChar
tests/test_step.py:49
Method
to_training_format
Print the character according to the training format.
gigax/scene.py:23
Method
to_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