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

Method get_metrics_async

trinity/explorer/proxy/client.py:66–71  ·  view source on GitHub ↗
(self, timeout: float = 5)

Source from the content-addressed store, hash-verified

64 return response.json()
65
66 async def get_metrics_async(self, timeout: float = 5) -> dict:
67 async with httpx.AsyncClient() as client:
68 response = await client.get(f"{self.proxy_url}/metrics", timeout=timeout)
69 if response.status_code != 200:
70 raise ValueError(f"Failed to get metrics: {response.text}")
71 return response.json()

Callers 2

test_serveMethod · 0.95

Calls 1

getMethod · 0.45

Tested by 2

test_serveMethod · 0.76