Commit Graph

355 Commits

Author SHA1 Message Date
dal 6d6c531d5c
fix most recent version on the chat 2025-09-26 10:15:52 -06:00
dal de01a39c5c
feat: add memory optimization for AI tools and LRU cache
- Add cleanupState helper to clear tool state after execution
- Update all tool execute functions to clean up state after completion
- Reduce LRU cache from 500 to 10 entries (90% memory reduction)
- Extend cache TTL to 20 minutes for long-running streams
- Prevent memory leaks during 15-minute streaming sessions

This significantly reduces memory usage during long AI streaming sessions
by ensuring tool states are cleared after execution and limiting cache size.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-26 10:02:49 -06:00
dal 87017115ba
sql dialect and tool deltas 2025-09-26 09:06:03 -06:00
Nate Kelley b62e66f64a
Merge branch 'staging' into big-nate-bus-1830-ability-to-apply-color-theme-by-a-category 2025-09-25 17:06:55 -06:00
Blake Rouse 600fabc144 hot-fixes-baby 2025-09-25 16:26:30 -06:00
Blake Rouse 2ecb1f5a2d metric-time-frame-hot-fixes 2025-09-25 11:38:09 -06:00
dal d29f077bdf
fix metric sneaking in 2025-09-24 13:58:23 -06:00
dal 030d355f87
Merge pull request #1105 from buster-so/dallin-bus-1910-streaming-broke-towards-the-end-of-its-research
Potential fix on report stream being cut early
2025-09-24 08:01:02 -06:00
dal 89813ef82e
Potential fix on report stream being cut early 2025-09-24 07:50:48 -06:00
dal 08a026189c
Merge pull request #1104 from buster-so/dallin-bus-1894-chats-are-returning-all-individual-metrics-that-were-saved
Fix on metrics being sent up in response messages
2025-09-24 07:46:19 -06:00
dal a2d64ec754
Fix on metrics being sent up in response messages 2025-09-24 07:35:42 -06:00
Blake Rouse 804a90ca23
Merge pull request #1093 from buster-so/key-finding-llm-tweak
Key finding llm tweak
2025-09-23 16:15:45 -06:00
Blake Rouse f44d809a53 key finding titles hot fix 2025-09-23 16:13:06 -06:00
Blake Rouse fed8f3082c Update create-reports-tool standard description for key finding LLM tweak 2025-09-23 16:12:11 -06:00
Nate Kelley 55394967a5
Merge pull request #1070 from buster-so/jacob-bus-1829-100-stacked-bar-chart-isnt-formatted-correctly
If the Y-axis is a % for a stacked chart, auto flip it to a percentag…
2025-09-23 15:43:19 -06:00
Blake Rouse 2858a3dfd5 date truncation and sign in page update 2025-09-23 15:31:25 -06:00
Blake Rouse f5042896ed Update analyst agent prompt and metric tool description 2025-09-23 13:15:54 -06:00
Nate Kelley 523601b8c5
Merge branch 'staging' into quick-prompt-changes 2025-09-23 13:01:47 -06:00
Nate Kelley c93b2cd96e
Merge branch 'staging' into jacob-bus-1829-100-stacked-bar-chart-isnt-formatted-correctly 2025-09-23 13:01:41 -06:00
Nate Kelley e517242995
fix busted unit tests 2025-09-23 13:00:33 -06:00
Blake Rouse cc13d60d04 quick-prompt-changes 2025-09-23 12:57:20 -06:00
Blake Rouse 54f95c932f bulk-staging-changes-babyyyy 2025-09-23 12:10:07 -06:00
Blake Rouse acf67fb8e8 Update analyst agent prompt and create reports tool description 2025-09-23 11:29:04 -06:00
jacob-buster d02ef8459f If the Y-axis is a % for a stacked chart, auto flip it to a percentage-stack 2025-09-23 10:29:09 -06:00
dal eeeec56bae
Add in more tests and catch multiple report metric files 2025-09-23 09:31:43 -06:00
Blake Rouse 1bd582b5ff Update create-reports-tool investigation description 2025-09-23 08:51:18 -06:00
Blake Rouse 1977d50a8b Merge remote-tracking branch 'origin/staging' into feature/update-create-reports-tool-prompts 2025-09-23 08:42:36 -06:00
Blake Rouse 61f7743d19 Update agent prompts and tool descriptions for improved report creation
- Enhanced analyst agent prompt with better structured analysis guidance
- Improved think-and-prep agent investigation prompt for more thorough data exploration
- Updated create-reports-tool descriptions for clearer functionality and usage
2025-09-23 08:36:46 -06:00
dal ab8db11332
blake routing changes 2025-09-22 17:10:26 -06:00
dal 1b23afc705
merge staging 2025-09-22 14:23:23 -06:00
dal 2fc673dbbe
dynamic report tool description 2025-09-22 14:22:51 -06:00
dal fc8e4ab5c6
Revert prompt changes from commit 18b4d12c0
Reverting Blake Rouse's prompt improvements from the merge commit #1029
- analyst-agent-prompt.txt
- think-and-prep-agent-investigation-prompt.txt
- think-and-prep-agent-standard-prompt.txt
- create-reports-tool-description.txt
2025-09-22 13:52:02 -06:00
wellsbunk5 483570278c
Merge pull request #1040 from buster-so/fixMetricFileCascadingPermissionsFromReports
Fix metric_file permissions not cascading from report_files
2025-09-22 13:46:13 -06:00
dal 9e0cce2c59
Merge pull request #1039 from buster-so/dallin-bus-1853-report-creation-stuck-in-progress-despite-final-response
dallin bus 1853 report creation stuck in progress despite final response
2025-09-22 13:42:31 -06:00
Wells Bunker 1646e37540
Fix metric_file permissions not cascading from report_files 2025-09-22 13:40:46 -06:00
dal a7b307a460
report cut off fix 2025-09-22 13:38:27 -06:00
dal cb17d9b167
dashboard version fix 2025-09-22 13:35:54 -06:00
dal b8b2526348
Merge remote-tracking branch 'origin/staging' into dallin-bus-1853-report-creation-stuck-in-progress-despite-final-response 2025-09-22 13:02:29 -06:00
dal 0a430bef5b
report final update fix 2025-09-22 12:59:59 -06:00
dal 7638d1650f
change report to be single entry 2025-09-22 12:57:23 -06:00
Blake Rouse 4510ac43c7 Update create reports tool prompts and descriptions
- Split create-reports-tool-description.txt into separate standard and investigation descriptions
- Updated analyst-agent-prompt.txt
- Added create-reports-tool-investigation-description.txt for investigation-specific prompts
- Added create-reports-tool-standard-description for standard prompts
2025-09-22 12:01:52 -06:00
Blake Rouse 09554bdb93
Update packages/ai/src/tools/visualization-tools/reports/create-reports-tool/create-reports-tool-description.txt
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-09-22 10:20:27 -06:00
Blake Rouse c0c6d8ee4c
Update packages/ai/src/tools/visualization-tools/reports/create-reports-tool/create-reports-tool-description.txt
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-09-22 10:20:21 -06:00
Blake Rouse b199a7d74c Improve AI agent and tool prompts
- Update analyst agent prompt for better analysis guidance
- Enhance think-and-prep agent prompts (standard and investigation)
- Refine create-reports-tool description for clearer instructions
2025-09-22 10:17:10 -06:00
dal 651af9de4e
report update fixes 2025-09-22 09:47:12 -06:00
dal 83aca9300e
percentage instruction fix so llm is better at them 2025-09-22 08:42:35 -06:00
Nate Kelley b567efd143
Merge branch 'staging' into big-nate-bus-1830-ability-to-apply-color-theme-by-a-category 2025-09-20 15:15:47 -06:00
Nate Kelley 241b2c4f88
Remove weird chart example and update tests 2025-09-19 15:51:25 -06:00
dal 2673805cd7
fix: Align mostRecentFile selection with response message files
Ensures the mostRecentFile saved to chat matches what users see in response messages.
Reports take priority (already displayed), followed by first extracted file.

Co-Authored-By: Dallin Miner <dallin@buster.so>
2025-09-19 15:41:07 -06:00
dal 84314ebc13
fixes for imports 2025-09-19 10:31:46 -06:00
dal f96cbf02e8
report file and trigger 2025-09-19 08:58:50 -06:00
dal df29484dd7
most recent file bug 2025-09-18 16:27:59 -06:00
Nate Kelley 688fb36270
fix broken unit tests 2025-09-18 14:15:24 -06:00
Nate Kelley 33073e6729
Move to scoped database imports 2025-09-18 12:36:37 -06:00
Nate Kelley 6bcd9e7b9e
scope down more types 2025-09-17 16:42:47 -06:00
Wells Bunker fd4ff6216f
AssetTypeEnum rework 2025-09-17 14:37:14 -06:00
dal a7e0c71acb
Refactor done-tool-execute parameter naming and improve code formatting in modify-reports-tool files 2025-09-17 00:49:09 -06:00
dal 8f9fcb711b
type mapping and fixing the report file streaming for modify. 2025-09-17 00:36:36 -06:00
wellsbunk5 001973580e
Merge pull request #903 from buster-so/wells-bus-1722-add-report_files-inheritance-and-ancestor-search-for-metrics
MetricFilesToReportFiles db table
2025-09-15 17:28:11 -06:00
Wells Bunker b0ac88fbac
Adding the metric_files_to_report_files table and adding inheritance permissions to search 2025-09-15 17:23:39 -06:00
dal 2761b3f0fc
Integrate SQL functionality by adding SQL routes and updating dependencies. Refactor access control imports to use centralized access-controls package. Update pnpm-lock and package.json for new dependencies including node-sql-parser and yaml. 2025-09-15 15:07:43 -06:00
dal c5b8145ede
tweaks to metric formatting prompt 2025-09-12 14:16:00 -06:00
dal 5fc2ffffba
jus tneed to update the files correctly for the chat record 2025-09-12 13:29:55 -06:00
dal 3af0fee1b0
query limit fixes 2025-09-11 22:19:55 -06:00
Nate Kelley e5112da7b8
Merge branch 'staging' into big-nate-bus-1608-make-a-tanstack-start-demo 2025-09-04 08:50:29 -06:00
dal 6a387ea5a7
stop sequential thinking 2025-09-03 11:24:17 -06:00
dal caf40c492e
sequential thinking is complete field 2025-09-03 11:11:01 -06:00
dal 2e11ee999a
delay to see if it fixes the issue of not marking complete 2025-09-03 10:10:36 -06:00
Nate Kelley a3c9ce8900
make shared materialize function 2025-09-03 10:09:22 -06:00
Nate Kelley fca5a645ae
update tests 2025-09-03 10:05:06 -06:00
dal badf379b8f
sequential thinking update for race condition? 2025-09-03 08:59:00 -06:00
dal 4e6f13c181
sequential thinking and updates 2025-09-03 08:46:56 -06:00
dal 497598afe1
tool result fixing 2025-09-02 16:49:08 -06:00
dal 017971b776
tool call + result sorting logic 2025-09-02 16:05:04 -06:00
dal ed723b7ca7
fixes to other communicatio tools 2025-08-27 10:54:08 -06:00
dal 5b1c903f78
snowflake credentials adjustment 2025-08-26 10:34:15 -06:00
dal fb1a49f498
fix on the done tool to get results in before race condition 2025-08-25 15:28:26 -06:00
dal e97ec9c002
Enhance S3 integration functionality
- Added bucketName to S3 integration responses and handlers to support bucket-specific operations.
- Updated tests to reflect the inclusion of bucketName in integration creation and retrieval processes.
- Improved error handling for fetching bucket names from the vault during S3 integration retrieval.

These changes improve the S3 integration management by allowing for more granular control and visibility of storage buckets.
2025-08-25 12:48:19 -06:00
dal dcf1687b50
Refactor sequential thinking tool to remove raw LLM message entries
- Removed the creation and handling of raw LLM message entries in both start and finish functions.
- Updated message entry updates to only include reasoning messages, simplifying the logic and improving clarity.
2025-08-22 16:50:55 -06:00
dal fe5819efe1
Update AWS SDK dependencies and enhance metric data handling
- Upgraded '@aws-sdk/client-s3' to version 3.873.0 across multiple packages.
- Introduced caching mechanisms for metric data retrieval in the getMetricDataHandler function.
- Updated API endpoints to support report_file_id for cache lookups and data retrieval.
- Enhanced error handling and logging for cache operations.
- Refactored related components to accommodate new caching logic and parameters.
2025-08-22 12:45:05 -06:00
dal 21a2d3f2d7
Refactor report generation handling and UI updates
- Simplified the `GeneratingContent` component to display a static loading message.
- Updated `ReportPageController` to determine if a report is being generated based on the current message context.
- Adjusted report status handling in the delta creation process to maintain 'loading' status during streaming.
- Enhanced logic in the modify reports helper to ensure file status reflects loading during streaming and only updates to completed or failed when all edits are finalized.
- Modified database query to preserve input order for new messages during updates.
2025-08-22 10:05:07 -06:00
dal d1155e5978
Enhance metric query execution and metadata handling
- Introduced `executeMetricQuery` utility for standardized metric SQL query execution with retry logic.
- Updated `getMetricDataHandler` and metric tool execution functions to utilize the new query utility, improving error handling and result processing.
- Added metadata generation from query results to provide detailed insights into data structure.
- Refactored SQL validation to ensure only read-only queries are executed, enhancing data integrity.
2025-08-22 09:01:28 -06:00
dal 60d7bd67d1
Update modify-reports-transform-helper to display elapsed time only when all edits are complete, ensuring accurate reporting during the editing process. 2025-08-21 21:53:13 -06:00
dal d137cfe678
follow ups with tool result error solved for other tool calls 2025-08-21 16:20:08 -06:00
dal 93fdbd07b3
fixes on tests and stuff 2025-08-21 14:15:58 -06:00
dal 81c703a472
Update dependencies to version 4.0.1 for @trigger.dev/build, @trigger.dev/core, and @trigger.dev/sdk; enhance UUID validation in modify-reports-delta tool. 2025-08-21 13:34:26 -06:00
dal 4f7ef9525e
Add basic task examples and update SDK version in Trigger.dev documentation 2025-08-21 13:27:31 -06:00
dal bb6d932f26
Implement caching for report snapshots in modify and create reports tools 2025-08-21 12:57:12 -06:00
dal 0ac8921a8a
small prompt fix 2025-08-21 12:47:31 -06:00
dal 7b693d1c3d
streaming 2025-08-21 12:20:40 -06:00
dal 6e41a4122b
sql fixes and report streaming 2025-08-21 10:31:36 -06:00
dal 6a4da2ed57
staging changes 2025-08-21 09:21:52 -06:00
dal 5838285c81
Merge remote-tracking branch 'origin/staging' into improved-sql-parsing 2025-08-21 08:31:09 -06:00
dal 2f641e8b2d
Enhance SQL permission validation to include unauthorized columns in error messages. Update permission error message creation to handle both unauthorized tables and columns. Modify SQL execution functions to validate column permissions alongside table permissions, improving feedback for users lacking access. 2025-08-21 08:30:48 -06:00
dal 5d9c9e6a77
got rid of delta streaming 2025-08-20 16:48:13 -06:00
dal c94ceaa10a
modify metric delta close 2025-08-20 16:08:12 -06:00
dal 415010b8fc
create reports fixes 2025-08-20 13:38:38 -06:00
dal 1cac320006
logic around reports, bug fixes, self healing, etc. 2025-08-20 10:22:35 -06:00
dal bc6782e156
test fixes 2025-08-18 23:08:41 -06:00
dal 5b5191356a
Refactor report creation and modification logic. Introduced batch update functionality for reports, improved version history management, and enhanced error handling during report updates. Adjusted task duration settings for better performance and refined file extraction logic to filter out reports and metrics appropriately. 2025-08-18 17:00:42 -06:00