generated from coulomb/repo-seed
Fixed and improved token tracking
This commit is contained in:
@@ -43,6 +43,7 @@ class TaskUpdate(BaseModel):
|
||||
# 2. workplan_tokens_in + workplan_tokens_out → prorated across task count (note="workplan")
|
||||
# 3. neither provided, status=done → heuristic 1000/500 (note="heuristic")
|
||||
# token_note overrides the auto-assigned note for Tier 1 only (e.g. "userbased")
|
||||
# suppress_token_event lets file/cache sync update status without recording usage.
|
||||
tokens_in: int | None = None
|
||||
tokens_out: int | None = None
|
||||
workplan_tokens_in: int | None = None
|
||||
@@ -51,6 +52,7 @@ class TaskUpdate(BaseModel):
|
||||
model: str | None = None
|
||||
agent: str | None = None
|
||||
session_id: str | None = None
|
||||
suppress_token_event: bool | None = None
|
||||
|
||||
@model_validator(mode="after")
|
||||
def blocking_reason_required_when_blocked(self) -> Self:
|
||||
|
||||
Reference in New Issue
Block a user