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

Method commit_async

trinity/explorer/proxy/client.py:57–60  ·  view source on GitHub ↗
(self, timeout: float = 10)

Source from the content-addressed store, hash-verified

55 return response.json()
56
57 async def commit_async(self, timeout: float = 10) -> dict:
58 async with httpx.AsyncClient() as client:
59 response = await client.post(f"{self.proxy_url}/commit", timeout=timeout)
60 return response.json()
61
62 def get_metrics(self, timeout: float = 5) -> dict:
63 response = requests.get(f"{self.proxy_url}/metrics", timeout=timeout)

Callers 2

test_serveMethod · 0.95

Calls

no outgoing calls

Tested by 2

test_serveMethod · 0.76