Commit Graph

774 Commits

Author SHA1 Message Date
AI Christianson f1277aadf1 session panel spacing 2025-03-14 17:08:14 -04:00
Andrew I. Christianson aaf09c5df6
Merge pull request #132 from ariel-frischer/fix-token-limiter-2
Fix Sonnet 3.7 Token Limiter - Adjust Effective Max Input Tokens
2025-03-14 16:42:39 -04:00
AI Christianson 997c5e7ea7 make session list take up full width 2025-03-14 16:33:04 -04:00
Ariel Frischer 92faf8fc2d feat(anthropic_token_limiter): add get_provider_and_model_for_agent_type function to streamline provider and model retrieval based on agent type
fix(anthropic_token_limiter): refactor get_model_token_limit to use the new get_provider_and_model_for_agent_type function for cleaner code
test(anthropic_token_limiter): add unit tests for get_provider_and_model_for_agent_type and adjust_claude_37_token_limit functions to ensure correctness and coverage
2025-03-14 13:31:51 -07:00
AI Christianson 7d85dc2b05 click overlap event issue 2025-03-14 16:27:10 -04:00
Ariel Frischer 29c9cac4f4 feat(main.py): reorganize litellm configuration to improve clarity and maintainability
feat(agent_utils.py): add model detection utilities for Claude 3.7 models
fix(agent_utils.py): update get_model_token_limit to handle Claude 3.7 token limits correctly
test(model_detection.py): add unit tests for model detection utilities
chore(agent_utils.py): remove deprecated is_anthropic_claude function and related tests
style(agent_utils.py): format code for better readability and consistency
2025-03-14 13:10:44 -07:00
Andrew I. Christianson fe3adbd241
Merge pull request #131 from therality/master
Remove get_aider_executable and associated test
2025-03-14 15:40:39 -04:00
Will 5445a5c4a9 Removing get_aider_executable test as no longer relevant 2025-03-14 15:35:34 -04:00
Will 39ed523288 Removing get_aidr_executable as no longer a depedency 2025-03-14 15:29:11 -04:00
Andrew I. Christianson 0fe019bc9a
Merge pull request #130 from therality/master
Adding prompt-toolkit as dependency
2025-03-14 15:26:25 -04:00
Will 3f28ea80aa
Merge branch 'ai-christianson:master' into master 2025-03-14 15:25:35 -04:00
AI Christianson 0c40fa72c3 style/hmr 2025-03-14 15:09:22 -04:00
AI Christianson 07c6c2e5b5 fix hot reload on dev server 2025-03-14 10:25:22 -04:00
AI Christianson fe3984329d make sure session list hides when open and window expanded 2025-03-14 10:16:23 -04:00
AI Christianson 0a46e3c92b FAB color 2025-03-14 10:11:42 -04:00
AI Christianson 8a507f245e floating action button for sessions panel 2025-03-14 10:08:17 -04:00
AI Christianson af16879dd6 ui styling 2025-03-14 09:15:11 -04:00
AI Christianson f29658fee8 ui styling 2025-03-14 08:54:24 -04:00
Will 996608e4e3 Adding prompt-toolkit as dependency 2025-03-13 21:37:04 -04:00
AI Christianson 262c9f7d77 fix dark colors 2025-03-13 20:02:50 -04:00
AI Christianson d5d250b215 fix dark theme 2025-03-13 19:53:00 -04:00
AI Christianson 9f24c6bef9 remove junk 2025-03-13 18:47:36 -04:00
AI Christianson 1ced6ece4c agent ui components 2025-03-13 18:25:21 -04:00
AI Christianson a9c7f92687 style 2025-03-13 16:48:29 -04:00
AI Christianson 4685550605 integrate shadcn 2025-03-13 15:19:11 -04:00
AI Christianson a2129641ae Revert "shadcn integration"
This reverts commit 9d585f38b5.
2025-03-13 14:13:04 -04:00
AI Christianson 9d585f38b5 shadcn integration 2025-03-13 13:51:35 -04:00
AI Christianson fa66066c07 set up frontend/ infra 2025-03-13 12:18:54 -04:00
AI Christianson c511cefc67 add check for fallback handler 2025-03-13 08:48:51 -04:00
AI Christianson f08e9455b6 version bump 2025-03-13 07:17:26 -04:00
AI Christianson be0b566edb fix ERROR - Error getting expert guidance for planning: module 'ra_aid.agent_utils' has no attribute 'process_thinking_content' 2025-03-13 07:11:32 -04:00
AI Christianson be415ca968 fix config param error 2025-03-13 07:02:25 -04:00
AI Christianson 715d5f483d version bump 2025-03-13 07:02:25 -04:00
Andrew I. Christianson 85cabe4d37
Merge pull request #126 from nahsra/patch-1
Fix dev dependencies instructions
2025-03-12 19:37:48 -04:00
Arshan Dabirsiaghi 80cafa9a40
fix dev dependencies instructions 2025-03-12 19:15:54 -04:00
AI Christianson 26b1dbe966 reasoning assistance docs 2025-03-12 17:09:27 -04:00
Andrew I. Christianson a9656552a9
Merge pull request #124 from ariel-frischer/fix-token-limiter
Fix Sonnet 3.7 Token Limiter API Errors
2025-03-12 14:59:33 -04:00
Ariel Frischer b6f0f6a577 fix(llm.py): remove unnecessary thinking_kwargs from ChatOpenAI parameters to streamline client creation 2025-03-12 11:50:32 -07:00
Ariel Frischer 77a256317a feat: add session and trajectory models to track application state and events
- Introduce a new `Session` model to store information about each program run, including command line arguments and environment details.
- Implement a `Trajectory` model to log significant events and errors during execution, enhancing debugging and monitoring capabilities.
- Update various repository classes to support session and trajectory management, allowing for better tracking of user interactions and system behavior.
- Modify existing functions to record relevant events in the trajectory, ensuring comprehensive logging of application activities.
- Enhance error handling by logging errors to the trajectory, providing insights into failures and system performance.

feat(vsc): add initial setup for VS Code extension "ra-aid" with essential files and configurations
chore(vsc): create tasks.json for managing build and watch tasks in VS Code
chore(vsc): add .vscodeignore to exclude unnecessary files from the extension package
docs(vsc): create CHANGELOG.md to document changes and updates for the extension
docs(vsc): add README.md with instructions and information about the extension
feat(vsc): include esbuild.js for building and bundling the extension
chore(vsc): add eslint.config.mjs for TypeScript linting configuration
chore(vsc): create package.json with dependencies and scripts for the extension
feat(vsc): implement extension logic in src/extension.ts with webview support
test(vsc): add initial test suite in extension.test.ts for extension functionality
chore(vsc): create tsconfig.json for TypeScript compiler options
docs(vsc): add vsc-extension-quickstart.md for guidance on extension development
2025-03-12 11:47:21 -07:00
Ariel Frischer fdd73f149c feat(agent_utils.py): add support for sonnet_35_state_modifier for Claude 3.5 models to enhance token management
chore(anthropic_message_utils.py): remove debug print statements to clean up code and improve readability
chore(anthropic_token_limiter.py): remove debug print statements and replace with logging for better monitoring
test(test_anthropic_token_limiter.py): update tests to verify correct behavior of sonnet_35_state_modifier without patching internal logic
2025-03-12 11:16:54 -07:00
AI Christianson 12d27952d5 add --show-cost flag 2025-03-12 10:21:06 -04:00
AI Christianson 826c53e01a improve prompts 2025-03-12 08:24:41 -04:00
Ariel Frischer 7cfbcb5a2e chore(anthropic_token_limiter.py): comment out max_input_tokens and related debug prints to clean up code and reduce clutter during execution 2025-03-12 00:12:39 -07:00
Ariel Frischer d15d249929 fix(test_agent_utils.py): add name parameter to mock_react calls to ensure consistency in agent creation tests 2025-03-11 23:55:43 -07:00
Ariel Frischer 8d2d273c6b refactor(tests): move token limit tests from test_agent_utils.py to test_anthropic_token_limiter.py for better organization and clarity 2025-03-11 23:53:37 -07:00
Ariel Frischer e42f281f94 chore(anthropic_message_utils.py): remove unused fix_anthropic_message_content function to clean up codebase
chore(anthropic_token_limiter.py): remove import of fix_anthropic_message_content as it is no longer needed
test: add unit tests for has_tool_use and is_tool_pair functions to ensure correct functionality
test: enhance test coverage for anthropic_trim_messages with tool use scenarios to validate message handling
2025-03-11 23:48:08 -07:00
Ariel Frischer 376d486db8 refactor(anthropic_message_utils.py): clean up whitespace and improve code readability by removing unnecessary blank lines and aligning code formatting
fix(anthropic_message_utils.py): add warning in docstring for anthropic_trim_messages function to indicate incomplete implementation and clarify behavior
fix(anthropic_message_utils.py): ensure consistent formatting in conditional statements and improve readability of logical checks
2025-03-11 23:38:31 -07:00
Ariel Frischer a3284c9d7e feat(anthropic_token_limiter.py): add dataclass import for future use and improve code readability by restructuring import statements 2025-03-11 23:37:20 -07:00
Ariel Frischer ee73c85b02 feat(anthropic_message_utils.py): add utilities for handling Anthropic-specific message formats and trimming to improve message processing
fix(agent_utils.py): remove debug print statement for max_input_tokens to clean up code
refactor(anthropic_token_limiter.py): update state_modifier to use anthropic_trim_messages for better token management and maintain message structure
2025-03-11 23:24:57 -07:00
Ariel Frischer 09ba1ee0b9 refactor(anthropic_token_limiter.py): rename messages_to_dict to message_to_dict for consistency and clarity
feat(anthropic_token_limiter.py): add convert_message_to_litellm_format function to standardize message format for litellm
fix(anthropic_token_limiter.py): update wrapped_token_counter to handle only BaseMessage objects and improve token counting logic
chore(anthropic_token_limiter.py): add debug print statements to track token counts before and after trimming messages
2025-03-11 21:26:57 -07:00