-
Notifications
You must be signed in to change notification settings - Fork 904
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
Improve docstrings + minor code refactor #545
Conversation
… in tests.fixtures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to c27aebf in 36 seconds
More details
- Looked at
1144
lines of code in49
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. agents-api/agents_api/activities/truncation.py:6
- Draft comment:
Ensure consistency in import statements across the codebase. Some files have been updated to use relative imports, but others might still use absolute imports. Consider updating all relevant files for consistency. - Reason this comment was not posted:
Confidence changes required:50%
The PR includes changes to update absolute imports to relative imports. However, there are some inconsistencies in the import statements across different files. For example, inagents-api/agents_api/activities/truncation.py
, the import statement is changed to a relative import, but in other files, similar changes might be missing. It's important to ensure consistency across the codebase.
2. agents-api/agents_api/clients/worker/worker.py:3
- Draft comment:
Ensure consistency in import statements across the codebase. Some files have been updated to use relative imports, but others might still use absolute imports. Consider updating all relevant files for consistency. - Reason this comment was not posted:
Confidence changes required:50%
The PR includes changes to update absolute imports to relative imports. However, there are some inconsistencies in the import statements across different files. For example, inagents-api/agents_api/clients/worker/worker.py
, the import statement is changed to a relative import, but in other files, similar changes might be missing. It's important to ensure consistency across the codebase.
3. agents-api/agents_api/common/utils/messages.py:4
- Draft comment:
Ensure consistency in import statements across the codebase. Some files have been updated to use relative imports, but others might still use absolute imports. Consider updating all relevant files for consistency. - Reason this comment was not posted:
Confidence changes required:50%
The PR includes changes to update absolute imports to relative imports. However, there are some inconsistencies in the import statements across different files. For example, inagents-api/agents_api/common/utils/messages.py
, the import statement is changed to a relative import, but in other files, similar changes might be missing. It's important to ensure consistency across the codebase.
4. agents-api/tests/fixtures.py:40
- Draft comment:
Ensure consistency in import statements across the codebase. Some files have been updated to use relative imports, but others might still use absolute imports. Consider updating all relevant files for consistency. - Reason this comment was not posted:
Confidence changes required:50%
The PR includes changes to update absolute imports to relative imports. However, there are some inconsistencies in the import statements across different files. For example, inagents-api/tests/fixtures.py
, the import statement is changed to a relative import, but in other files, similar changes might be missing. It's important to ensure consistency across the codebase.
5. agents-api/tests/test_activities.py:10
- Draft comment:
Ensure consistency in import statements across the codebase. Some files have been updated to use relative imports, but others might still use absolute imports. Consider updating all relevant files for consistency. - Reason this comment was not posted:
Confidence changes required:50%
The PR includes changes to update absolute imports to relative imports. However, there are some inconsistencies in the import statements across different files. For example, inagents-api/tests/test_activities.py
, the import statement is changed to a relative import, but in other files, similar changes might be missing. It's important to ensure consistency across the codebase.
Workflow ID: wflow_QpsNuGpjGKs88P6c
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
This change needs a fix @lhy-hoyin . See the lint-and-type-check github action. It's throwing an error: File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/runner/work/julep/julep/agents-api/tests/test_activities.py", line 10, in <module>
from tests.fixtures import cozo_client, test_developer_id, test_doc
File "/home/runner/work/julep/julep/agents-api/tests/fixtures.py", line 39, in <module>
from tests.utils import patch_embed_acompletion as patch_embed_acompletion_ctx
File "/home/runner/work/julep/julep/agents-api/tests/utils.py", line 12, in <module>
from tests.fixtures import EMBEDDING_SIZE
ImportError: cannot import name 'EMBEDDING_SIZE' from partially initialized module 'tests.fixtures' (most likely due to a circular import) (/home/runner/work/julep/julep/agents-api/tests/fixtures.py) |
Hi @creatorrr , I have implemented a fix for the issue. Please assist to trigger GitHub Actions checks. |
This PR includes:
Important
Improved docstrings, switched to relative imports, and used a constant for
EMBEDDING_SIZE
for better code clarity and consistency.AgentNotFoundError
andUserNotFoundError
.truncation.py
,worker.py
, andmessages.py
for consistency.This description was created by for c27aebf. It will automatically update as commits are pushed.