settings.py 984 B

123456789101112131415161718192021222324
  1. from core_shared import ServiceSettings
  2. class AgentServiceSettings(ServiceSettings):
  3. service_name: str = "agent-service"
  4. service_port: int = 8007
  5. database_url: str = "sqlite:///./agent_service.db"
  6. model_gateway_service_url: str = "http://127.0.0.1:8005"
  7. model_gateway_timeout_seconds: float = 60.0
  8. memory_service_url: str = "http://127.0.0.1:8008"
  9. memory_service_timeout_seconds: float = 10.0
  10. tool_service_url: str = "http://127.0.0.1:8004"
  11. tool_service_timeout_seconds: float = 10.0
  12. skill_service_url: str = "http://127.0.0.1:8010"
  13. skill_service_timeout_seconds: float = 10.0
  14. event_service_url: str = "http://127.0.0.1:8013"
  15. event_service_timeout_seconds: float = 5.0
  16. worker_poll_interval_seconds: float = 1.0
  17. worker_lease_seconds: int = 300
  18. worker_max_idle_cycles: int | None = None
  19. worker_dry_run: bool = False
  20. react_max_steps: int = 5
  21. react_max_tool_calls: int = 10
  22. react_tool_retry_count: int = 1