MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / chat

Method chat

trinity/common/models/model.py:523–526  ·  view source on GitHub ↗

Generate a list of experiences from a list of messages.

(self, messages: List[dict], **kwargs)

Source from the content-addressed store, hash-verified

521
522 @_history_recorder
523 def chat(self, messages: List[dict], **kwargs) -> List[Experience]:
524 """Generate a list of experiences from a list of messages."""
525 lora_request = self.get_lora_request()
526 return ray.get(self.model.chat.remote(messages, lora_request=lora_request, **kwargs))
527
528 @_history_recorder
529 async def chat_async(self, messages: List[dict], **kwargs) -> List[Experience]:

Callers 12

runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
get_ruler_responsesMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
stepMethod · 0.45
runMethod · 0.45

Calls 3

get_lora_requestMethod · 0.95
remoteMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected