fix: Initialize the tool_response (#218)

This commit is contained in:
Teagan Glenn
2024-09-14 09:38:46 -06:00
committed by GitHub
parent 90c0edc090
commit bf0ff32827

View File

@@ -421,6 +421,7 @@ class LocalLLMAgent(ConversationEntity, AbstractConversationAgent):
response=intent_response, conversation_id=conversation_id
)
tool_response = None
# parse response
to_say = service_call_pattern.sub("", response.strip())
for block in service_call_pattern.findall(response.strip()):