Skip to content
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

Enforce navigation_goal in NavigationBlock and data_extraction_goal in ExtractionBlock #1257

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Nov 25, 2024

Important

Introduces ExtractionBlock for data extraction tasks in workflows, updating models, prompts, and observer handling.

  • Behavior:
    • Introduces ExtractionBlock to handle data extraction tasks in workflows.
    • Updates run_observer.py to handle extraction task type, generating and executing extraction tasks.
    • Adds prompt template generate_extraction_task.j2 for extraction task generation.
  • Models:
    • Adds ExtractionBlock and ExtractionBlockYAML classes in block.py and yaml.py.
    • Updates WorkflowService to create output parameters for ExtractionBlock.
  • Misc:
    • Renames task options in observer.j2 from navigate to navigation and extract to extraction.
    • Updates agent.py to handle data_extraction_goal in task creation.

This description was created by Ellipsis for 734b3cd. It will automatically update as commits are pushed.

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Introduces `ExtractionBlock` for data extraction tasks in workflows, updating models, prompts, and observer handling.
>
>   - **Behavior**:
>     - Introduces `ExtractionBlock` to handle data extraction tasks in workflows.
>     - Updates `run_observer.py` to handle `extraction` task type, generating and executing extraction tasks.
>     - Adds prompt template `generate_extraction_task.j2` for extraction task generation.
>   - **Models**:
>     - Adds `ExtractionBlock` and `ExtractionBlockYAML` classes in `block.py` and `yaml.py`.
>     - Updates `WorkflowService` to create output parameters for `ExtractionBlock`.
>   - **Misc**:
>     - Renames `task` options in `observer.j2` from `navigate` to `navigation` and `extract` to `extraction`.
>     - Updates `agent.py` to handle `data_extraction_goal` in task creation.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for 4d13dfbca2b5aac2bd53c190cb7171f522682ef7. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
@wintonzheng wintonzheng changed the title observer handles extraction block Enforce navigation_goal in NavigationBlock and data_extraction_goal in ExtractionBlock Nov 25, 2024
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 734b3cd in 31 seconds

More details
  • Looked at 58 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/service.py:1210
  • Draft comment:
    The method create_output_parameter_for_block is still marked as @staticmethod. Consider removing the static method decorator if this method is intended to be an instance method.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_e3o8f7GW6uUzN8Uk


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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! Incremental review on 734b3cd in 39 seconds

More details
  • Looked at 58 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/service.py:1210
  • Draft comment:
    The method create_output_parameter_for_block is still marked as @staticmethod. Consider removing the static method decorator if the method is intended to be an instance method.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_s5xBxQJmRUh35m9x


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@wintonzheng wintonzheng merged commit f28a3bc into main Nov 25, 2024
2 checks passed
@wintonzheng wintonzheng deleted the shu/handle_extraction_block branch November 25, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant