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

Method feedback

trinity/explorer/proxy/client.py:36–42  ·  view source on GitHub ↗
(self, reward: float, msg_ids: list[str], timeout: float = 10)

Source from the content-addressed store, hash-verified

34 return client
35
36 def feedback(self, reward: float, msg_ids: list[str], timeout: float = 10) -> dict:
37 response = requests.post(
38 self.feedback_url,
39 json={"reward": reward, "msg_ids": msg_ids, "task_id": self.task_id},
40 timeout=timeout,
41 )
42 return response.json()
43
44 async def feedback_async(self, reward: float, msg_ids: list[str], timeout: float = 10) -> dict:
45 async with httpx.AsyncClient() as client:

Callers 3

run_agentFunction · 0.95
_finish_explore_stepMethod · 0.45

Calls

no outgoing calls

Tested by 2

run_agentFunction · 0.76