BudgetGuard that returns None / no-op for every method. Verifies that "shape with no real methods" still works (the wrapper looks up by name at call time).
| 54 | |
| 55 | |
| 56 | class AllowingGuard: |
| 57 | """BudgetGuard that returns None / no-op for every method. Verifies |
| 58 | that "shape with no real methods" still works (the wrapper looks |
| 59 | up by name at call time).""" |
| 60 | |
| 61 | def check_before_llm(self, session_id: str, estimated_tokens: int): |
| 62 | return None |
| 63 | |
| 64 | def record_after_llm(self, session_id: str, usage: dict) -> None: |
| 65 | pass |
| 66 | |
| 67 | |
| 68 | def main() -> None: |