Commit Graph

511 Commits

Author SHA1 Message Date
AI Christianson dbf3d83523 installation docs 2025-02-14 16:20:02 -05:00
AI Christianson 35cd07c324 uv install 2025-02-14 16:14:37 -05:00
Ariel Frischer 6970a885e4 chore(docs): update documentation and assets for RA.Aid project using Docusaurus
- Add new versioned documentation for RA.Aid project.
- Include installation instructions, quick starts, and markdown features.
- Add configuration files for Docusaurus setup.
- Introduce new images and logos for branding.
- Create a sidebar for better navigation in documentation.
- Implement a .gitignore file for the docs directory to exclude unnecessary files.

feat(docs): add SVG illustrations for Docusaurus documentation to enhance visual appeal
feat(docs): create tsconfig.json for improved TypeScript support in Docusaurus
fix(pyproject.toml): update dependencies to latest versions for better compatibility and features
fix(__main__.py): improve expert provider selection logic based on available API keys
feat(llm.py): implement function to fetch available OpenAI models and select expert model
fix(file_listing.py): enhance file listing functionality to include hidden files option and improve error handling
fix(deepseek_chat.py): add timeout and max_retries parameters to ChatDeepseekReasoner initialization
fix(version.py): bump version to 0.14.1 for release readiness

feat(models_params.py): add default_temperature to model parameters for consistency and configurability
refactor(interactive.py): enhance run_interactive_command to support expected runtime and improve output capture
fix(prompts.py): update instructions to clarify file modification methods
refactor(provider_strategy.py): streamline expert model selection logic for clarity and maintainability
chore(tool_configs.py): update tool imports to reflect changes in write_file functionality
refactor(agent.py): enhance LLM initialization to include temperature and improve error handling
feat(memory.py): normalize file paths in emit_related_files to prevent duplicates
feat(programmer.py): add get_aider_executable function to retrieve the aider executable path
test: add comprehensive tests for new features and refactor existing tests for clarity and coverage
2025-02-14 13:11:10 -08:00
AI Christianson a805d1f0ad tabs 2025-02-14 16:10:41 -05:00
AI Christianson 7ef1cd8a67 clean up docs 2025-02-14 16:05:22 -05:00
Ariel Frischer d5e2e0a9a0 refactor(agent_utils.py, ciayn_agent.py): remove unused import cpm to clean up code and improve readability
style(tests): format code for better readability and consistency in test files
test(tests): update assertions and test cases for better clarity and maintainability
2025-02-14 13:04:41 -08:00
AI Christianson 0e8d26b4cd api key instructions 2025-02-14 15:55:50 -05:00
AI Christianson 183c06ce46 docs 2025-02-14 15:53:44 -05:00
AI Christianson 2287d7a97e docs 2025-02-14 15:22:51 -05:00
AI Christianson 08c00b2cf1 put installation on its own page 2025-02-14 15:20:57 -05:00
AI Christianson 80900188d5 recommended setup 2025-02-14 15:16:57 -05:00
AI Christianson 370401b1eb Recommended config 2025-02-14 15:03:27 -05:00
AI Christianson 719962ea19 create quickstarts dir 2025-02-14 14:58:16 -05:00
AI Christianson d33cfb23bd rename intro page 2025-02-14 14:51:16 -05:00
AI Christianson cfc9586f0f link logo to landing page 2025-02-14 14:49:26 -05:00
AI Christianson f46d4d9b62 Docs link 2025-02-14 13:57:15 -05:00
AI Christianson 0dbfebe245 get rid of logo text 2025-02-14 13:54:02 -05:00
AI Christianson 3a30495409 dark mode by default 2025-02-14 13:46:33 -05:00
AI Christianson 1d2a94572b logo 2025-02-14 13:43:43 -05:00
AI Christianson 767391a2e6 simplify docs 2025-02-14 13:12:59 -05:00
AI Christianson 23a7d5c739 remove blog from docs/ 2025-02-14 12:52:32 -05:00
AI Christianson f033b64dfa docusaurus initialization 2025-02-14 12:33:39 -05:00
Ariel Frischer 7a2c766824 test(agent_utils): add config parameter to mock_ciayn assertions for better clarity and flexibility in tests 2025-02-13 20:18:02 -08:00
Ariel Frischer 90b3070aa2 chore(agent_utils.py): remove debug print statement for config to clean up output
chore(fallback_handler.py): comment out cpm call for tool call result to reduce logging noise
2025-02-13 20:14:07 -08:00
Ariel Frischer efec91579a refactor(ciayn_agent.py): remove unnecessary raise statement and debug log to clean up code 2025-02-13 20:09:47 -08:00
Ariel Frischer 15ce534f8f feat(agent_utils.py): add debug print for config to assist in troubleshooting
feat(ciayn_agent.py): pass config to CiaynAgent for improved functionality
fix(ciayn_agent.py): handle tool execution errors more gracefully with msg_list
feat(fallback_handler.py): enhance handle_failure method to utilize msg_list for better context
feat(fallback_handler.py): implement init_msg_list to manage message history effectively
test(test_fallback_handler.py): add unit tests for init_msg_list to ensure correct behavior
2025-02-13 20:09:21 -08:00
Ariel Frischer 9caa46bc78 refactor(agent_utils.py): remove redundant agent_type parameter from _handle_fallback_response and run_agent_with_retry functions to simplify function signatures
feat(agent_utils.py): retrieve agent_type within _handle_fallback_response to maintain functionality while improving code clarity
2025-02-13 19:16:13 -08:00
Ariel Frischer 5733eb06f5 fix(test_fallback_handler.py): update lambda function to accept default argument for args to prevent potential errors during invocation 2025-02-13 19:14:06 -08:00
Ariel Frischer cc1945facd feat(agent_utils.py): change SystemMessage to HumanMessage for fallback responses in React to improve message clarity
fix(fallback_handler.py): update tool invocation logic to handle missing tools and raise appropriate exceptions for better error handling
test(tests): add comprehensive tests for fallback handler functionality, including loading models, extracting tool names, and invoking tools to ensure robustness and reliability
2025-02-13 18:48:45 -08:00
Ariel Frischer 09abba512d test(tests): add tests for fallback handler to ensure proper error handling and counter incrementing
feat(tests): introduce FallbackToolExecutionError to improve error specificity in fallback handling tests
2025-02-13 18:21:54 -08:00
Ariel Frischer 15a3291254 refactor(agent_utils.py): remove unnecessary debug log statement to clean up code
refactor(fallback_handler.py): improve error handling by raising a specific exception when all fallback models fail
test(fallback_handler.py): update tests to reflect changes in the fallback handler's error handling and initialization
fix(test_llm.py): update error messages in tests for unsupported providers to be more descriptive and accurate
2025-02-13 18:20:00 -08:00
Ariel Frischer ac13ce746a feat(agent_utils.py): add cpm function import for enhanced logging in run_agent_with_retry
fix(agent_utils.py): set default value of fallback_handler to None in run_agent_with_retry
chore(ciayn_agent.py): comment out debug log for generated code to reduce verbosity
fix(fallback_handler.py): change fallback_enabled config key to experimental_fallback_handler for better clarity
refactor(test_ciayn_agent.py): update invoke method in DummyModel to return AIMessage instead of a custom Response class
test(test_ciayn_agent.py): comment out test_retry_logic_with_failure_recovery for future implementation and focus on existing tests
2025-02-13 17:57:27 -08:00
Ariel Frischer c7712e0114 fix(tests): update type hints in test_agent_utils.py for better clarity and type safety
refactor(tests): modify DummyAgent's stream method to use more descriptive parameter names and types for improved readability
2025-02-13 17:10:26 -08:00
Ariel Frischer cd8d1c459d feat(readme): document new command line arguments for experimental features
feat(main.py): add --experimental-fallback-handler argument to enable fallback handler
fix(agent_utils.py): modify init_fallback_handler to check for experimental fallback handler flag
fix(config.py): increase DEFAULT_MAX_TOOL_FAILURES to allow more retries before failure
2025-02-13 17:01:46 -08:00
Ariel Frischer 2420dfbb4f refactor(agent_utils.py): extract fallback handler initialization into a separate function to improve code readability and maintainability
fix(ciayn_agent.py): reset fallback handler after executing tool to ensure proper state management
style(fallback_handler.py): format method signature for better readability
2025-02-13 16:53:22 -08:00
Ariel Frischer 63e48db9de feat(agent_utils.py): add _handle_fallback_response function to streamline fallback handling logic
refactor(agent_utils.py): extract fallback handling logic from run_agent_with_retry to improve code readability
fix(ciayn_agent.py): update stream method parameter name for consistency
chore(agents_alias.py): reorder import statements to follow best practices
style(fallback_handler.py): reorder exception imports for consistency and clarity
2025-02-13 16:47:31 -08:00
Ariel Frischer 115cde98b6 feat(agent_utils.py): add FallbackToolExecutionError exception to handle fallback tool execution failures
fix(ciayn_agent.py): improve error message template for tool call errors to provide clearer guidance
refactor(ciayn_agent.py): update comment for clarity regarding fallback tool invocation
fix(output.py): clarify that CiaynAgent handles tool execution errors internally
fix(fallback_handler.py): raise FallbackToolExecutionError for better error handling in fallback scenarios
2025-02-13 16:42:59 -08:00
Ariel Frischer e2cd51c66d feat(agent_utils.py): add SystemMessage import and improve logging messages for clarity
fix(agent_utils.py): handle fallback responses more effectively and ensure fallback handler is optional
refactor(ciayn_agent.py): streamline prompt building and extract tool call logic into a separate method
chore(ciayn_agent.py): remove commented-out code and improve fallback response handling
chore(exceptions.py): remove unused CiaynToolExecutionError class to clean up code
chore(fallback_handler.py): simplify fallback response handling logic
chore(logging_config.py): add debug print statement for logging handler usage
chore(prompts.py): update prompts for clarity and maintainability
2025-02-13 16:14:24 -08:00
AI Christianson 66aa13f6ee Version bump. 2025-02-13 09:50:00 -05:00
AI Christianson 93a3f8ccd7 remove reference to write_file_tool 2025-02-13 09:47:19 -05:00
AI Christianson 1084faaf0b normalize/dedupe files for programmer tool 2025-02-13 09:45:32 -05:00
AI Christianson 972ea5284a be more conservative with external process i/o to prevent hung situations 2025-02-13 09:00:29 -05:00
AI Christianson 09e30f2a24 validate expected_runtime_seconds 2025-02-13 08:37:43 -05:00
AI Christianson 098f4a9c53 integrate expected_runtime_seconds with run_shell_command 2025-02-13 08:34:38 -05:00
AI Christianson abfa5a1d6a add expected_runtime_seconds and shutdown processes w/ grace period that run too long. 2025-02-13 08:29:17 -05:00
AI Christianson c5c27c9f87 enforce byte limit in interactive commands 2025-02-13 08:03:16 -05:00
AI Christianson 7d5eb4ca80 relax aider version req. for compatibility with RA.Aid-swe-bench 2025-02-13 07:41:54 -05:00
Ariel Frischer 646d509c22 feat(agent_utils.py): add agent_type retrieval to enhance fallback handling logic
feat(ciayn_agent.py): implement chat_history in CiaynAgent for improved context management during tool execution
refactor(ciayn_agent.py): streamline fallback response handling and logging for better clarity and maintainability
2025-02-13 00:24:31 -08:00
AI Christianson e6b34e4ebc normalize related file paths 2025-02-12 22:12:55 -05:00
AI Christianson f91237ee02 update aider dep 2025-02-12 21:57:42 -05:00