Commit Graph

26 Commits

Author SHA1 Message Date
Wells Bunker e0828bc8c8
Fixing the todo step to throw llm errors if the model throws an error 2025-09-30 14:45:25 -06:00
Nate Kelley 44bfc6f830
Merge branch 'staging' into big-nate-bus-1815-pulled-in-reports-treated-as-dashboards 2025-09-18 14:16:51 -06:00
Nate Kelley 33073e6729
Move to scoped database imports 2025-09-18 12:36:37 -06:00
dal 74377029ee
grepitle comment fixes 2025-09-18 03:46:55 -06:00
dal 438d0f32ca
Add retry logic for steps in analyst workflow
- Implemented `withStepRetry` utility to handle retries for various steps in the analyst workflow, including creating todos, extracting values, generating chat titles, and routing analysis types.
- Enhanced error handling by logging retry attempts and errors for better debugging.
- Introduced a new utility module for step retry functionality, including options for maximum attempts and exponential backoff delays.
- Added tests for the new retry utilities to ensure correct behavior under various scenarios.
2025-09-17 16:18:02 -06:00
Wells Bunker db252c9e7a
Adding personalization into the agent, adding PATCH api for user to add personalization 2025-09-11 17:35:01 -06:00
dal 22093c21f0
anthorpic million token beta with cli release fix 2025-09-09 14:42:17 -06:00
dal b482172294
remove headers 2025-09-09 11:52:01 -06:00
dal 17b06b97e7
Update GitHub Actions and CLI configuration
- Added .actrc to .gitignore to prevent local configuration from being tracked.
- Updated cli-release.yml to specify paths for apps and packages, enhancing workflow triggers.
- Improved permissions in cli-release.yml for better access control.
- Enhanced update-brew-tap.yml with detailed summary creation for deployment results.
- Introduced README.md for GitHub Actions, providing usage instructions and supported platforms.
- Added deploy and dry-run actions for better deployment management.
- Updated error handling in CLI commands for clearer messaging and improved user experience.
- Bumped CLI version to 0.3.0 in package.json to reflect recent changes.
2025-09-04 11:21:47 -06:00
dal 030968e1e8
fix anthropic beta headers 2025-09-03 11:47:03 -06:00
dal b980ad6588
underscore for header on bedrock 2025-09-03 11:30:20 -06:00
dal 02e70b6905
anthropic beta headers 2025-09-02 21:49:00 -06:00
dal 4e06c529a5
routing for gateway 2025-09-02 21:21:33 -06:00
dal 13d62eaf14
Add gateway options for 'anthropic' provider in various agent steps
Updated DEFAULT_CACHE_OPTIONS in analyst and think-and-prep agents to include gateway options. Added gateway settings in multiple steps including analysis-type-router, create-todos, extract-values, generate-chat-title, flag-chat, format-follow-up, format-initial, and identify-assumptions steps to restrict provider usage to 'anthropic'. This enhances control over the AI model interactions.
2025-09-02 20:09:21 -06:00
dal 6d1a0b6c86
todos cleanedup 2025-08-18 10:31:52 -06:00
dal 6b171aae2e
build error map the reasoning message better in web 2025-08-18 10:16:59 -06:00
dal ccc27abaee
Enhance tool state management and reasoning entries across various tools
- Introduced start time tracking for tool operations in create, modify, and report tools to improve performance monitoring.
- Updated reasoning entries to include elapsed time for completed operations, enhancing user feedback.
- Refactored tool logic to ensure consistent handling of file statuses and improved clarity in reasoning messages.
- Enhanced logging for better traceability during tool execution.

These changes improve the overall user experience and maintainability of the toolset.
2025-08-13 14:19:32 -06:00
dal 8299e47e4e
more migration, streaming, type safety, etc 2025-08-13 10:48:07 -06:00
dal 855e7b1a55
Integrate dataset handling into Analyst and Think and Prep agents
- Added support for fetching and managing user-specific datasets in the `analystAgentTask`, enhancing the context available for processing.
- Updated the `AnalystAgent` and `ThinkAndPrepAgent` schemas to include datasets, ensuring they are passed correctly in system messages.
- Implemented error handling for dataset retrieval to prevent workflow interruptions.
- Adjusted integration tests to accommodate the new datasets structure, ensuring comprehensive coverage.

These changes improve the agents' ability to utilize relevant datasets, enhancing their functionality and user experience.
2025-08-12 19:31:25 -06:00
dal cc6c407023
Enhance TODO creation process with streaming support
- Introduced a new streaming mechanism for generating TODO lists, allowing for real-time updates and improved user experience.
- Added context handling for datasets in both `AnalystAgent` and `ThinkAndPrepAgent`, ensuring relevant data is included in system messages.
- Implemented new helper functions for managing TODO state and reasoning messages, improving code organization and clarity.
- Updated integration tests to validate the new streaming functionality and ensure consistent message roles.

These changes significantly enhance the functionality and maintainability of the TODO creation process within the agent workflow.
2025-08-12 18:32:56 -06:00
dal 0b8f8665d6
Refactor agent steps and message roles
- Removed unused `steps` array from `createThinkAndPrepAgent` function to simplify the code.
- Updated message role from 'assistant' to 'user' in `create-todos-step` for better context alignment.
- Adjusted `valuesMessage` role in `extract-values-search-step` to 'user' when extracted values are present, enhancing message clarity.

These changes improve code clarity and ensure consistent message roles across agent steps.
2025-08-12 16:13:41 -06:00
dal 1d0d312ff3
lots of tests passing 2025-08-12 15:54:46 -06:00
dal 77bc071f4b
more migrations 2025-08-12 09:32:07 -06:00
dal 601a13c402
analyst agent steps is clean 2025-08-08 11:33:04 -06:00
dal 3d12455f69
refactor: enhance agent options and streamline step functions
- Added new properties (chatId, organizationId, dataSourceId, dataSourceSyntax, userId) to the ThinkAndPrepAgentOptionsSchema for improved tracking and functionality.
- Renamed createTodos function to runCreateTodosStep for consistency across step functions.
- Updated integration tests to reflect the new function names and ensure proper functionality.
- Removed outdated test files related to the think-and-prep step, reducing clutter and focusing on relevant tests.

These changes improve the modularity and clarity of the agent's configuration while enhancing the overall maintainability of the codebase.
2025-08-08 09:29:59 -06:00
dal f3dd5c1ccb
refactor: export AnalystAgentOptionsSchema and AnalystStreamOptionsSchema
- Changed the declaration of AnalystAgentOptionsSchema and AnalystStreamOptionsSchema to export them for use in other modules.
- Removed the test files related to analyst-agent steps, streamlining the codebase and improving maintainability.

This update enhances the modularity of the agent's configuration schemas while cleaning up unused test files.
2025-08-08 08:25:41 -06:00