Refactor codebase to package utility modules for distribution#57
Open
Refactor codebase to package utility modules for distribution#57
Conversation
Member
|
@fcogidi great initiative! Was super happy to see this PR. Will review it shortly. |
There was a problem hiding this comment.
Pull request overview
This PR refactors the codebase by extracting utility modules into a separate installable package (aieng-agents-utils), improving code organization and reusability across the Vector Institute Agent Bootcamp implementations.
Changes:
- Created a new Python package structure with proper build configuration, console scripts, and comprehensive documentation
- Migrated all utility modules (tools, data processing, async utilities, Langfuse integration, etc.) to the new package namespace
- Updated all import statements across reference implementations to use the new package structure
Reviewed changes
Copilot reviewed 63 out of 77 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Updated project metadata and dependencies to use the new workspace package |
| aieng-agents-utils/pyproject.toml | Added package configuration with build system, dependencies, and console scripts |
| aieng-agents-utils/README.md | Created comprehensive documentation for the new utility package |
| aieng-agents-utils/aieng/agents/init.py | Created main package entry point with public API exports |
| aieng-agents-utils/aieng/agents/tools/init.py | Organized tool exports with proper all definitions |
| aieng-agents-utils/aieng/agents/prompts.py | Consolidated system prompts into centralized module |
| src//app.py, src//cli.py | Updated imports to reference new package namespace |
| tests/tool_tests/test_integration.py | Updated test imports to use new package structure |
| aieng-agents-utils/tests/README.md | Added test documentation with updated command paths |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
|
@fcogidi, Can the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR converts utility modules/scripts into a package (
aieng-agents-utils).Type of Change
Changes Made
New Utility Package (
aieng-agents-utils)CLI Tools
pdf_to_hf_dataset: Console script for converting PDFs to chunked HuggingFace datasetschunk_hf_dataset: Console script for re-chunking existing HuggingFace datasetsAPI Key Management
--owners-fileDocumentation
Package Configuration
pyproject.tomlwith build system (hatchling)Testing
uv run pytest tests/)uv run ruff check src_dir/)Manual testing details:
Checklist