MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / operation

Method operation

tests/test_api_retry.py:64–67  ·  view source on GitHub ↗
(attempt: int, ctx: RetryContext)

Source from the content-addressed store, hash-verified

62 call_count = 0
63
64 async def operation(attempt: int, ctx: RetryContext) -> str:
65 nonlocal call_count
66 call_count += 1
67 return "ok"
68
69 result = await with_retry(operation, RetryOptions(max_retries=3))
70 self.assertEqual(result, "ok")

Callers

nothing calls this directly

Calls 3

RateLimitErrorClass · 0.90
OverloadedErrorClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected