Conversation
Introduces a runnable demo (`demo.py`) proving the concept of using an LLM to plan a UI action based on a user goal and mocked visual elements (generated by `synthetic_ui.py`). Includes: - Core planning logic and prompting (`core.py`) - Anthropic API integration (`completions.py`) - Pydantic structured output for LLM response - Visualization of the target UI element
Updates the demo script to loop through planning and simulating actions on the synthetic UI (type, click). Includes goal completion check via LLM.
Member
Author
|
This gives us a solid baseline with the multi-step demo, tests, and CI. The next logical step is definitely moving towards interacting with real UIs. Thinking about what's next, the main paths seem to be:
Suggest we tackle #1 (Real OmniParser integration) first. We need the system to perceive the real UI state before we can reliably plan and execute actions on it. |
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.
Description:
This PR introduces the initial Minimum Viable Product (MVP) demo for planning UI actions using an LLM.
Key Features:
synthetic_ui.py) to mock visual parser output for rapid prototyping.completions.py), and gets a structured action plan (core.pyusing Pydantic). The plan includes reasoning, action type, target element ID, and text-to-type.demo.pyscript to execute the flow.Purpose:
Provides a working baseline demonstrating the core concept of LLM-driven UI action planning based on visual context.
To Run:
ANTHROPIC_API_KEYis set in your environment or.envfile.python demo.py.demo_output/directory for generated images.