refactor: Update ToolCallingAgentComponent description
Update the description of the ToolCallingAgentComponent class in ToolCallingAgent.py to improve clarity and conciseness.
This commit is contained in:
parent
22839ee270
commit
ab9083d066
1 changed files with 2 additions and 4 deletions
|
|
@ -12,9 +12,7 @@ from langflow.schema import Data
|
||||||
|
|
||||||
class ToolCallingAgentComponent(Component):
|
class ToolCallingAgentComponent(Component):
|
||||||
display_name: str = "Tool Calling Agent"
|
display_name: str = "Tool Calling Agent"
|
||||||
description: str = (
|
description: str = "Agent that uses tools. Only models that are compatible with function calling are supported."
|
||||||
"Agent that uses tools. Only models that are compatible with function calling are supported."
|
|
||||||
)
|
|
||||||
icon = "LangChain"
|
icon = "LangChain"
|
||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
|
|
@ -100,7 +98,7 @@ class ToolCallingAgentComponent(Component):
|
||||||
|
|
||||||
return Message(text=result_string)
|
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 = []
|
messages = []
|
||||||
for item in chat_history:
|
for item in chat_history:
|
||||||
role = "user" if item.sender == "User" else "assistant"
|
role = "user" if item.sender == "User" else "assistant"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue