Skip to content

Conversation

s16h
Copy link

@s16h s16h commented Aug 17, 2025

No description provided.

Copy link

changeset-bot bot commented Aug 17, 2025

⚠️ No Changeset found

Latest commit: 8065308

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 fixes critical Python syntax errors in the agent documentation examples within docs/reference/agent.mdx. The changes correct two fundamental Python syntax issues:

  1. Function call syntax: Changes stagehand.agent({...}) to stagehand.agent(...) - removing the incorrect use of JavaScript/TypeScript object literal syntax {} in favor of proper Python function call syntax with parentheses.

  2. Dictionary formatting: Updates the agent.execute() call to use proper Python dictionary syntax with quoted keys: {"instruction": ..., "max_steps": ...} instead of the invalid JavaScript-style object notation {instruction=..., max_steps=...}.

These fixes ensure that Python developers copying code examples from the documentation will have syntactically correct code that can actually execute. The changes align the Python examples with proper Python language conventions while maintaining the same functionality demonstrated in the TypeScript examples elsewhere in the codebase. This is a documentation-only change that improves the developer experience for Python users without affecting any core functionality.

Confidence score: 5/5

  • This PR is extremely safe to merge with no risk of breaking functionality
  • Score reflects that these are documentation-only fixes correcting obvious Python syntax errors
  • No files require special attention as this only affects documentation examples

1 file reviewed, no comments

Edit Code Review Bot Settings | Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant