kaiban-ai / KaibanJS

KaibanJS is a JavaScript-native framework for building and managing multi-agent systems with a Kanban-inspired approach.
https://www.kaibanjs.com/
MIT License
761 stars 50 forks source link

[BUG] - Incomplete Report Generation in AgenticJS #24

Closed dannleft closed 3 months ago

dannleft commented 3 months ago

Describe the Bug

The issue arises when generating reports through agents that involve a search and analysis of information. The resulting report is often incomplete or truncated, appearing as if it has not fully formed. This truncation disrupts the integrity and utility of the report.

AgenticJS Team Config

Not available

Steps to Reproduce

  1. Navigate to the provided playground link.
  2. Initiate the data search and analysis task using the configured agents.
  3. Observe the output where the report generation should occur.
  4. Notice that the report ends abruptly and appears incomplete.

image image

Current vs. Expected behavior

Current Behavior: When the report is generated after performing a search and analysis, it cuts off partway through without displaying the full content.

Expected Behavior: The report should fully render all the analyzed data and conclusions based on the search criteria, providing a complete and comprehensive overview.

Environment

OdinSweng commented 3 months ago

Thank you, @dannleft. Let's review it and fix it

OdinSweng commented 3 months ago

@dannleft thank you for reporting this issue. I attempted to reproduce the problem, but I could not observe the behavior as described.

To ensure that the result is fully rendered, I recommend verifying the final output of the workflow. You can temporarily monitor the output by checking the browser console

Screenshot 2024-08-28 at 3 12 28 PM

However, this is a temporary solution, as console logging may be removed in future updates.

For a more reliable approach, I suggest using the Redux DevTools extension, which will allow you to track the actions and state changes within the application

Screenshot 2024-08-28 at 3 13 06 PM

You can download the extension here: Redux DevTools Extension.

If you encounter the issue again and verify that the result is indeed incomplete, please use the "Share" option in the playground to share the specific team setup where the problem occurs (e.g., https://www.agenticjs.com/share/XNprxOB3Og233P9h05nu). This will help us investigate further.

dannleft commented 3 months ago

Thank you @OdinSweng . This actually happened about a month and a half ago, and it hasn't happened to me since then. In the screenshots I shared, you can see that the report was not complete when it was generated. But as I mentioned, it was something that happened a month and a half ago.