From ab9083d066326e5ee391e15056e5e4feb793136a Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 23 Jun 2024 01:53:02 -0300 Subject: [PATCH] refactor: Update ToolCallingAgentComponent description Update the description of the ToolCallingAgentComponent class in ToolCallingAgent.py to improve clarity and conciseness. --- .../base/langflow/components/agents/ToolCallingAgent.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backend/base/langflow/components/agents/ToolCallingAgent.py b/src/backend/base/langflow/components/agents/ToolCallingAgent.py index bf40f89f7..a8e4d3dd3 100644 --- a/src/backend/base/langflow/components/agents/ToolCallingAgent.py +++ b/src/backend/base/langflow/components/agents/ToolCallingAgent.py @@ -12,9 +12,7 @@ from langflow.schema import Data class ToolCallingAgentComponent(Component): display_name: str = "Tool Calling Agent" - description: str = ( - "Agent that uses tools. Only models that are compatible with function calling are supported." - ) + description: str = "Agent that uses tools. Only models that are compatible with function calling are supported." icon = "LangChain" inputs = [ @@ -100,7 +98,7 @@ class ToolCallingAgentComponent(Component): return Message(text=result_string) - def convert_chat_history(self, chat_history: List[Data]) -> List[Dict[str, str]]: + def convert_chat_history(self, chat_history: List[Data]) -> List[dict[str, str]]: messages = [] for item in chat_history: role = "user" if item.sender == "User" else "assistant"