MCPcopy Create free account
hub / github.com/Bolin97/MedArk / wrapper

Function wrapper

evaluation/eval.py:30–36  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

28
29def with_retry(f: Callable):
30 def wrapper(*args, **kwargs):
31 while True:
32 try:
33 return f(*args, **kwargs)
34 except Exception as e:
35 print(f"Retry failed with error: {e}, retrying...")
36 continue
37 return wrapper
38
39class IndependentFacts(BaseModel):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected