Skip to content

Commit 5727983

Browse files
committed
fix: reset interaction_displayed flag to ensure final summary is shown in LLM responses
1 parent 2291775 commit 5727983

File tree

12 files changed

+28
-20
lines changed

12 files changed

+28
-20
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
1616
# Install Python packages (using latest versions)
1717
RUN pip install --no-cache-dir \
1818
flask \
19-
"praisonai>=2.2.77" \
19+
"praisonai>=2.2.78" \
2020
"praisonai[api]" \
2121
gunicorn \
2222
markdown

docker/Dockerfile.chat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
1616
# Install Python packages (using latest versions)
1717
RUN pip install --no-cache-dir \
1818
praisonai_tools \
19-
"praisonai>=2.2.77" \
19+
"praisonai>=2.2.78" \
2020
"praisonai[chat]" \
2121
"embedchain[github,youtube]"
2222

docker/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN mkdir -p /root/.praison
2020
# Install Python packages (using latest versions)
2121
RUN pip install --no-cache-dir \
2222
praisonai_tools \
23-
"praisonai>=2.2.77" \
23+
"praisonai>=2.2.78" \
2424
"praisonai[ui]" \
2525
"praisonai[chat]" \
2626
"praisonai[realtime]" \

docker/Dockerfile.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
1616
# Install Python packages (using latest versions)
1717
RUN pip install --no-cache-dir \
1818
praisonai_tools \
19-
"praisonai>=2.2.77" \
19+
"praisonai>=2.2.78" \
2020
"praisonai[ui]" \
2121
"praisonai[crewai]"
2222

docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ healthcheck:
121121
## 📦 Package Versions
122122
123123
All Docker images use consistent, up-to-date versions:
124-
- PraisonAI: `>=2.2.77`
124+
- PraisonAI: `>=2.2.78`
125125
- PraisonAI Agents: `>=0.0.92`
126126
- Python: `3.11-slim`
127127

@@ -218,7 +218,7 @@ docker-compose up -d
218218
### Version Pinning
219219
To use specific versions, update the Dockerfile:
220220
```dockerfile
221-
RUN pip install "praisonai==2.2.77" "praisonaiagents==0.0.92"
221+
RUN pip install "praisonai==2.2.78" "praisonaiagents==0.0.92"
222222
```
223223

224224
## 🌐 Production Deployment

src/praisonai-agents/praisonaiagents/llm/llm.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,8 @@ def get_response(
14561456
)
14571457
if should_break:
14581458
final_response_text = tool_summary_text
1459+
# Reset interaction_displayed to ensure final summary is shown
1460+
interaction_displayed = False
14591461
break
14601462
elif tool_summary_text is None and iteration_count > self.OLLAMA_SUMMARY_ITERATION_THRESHOLD:
14611463
# Continue iteration after adding final answer prompt
@@ -1485,6 +1487,8 @@ def get_response(
14851487
tool_summary = self._generate_ollama_tool_summary(accumulated_tool_results, response_text)
14861488
if tool_summary:
14871489
final_response_text = tool_summary
1490+
# Reset interaction_displayed to ensure final summary is shown
1491+
interaction_displayed = False
14881492
break
14891493

14901494
# If we've executed tools in previous iterations, this response contains the final answer
@@ -2567,6 +2571,8 @@ async def get_response_async(
25672571
)
25682572
if should_break:
25692573
final_response_text = tool_summary_text
2574+
# Reset interaction_displayed to ensure final summary is shown
2575+
interaction_displayed = False
25702576
break
25712577
elif tool_summary_text is None and iteration_count > self.OLLAMA_SUMMARY_ITERATION_THRESHOLD:
25722578
# Continue iteration after adding final answer prompt
@@ -2594,6 +2600,8 @@ async def get_response_async(
25942600
tool_summary = self._generate_ollama_tool_summary(accumulated_tool_results, response_text)
25952601
if tool_summary:
25962602
final_response_text = tool_summary
2603+
# Reset interaction_displayed to ensure final summary is shown
2604+
interaction_displayed = False
25972605
break
25982606

25992607
# If we've executed tools in previous iterations, this response contains the final answer

src/praisonai-agents/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "praisonaiagents"
7-
version = "0.0.151"
7+
version = "0.0.152"
88
description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
99
requires-python = ">=3.10"
1010
authors = [

src/praisonai-agents/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/praisonai/praisonai.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ class Praisonai < Formula
33

44
desc "AI tools for various AI applications"
55
homepage "https://github.com/MervinPraison/PraisonAI"
6-
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.77.tar.gz"
7-
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.77.tar.gz | shasum -a 256`.split.first
6+
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.78.tar.gz"
7+
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.78.tar.gz | shasum -a 256`.split.first
88
license "MIT"
99

1010
depends_on "python@3.11"

src/praisonai/praisonai/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def create_dockerfile(self):
5757
file.write("FROM python:3.11-slim\n")
5858
file.write("WORKDIR /app\n")
5959
file.write("COPY . .\n")
60-
file.write("RUN pip install flask praisonai==2.2.77 gunicorn markdown\n")
60+
file.write("RUN pip install flask praisonai==2.2.78 gunicorn markdown\n")
6161
file.write("EXPOSE 8080\n")
6262
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
6363

0 commit comments

Comments
 (0)