@@ -132,19 +132,19 @@ def result_parser(value, **kwargs):
132
132
logger .info ("starting turn for character: %s" , character .name )
133
133
result = loop_retry (
134
134
agent ,
135
- get_prompt ( "world_simulate_character_action" ),
136
- context = {
137
- " actions" : action_names ,
138
- " character_items" : character_items ,
139
- " attributes" : character_attributes ,
140
- " directions" : room_directions ,
141
- " room_name" : room .name ,
142
- " room_description" : describe_entity (room ),
143
- " visible_characters" : room_characters ,
144
- " visible_items" : room_items ,
145
- " notes_prompt" : notes_prompt ,
146
- " events_prompt" : events_prompt ,
147
- } ,
135
+ format_prompt (
136
+ "world_simulate_character_action" ,
137
+ actions = action_names ,
138
+ character_items = character_items ,
139
+ attributes = character_attributes ,
140
+ directions = room_directions ,
141
+ room_name = room .name ,
142
+ room_description = describe_entity (room ),
143
+ visible_characters = room_characters ,
144
+ visible_items = room_items ,
145
+ notes_prompt = notes_prompt ,
146
+ events_prompt = events_prompt ,
147
+ ) ,
148
148
result_parser = result_parser ,
149
149
toolbox = action_toolbox ,
150
150
)
0 commit comments