feat: Add NaliiaBot API

This commit is contained in:
2026-02-09 15:59:54 -05:00
parent 69b0dad14d
commit adda2a3e5e
11 changed files with 1087 additions and 182 deletions

View File

@@ -0,0 +1,16 @@
import os
from src.naliiabot.bot.agent.agent import Agent
from src.naliiabot.bot.factories.llm_factory import LLMFactory
MODEL_NAME = os.getenv("LLM_MODEL", "anthropic")
def get_agent():
"""
Dependency function to get an instance of the Agent class.
Returns:
Agent: An instance of the Agent class.
"""
model = LLMFactory(MODEL_NAME).get_model()
return Agent(model=model)