MCPcopy Create free account
hub / github.com/Tencent/digitalhuman / chat_player

Function chat_player

SAGE/simulator_response.py:321–332  ·  view source on GitHub ↗
(player_data)

Source from the content-addressed store, hash-verified

319
320
321def chat_player(player_data):
322 temp_data = copy.deepcopy(player_data)
323
324 #if it is the first talk, then generate reply without planning
325 if temp_data['history']!=[]:
326 temp_data,planning = planning_reply(temp_data)
327 else:
328 planning = {}
329
330 temp_data = player_reply(temp_data,planning)
331
332 return temp_data
333

Callers 2

test_npc.pyFile · 0.90

Calls 2

planning_replyFunction · 0.85
player_replyFunction · 0.85

Tested by

no test coverage detected