Skip to content

[Enhancement] GraSP as a Library#5

Merged
vipul-mittal merged 13 commits intomainfrom
scratch/grasp-as-a-library
Aug 22, 2025
Merged

[Enhancement] GraSP as a Library#5
vipul-mittal merged 13 commits intomainfrom
scratch/grasp-as-a-library

Conversation

@zephyrzilla
Copy link
Member

@zephyrzilla zephyrzilla commented Aug 20, 2025

Summary

This PR restructures the GraSP framework to function as a proper Python library by organizing code into a structured package hierarchy and implementing a clean library interface. The changes enable users to import and use GraSP components programmatically while maintaining all existing functionality.

Explain the features implemented:

  • Moved core framework code into grasp/ package directory
  • Created proper package structure with __init__.py files
  • Implemented library interface for programmatic access
  • Updated all import paths to use the new package structure
  • Fixed test suite to work with new structure
  • Maintained backward compatibility with existing workflows

How to Test the feature

  1. Install GraSP as a library:
    chmod +x setup_grasp_lib.sh
    ./setup_grasp_lib.sh
  2. Execute example:
    import grasp 
    
    workflow = grasp.Workflow("examples/glaive_code_assistant")
    workflow.run(num_records=3) 

Checklist

  • Lint fixes and unit testing done
  • End to end task testing
  • Documentation updated

@zephyrzilla zephyrzilla self-assigned this Aug 20, 2025
@zephyrzilla zephyrzilla added the enhancement New feature or request label Aug 20, 2025
@zephyrzilla zephyrzilla changed the title feat: GraSP as a library GraSP as a Library Aug 20, 2025
@vipul-mittal vipul-mittal changed the title GraSP as a Library [Enhancement] GraSP as a Library Aug 21, 2025
@zephyrzilla zephyrzilla marked this pull request as ready for review August 21, 2025 06:49
@vipul-mittal vipul-mittal requested a review from a team August 21, 2025 15:30
@vipul-mittal vipul-mittal enabled auto-merge (squash) August 22, 2025 04:32
@psriramsnc psriramsnc self-requested a review August 22, 2025 12:07
@vipul-mittal vipul-mittal merged commit 93c909e into main Aug 22, 2025
1 check passed
@vipul-mittal vipul-mittal deleted the scratch/grasp-as-a-library branch August 22, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants