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

Method chat

tests/explorer/scheduler_test.py:312–320  ·  view source on GitHub ↗
(self, messages: List[Dict], lora_request=None, **kwargs)

Source from the content-addressed store, hash-verified

310 return None
311
312 async def chat(self, messages: List[Dict], lora_request=None, **kwargs) -> Sequence[Experience]:
313 prompt_length = sum(len(msg["content"]) for msg in messages)
314 return [
315 Experience(
316 tokens=torch.zeros(prompt_length + 10),
317 prompt_length=prompt_length,
318 logprobs=torch.zeros(10),
319 )
320 ]
321
322 async def generate(self, prompt: str, lora_request=None, **kwargs) -> Sequence[Experience]:
323 prompt_length = len(prompt)

Callers

nothing calls this directly

Calls 1

ExperienceClass · 0.90

Tested by

no test coverage detected