from dataclasses import dataclass, field


@dataclass
class AgentProfile:
    """
    Defines a complete agent configuration.
    A profile ties together a system prompt, an LLM backend, a model,
    and the set of tools the agent is allowed to use.
    """

    id: str
    name: str
    description: str
    system_prompt: str
    enabled_tools: list[str]  # tool names; resolved by ToolRegistry at runtime
    llm_backend: str = "ollama"  # backend key, e.g. "ollama", "openai"
    model: str = "gemma4:26b-a4b-it-q4_K_M"
    max_iterations: int = 10
    temperature: float = 0.7
    planning_enabled: bool = False  # if True, run a planning LLM call before the main loop
