From c4a598f3d3ba336dbfff235435ada2b8794605a3 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Wed, 3 Sep 2025 19:29:34 +0530 Subject: [PATCH] (lint-fix) ruff --- application/agents/base.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/application/agents/base.py b/application/agents/base.py index 32d860b8..f2cabdb7 100644 --- a/application/agents/base.py +++ b/application/agents/base.py @@ -5,19 +5,17 @@ from typing import Dict, Generator, List, Optional from bson.objectid import ObjectId -logger = logging.getLogger(__name__) - from application.agents.tools.tool_action_parser import ToolActionParser from application.agents.tools.tool_manager import ToolManager - from application.core.mongo_db import MongoDB from application.core.settings import settings - from application.llm.handlers.handler_creator import LLMHandlerCreator from application.llm.llm_creator import LLMCreator from application.logging import build_stack_data, log_activity, LogContext from application.retriever.base import BaseRetriever +logger = logging.getLogger(__name__) + class BaseAgent(ABC): def __init__( @@ -157,7 +155,7 @@ class BaseAgent(ABC): } yield {"type": "tool_call", "data": {**tool_call_data, "status": "error"}} self.tool_calls.append(tool_call_data) - return f"Failed to parse tool call.", call_id + return "Failed to parse tool call.", call_id # Check if tool_id exists in available tools if tool_id not in tools_dict: