MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / _key

Function _key

app/api/agentops/common/rate_limit.py:14–16  ·  view source on GitHub ↗

Create a Redis key for the IP address.

(ip: str)

Source from the content-addressed store, hash-verified

12
13
14def _key(ip: str) -> str:
15 """Create a Redis key for the IP address."""
16 return f"agentops.rate:{ip}"
17
18
19def _now_us() -> int:

Callers 4

record_interactionFunction · 0.85
is_blockedFunction · 0.85
clearFunction · 0.85
get_countFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…