refactor: Update ToolCallingAgentComponent input_dict type to use Dict[str, str] for values
This commit is contained in:
parent
ef1e70d151
commit
47940c8aa5
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ class ToolCallingAgentComponent(Component):
|
|||
verbose=True,
|
||||
handle_parsing_errors=self.handle_parsing_errors,
|
||||
)
|
||||
input_dict: dict[str, str | list[BaseMessage]] = {"input": self.input_value}
|
||||
input_dict: dict[str, str | list[Dict[str, str]]] = {"input": self.input_value}
|
||||
if hasattr(self, "memory") and self.memory:
|
||||
input_dict["chat_history"] = self.convert_chat_history(self.memory)
|
||||
result = await runnable.ainvoke(input_dict)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue