Skip to content

B13: Test Script Generation and Review #545

Description

@marc-romu

What changed

SmartHopper 2.0.0 includes AI-powered script generation and review - components that can generate RhinoCommon C# or Python scripts from natural language prompts, and review/improve existing scripts.

How to test


Tests

  • Generate C# Script: Place an "AI Generate Script" component (SmartHopper > Script). Wire a prompt describing a script (e.g., "Create a C# script that generates a grid of points"). Select a capable provider/model. Verify a C# script component is generated with valid code.

  • Generate Python Script: Repeat with a Python script prompt (e.g., "Create a Python script that draws a spiral curve"). Verify a Python 3 Script component is generated with valid code.

  • Review Script: Place an "AI Review Script" component (SmartHopper > Script). Wire an existing script (with a known issue - e.g., a script with a type error). Verify the review provides feedback about the issue and suggests corrections.

  • Execute generated script: After generating a script, place it on the canvas and execute it. Verify it runs without errors and produces the expected geometry.


Milestone: B - SmartHopper 2.0.0
Parent: #526


Note: This test was AI-written by Devin. I apologize for any errors, and I would appreciate it if you could let me know in the comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions