feat: agent platform initial commit
- FastAPI + HTMX UI: dashboard, agents CRUD, chat, audit, tools - SQLite schema: agents, conversations, messages, audit, sessions - Code-agent sync (agents/*.py -> DB on startup) - MCP client with health check - Token auth (Bearer + session) - LiteLLM integration via llm.py - Docker Compose: agent-platform + mcp-tools services - Smoke tests pass: /health 200, /api/agents 200, / 401
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
"""Settings via Environment-Variablen."""
|
||||
import os
|
||||
|
||||
|
||||
class Settings:
|
||||
# LLM
|
||||
LLM_PROVIDER: str = os.getenv("LLM_PROVIDER", "openrouter")
|
||||
LLM_API_KEY: str = os.getenv("LLM_API_KEY", "")
|
||||
LLM_MODEL: str = os.getenv("LLM_MODEL", "anthropic/claude-3.5-sonnet")
|
||||
LLM_API_BASE: str = os.getenv("LLM_API_BASE", "")
|
||||
|
||||
# MCP Tool Server
|
||||
MCP_SERVER_URL: str = os.getenv("MCP_SERVER_URL", "http://mcp-tools:8501/mcp")
|
||||
MCP_TIMEOUT: int = int(os.getenv("MCP_TIMEOUT", "10"))
|
||||
|
||||
# Auth
|
||||
AUTH_TOKEN: str = os.getenv("AUTH_TOKEN", "change-me-in-production")
|
||||
|
||||
# Storage
|
||||
DB_PATH: str = os.getenv("DB_PATH", "/data/agent-platform.db")
|
||||
|
||||
# Server
|
||||
HOST: str = os.getenv("HOST", "0.0.0.0")
|
||||
PORT: int = int(os.getenv("PORT", "8000"))
|
||||
LOG_LEVEL: str = os.getenv("LOG_LEVEL", "info")
|
||||
|
||||
# Limits
|
||||
MAX_HISTORY_MESSAGES: int = int(os.getenv("MAX_HISTORY_MESSAGES", "10"))
|
||||
MAX_PARALLEL_AGENTS: int = int(os.getenv("MAX_PARALLEL_AGENTS", "5"))
|
||||
AGENT_IDLE_TIMEOUT_SEC: int = int(os.getenv("AGENT_IDLE_TIMEOUT_SEC", "300"))
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user