Rename tool_response_message to error_message and append it (#325)
This commit is contained in:
parent
bc82d1cb76
commit
115c8aef1e
|
@ -294,10 +294,11 @@ class MultiStepAgent:
|
||||||
+ str(step_log.error)
|
+ str(step_log.error)
|
||||||
+ "\nNow let's retry: take care not to repeat previous errors! If you have retried several times, try a completely different approach.\n"
|
+ "\nNow let's retry: take care not to repeat previous errors! If you have retried several times, try a completely different approach.\n"
|
||||||
)
|
)
|
||||||
tool_response_message = {
|
error_message = {
|
||||||
"role": MessageRole.ASSISTANT,
|
"role": MessageRole.ASSISTANT,
|
||||||
"content": message_content,
|
"content": message_content,
|
||||||
}
|
}
|
||||||
|
memory.append(error_message)
|
||||||
if step_log.tool_calls is not None and (
|
if step_log.tool_calls is not None and (
|
||||||
step_log.error is not None or step_log.observations is not None
|
step_log.error is not None or step_log.observations is not None
|
||||||
):
|
):
|
||||||
|
|
Loading…
Reference in New Issue