fix: PEP8 Style

This commit is contained in:
2026-03-04 16:20:56 -05:00
parent aab046b2ef
commit 6fc6338413
17 changed files with 1086 additions and 217 deletions

View File

@@ -16,10 +16,10 @@ async def lifespan(app: FastAPI):
await checkpointer.setup()
model_name = "anthropic"
model = deps.LLMFactory(model_name).get_model()
naliia_prompt = deps.get_prompt_template("NALIIA_PROMPT")
naliia_tools = deps.NaliiaTools().get_tools()
config = deps.AgentConfig(system_prompt=naliia_prompt)
model = deps.LLMFactory(model_name).get_model()
deps.agent_instance = deps.Agent(
model=model,
@@ -35,7 +35,9 @@ async def lifespan(app: FastAPI):
app = FastAPI(
title="NaliiaBot API",
description="API for NaliiaBot, a chatbot that provides customer service and related topics.",
description=(
"API for NaliiaBot, a chatbot that provides "
"customer service and related topics."),
version="1.0.0",
lifespan=lifespan
)
@@ -43,10 +45,12 @@ app = FastAPI(
app.include_router(chat_router)
app.include_router(chat_hook_router)
@app.get("/")
def read_root():
return {"Hello": "World"}
@app.get("/health")
def health_check():
return {"status": "ok"}