mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
10 lines
277 B
Python
10 lines
277 B
Python
from pydantic import BaseModel, ConfigDict, Field
|
|
|
|
|
|
class TokenUsageConfig(BaseModel):
|
|
"""Configuration for token usage tracking."""
|
|
|
|
model_config = ConfigDict(frozen=True)
|
|
|
|
enabled: bool = Field(default=False, description="Enable token usage tracking middleware")
|