Spaces:
Sleeping
Sleeping
File size: 751 Bytes
116524e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | from pydantic_settings import BaseSettings, SettingsConfigDict
from pydantic import Field
class MCPServerConfig(BaseSettings):
"""Configuration for the ACE MCP Server."""
default_model: str = Field(default="gpt-4o-mini")
safe_mode: bool = Field(default=False)
max_samples_per_call: int = Field(default=25)
max_prompt_chars: int = Field(default=100_000)
session_ttl_seconds: int = Field(default=3600)
allow_save_load: bool = Field(default=True)
learn_timeout_seconds: int = Field(default=300)
skillbook_root: str | None = Field(default=None)
log_level: str = Field(default="INFO")
model_config = SettingsConfigDict(
env_prefix="ACE_MCP_",
case_sensitive=False,
)
|