-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Adding stagehand.history in docs #1085
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
base: main
Are you sure you want to change the base?
Conversation
# why solves #1060 patch regression of playwright arguments being removed from agent execute response # what changed agent.execute now returns playwright arguments in its response # test plan tested locally
…ms to docs (#1065) # why reflect project id changes in docs # what changed advanced configuration comments # test plan reviewed via mintlify on localhost
# why Easier to use for Custom LLM Clients and keep users up to date with our aisdk file # what changed added export of aisdk to lib/index.ts # test plan build local stagehand, import local AISdkClient, run Azure Stagehand session
…onfigu… (#1073) …ration settings # why Updated docs to match the new fingerprint params in the Browserbase docs here: https://docs.browserbase.com/guides/stealth-customization#customization-options # what changed Update browser configuration docs to reflect the docs changes. # test plan
# why Updating docs to reflect aisdk can be imported directly # what changed The model page # test plan Reviewed page with mintlify dev locally
# why # what changed # test plan
# why Currently, we do not support stagehand agent within the api # what changed When api is enabled, stagehand agent now routes through the api # test plan Tested locally
# why Currently, using playwright screenshot command is not available when the execution environment is Stagehand. A customer has indicated they would prefer to use Playwright's native screenshot command instead of CDP when using Browserbase as CDP screenshot causes unexpected behavior for their target site. # what changed - added a StagehandScreenshotOptions type with useCDP argument added - extended page type to accept custom stagehand screeenshot options - update screenshot proxy to default useCDP to true if the env is browserbase and use playwright screenshot if false - added eval for screenshot with and without cdp # test plan - tested and confirmed functionality with eval and external example script (not committed)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Greptile Summary
This PR adds comprehensive documentation for the stagehand.history feature in the observability guide. The documentation explains how to access and examine the chronological record of Stagehand operations during automation sessions.
- Adds new "Action History Tracking" section with clear usage examples
- Provides both TypeScript and Python code samples
- Documentation aligns with the actual
HistoryEntryinterface implementation - Includes practical examples showing how to iterate through and examine history entries
Confidence score: 4/5
- This PR is safe to merge with minimal risk
- Well-written documentation addition that accurately reflects the existing API. Only minor style improvement needed for Python naming convention
- No files require special attention
1 file reviewed, 1 comment
Why
There was no documentation for the
stagehand.historyfeature, which provides users with a chronological record of all Stagehand operations during anautomation session. This left users unaware of this useful debugging and monitoring capability.
What Changed
stagehand.historytodocs/configuration/observability.mdx