Update src/txagent/txagent.py
Browse files- src/txagent/txagent.py +4 -3
src/txagent/txagent.py
CHANGED
|
@@ -872,7 +872,7 @@ Generate **one summarized sentence** about "function calls' responses" with nece
|
|
| 872 |
if '[FinalAnswer]' in last_thought:
|
| 873 |
_, final_answer = last_thought.split('[FinalAnswer]', 1)
|
| 874 |
history.append(
|
| 875 |
-
ChatMessage(role="assistant", content=final_answer.strip())
|
| 876 |
)
|
| 877 |
yield history
|
| 878 |
return
|
|
@@ -893,7 +893,7 @@ Generate **one summarized sentence** about "function calls' responses" with nece
|
|
| 893 |
if '[FinalAnswer]' in last_thought:
|
| 894 |
_, final_answer = last_thought.split('[FinalAnswer]', 1)
|
| 895 |
history.append(
|
| 896 |
-
ChatMessage(role="assistant", content=final_answer.strip())
|
| 897 |
)
|
| 898 |
yield history
|
| 899 |
else:
|
|
@@ -916,8 +916,9 @@ Generate **one summarized sentence** about "function calls' responses" with nece
|
|
| 916 |
else:
|
| 917 |
final_answer = last_thought
|
| 918 |
history.append(
|
| 919 |
-
ChatMessage(role="assistant", content=final_answer.strip())
|
| 920 |
)
|
| 921 |
yield history
|
| 922 |
else:
|
| 923 |
return None
|
|
|
|
|
|
| 872 |
if '[FinalAnswer]' in last_thought:
|
| 873 |
_, final_answer = last_thought.split('[FinalAnswer]', 1)
|
| 874 |
history.append(
|
| 875 |
+
ChatMessage(role="assistant", content="**🧠 Final Analysis**\n\n" + final_answer.strip())
|
| 876 |
)
|
| 877 |
yield history
|
| 878 |
return
|
|
|
|
| 893 |
if '[FinalAnswer]' in last_thought:
|
| 894 |
_, final_answer = last_thought.split('[FinalAnswer]', 1)
|
| 895 |
history.append(
|
| 896 |
+
ChatMessage(role="assistant", content="**🧠 Final Analysis**\n\n" + final_answer.strip())
|
| 897 |
)
|
| 898 |
yield history
|
| 899 |
else:
|
|
|
|
| 916 |
else:
|
| 917 |
final_answer = last_thought
|
| 918 |
history.append(
|
| 919 |
+
ChatMessage(role="assistant", content="**🧠 Final Analysis**\n\n" + final_answer.strip())
|
| 920 |
)
|
| 921 |
yield history
|
| 922 |
else:
|
| 923 |
return None
|
| 924 |
+
|