Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved naming on tools and prompts. #38

Merged
merged 7 commits into from
Oct 11, 2024

Conversation

srtab
Copy link
Owner

@srtab srtab commented Oct 8, 2024

This pull request includes several changes to the CI workflow, Python version setup, and the removal of multiple unused coder classes and their associated files. The most important changes include updating the CI workflow to use actions/setup-python, setting a specific Python version, and removing the ChangesDescriberCoder and ReplacerCoder classes along with their associated models and prompts.

CI Workflow Updates:

  • .github/workflows/ci.yml: Updated the CI workflow to use actions/setup-python@v5 and set the Python version using .python-version file. Also, changed the command to install the project dependencies to uv sync --locked instead of uv sync --all-extras --dev. [1] [2]

Python Version Setup:

Removal of Unused Coder Classes:

  • daiv/automation/coders/change_describer/__init__.py, daiv/automation/coders/change_describer/coder.py, daiv/automation/coders/change_describer/models.py, daiv/automation/coders/change_describer/prompts.py: Removed the ChangesDescriberCoder class and its associated models and prompts. [1] [2] [3] [4]
  • daiv/automation/coders/replacer/__init__.py, daiv/automation/coders/replacer/coder.py, daiv/automation/coders/replacer/prompts.py, daiv/automation/coders/replacer/tools.py: Removed the ReplacerCoder class and its associated models, prompts, and tools. [1] [2] [3] [4]
  • daiv/automation/coders/review_fixer/coder.py, daiv/automation/coders/review_fixer/models.py, daiv/automation/coders/review_fixer/prompts.py: Removed the ReviewFixerCoder class and its associated models and prompts. [1] [2] [3]

Makefile Adjustments:

  • Makefile: Removed the test-ci and unittests targets and updated the test target to use pytest. [1] [2]

Agent Model Initialization:

  • daiv/automation/graphs/agents.py: Updated the agent model initialization to use init_chat_model from langchain.chat_models and added configurable fields to the model kwargs. [1] [2] [3]This pull request includes several changes to the CI workflow configuration and significant updates to the review_adressor agent's logic and prompts in the daiv/automation/graphs directory. The most important changes involve modifying the CI workflow to use locked dependencies and refactoring the agent's state management and prompts for better clarity and functionality.

CI Workflow Changes:

  • .github/workflows/ci.yml: Updated the project installation step to use uv sync --locked instead of uv sync --all-extras --dev for more consistent dependency management. [1] [2]

Agent Logic Refactoring:

Prompt Updates:

@srtab srtab self-assigned this Oct 8, 2024
@srtab srtab merged commit 8123a36 into main Oct 11, 2024
2 checks passed
@srtab srtab deleted the feat/improvements-prompts-and-namings branch October 11, 2024 00:46
@srtab srtab restored the feat/improvements-prompts-and-namings branch October 24, 2024 22:38
@srtab srtab deleted the feat/improvements-prompts-and-namings branch October 24, 2024 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant