fix: allow passing curly braces in messages to the Agent component (#4960)
This commit is contained in:
parent
d49a1b24b5
commit
cd3848661a
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class ToolCallingAgentComponent(LCToolsAgentComponent):
|
|||
messages = [
|
||||
("system", self.system_prompt),
|
||||
("placeholder", "{chat_history}"),
|
||||
("human", self.input_value),
|
||||
("human", "{input}"),
|
||||
("placeholder", "{agent_scratchpad}"),
|
||||
]
|
||||
prompt = ChatPromptTemplate.from_messages(messages)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue