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

add supported methods to observe prompt #595

Closed
wants to merge 4 commits into from

Conversation

seanmcguire12
Copy link
Member

why

  • we should include a list of 'officially supported' methods to the observe prompt so that the LLM has a better understanding of what method to suggest
  • this lays the foundation for expanding beyond playwright: for example, we can just add new methods to the list of supported methods that we pass to the LLM

what changed

  • added a prompt that contains a list of 'officially supported' methods
  • this prompt is added when we are calling observe from within act
  • this prompt is also added when the returnAction flag is set within observeOptions

Copy link

changeset-bot bot commented Mar 17, 2025

🦋 Changeset detected

Latest commit: a4f8c26

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@browserbasehq/stagehand Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@seanmcguire12 seanmcguire12 added act These changes pertain to the act function observe These changes pertain to the observe function combination These changes affect multiple Stagehand functions labels Mar 17, 2025
@kamath
Copy link
Member

kamath commented Mar 19, 2025

anirudh says hello from stagehand mcp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
act These changes pertain to the act function combination These changes affect multiple Stagehand functions observe These changes pertain to the observe function
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants