Skip to content

Conversation

@jmjava
Copy link
Contributor

@jmjava jmjava commented Jan 26, 2026

Add a new Python agent service to expose Python-based Phase1 and Phase2A pipeline tools as remote actions.

This enables the Embabel GOAP planner to integrate and orchestrate Python-based pipeline steps within the Course Builder workflow via a standardized REST API.


Open in Cursor Open in Web

- Implement FastAPI server with embabel-agent-remote REST API:
  - GET /api/v1/actions - List available actions
  - GET /api/v1/types - List domain types
  - POST /api/v1/actions/execute - Execute an action

- Create action definitions for Phase2A pipeline:
  - phase2a_run - Complete pipeline execution
  - phase2a_generate_masks - SAM mask generation
  - phase2a_classify - Mask classification
  - phase2a_generate_svg - SVG generation
  - phase2a_export_png - PNG export
  - phase2a_validate - Output validation (svg_complete gate)

- Create action definitions for Phase1 pipeline:
  - phase1_run - Complete pipeline execution
  - phase1_geocode - Location geocoding
  - phase1_download_dem - DEM download
  - phase1_generate_heightmap - Heightmap generation

- Define domain types for GOAP planning:
  - Phase2AConfig, Phase2AResult, MaskGenerationResult
  - ClassificationResult, SVGGenerationResult, ValidationResult
  - Phase1Config, Phase1Result, GeocodeResult

- Add Embabel registration client for integration

- Include CLI for server startup and action management:
  - serve - Start the agent server
  - register - Register with Embabel server
  - list-actions/list-types - Show registered items
  - execute - Test actions locally

- Add comprehensive test suite (49 tests)

Co-authored-by: jmjava <jmjava@gmail.com>
@cursor
Copy link

cursor bot commented Jan 26, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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.

3 participants