@tangle-network/agent-runtime 0.17.2 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -552,13 +552,7 @@ function handleChatTurn(input) {
552
552
  }
553
553
  const rawFinal = producer.finalText();
554
554
  const finalText = hooks.transformFinalText ? await hooks.transformFinalText(rawFinal) : rawFinal;
555
- try {
556
- await hooks.persistAssistantMessage({ identity, finalText });
557
- } catch (err) {
558
- log("[chat-engine] persistAssistantMessage threw", {
559
- error: err instanceof Error ? err.message : String(err)
560
- });
561
- }
555
+ await hooks.persistAssistantMessage({ identity, finalText });
562
556
  if (hooks.onTurnComplete) {
563
557
  try {
564
558
  await hooks.onTurnComplete({ identity, finalText });