add usagestatusresponse

This commit is contained in:
stuart committed 2026-08-25 17:13:01 +02:00
1 parent 9dd5e6e1a5
commit 79517f0e04
2 files changed
+11 -5

No files matched your search

+1
View File
@@ -22,6 +22,7 @@ __all__ = [
"GetWordResponse",
"GetSimilarWordRequest",
"GetAllPhrasesResponse",
"UsageStatusResponse",
"ModelType",
"PreprocessorType",
"SymbolProvider",
+10 -5
View File
@@ -78,8 +78,13 @@ class TextToSymbolRequest(ModifiedBaseModel):
class TextToSymbolResponse(ModifiedBaseModel):
symbols: List[Symbol]
class UsageStatusResponse(ModifiedBaseModel):
"""Read-only snapshot of a caller's rate-limit window."""
limit: int
used: int
remaining: int
unlimited: bool
window_seconds: int
# Seconds until the oldest recorded call falls out of the window, i.e. until
# one use is handed back. None when the caller has no recorded calls.
reset_in_seconds: Optional[int] = None