fix: allow passing curly braces in messages to the Agent component (#4960)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-11-30 15:39:08 -03:00 committed by GitHub
commit cd3848661a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)