Newer
Older
navi-1 / navi / profiles / base.py
@Eugene Sukhodolskiy Eugene Sukhodolskiy on 8 Apr 567 bytes Initial implementation of the agent system core
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 = "llama3.2"
    max_iterations: int = 10
    temperature: float = 0.7