Code gen: Rename 'intention' -> 'prompt' (#3900)

Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
Stanislav Novosad 2025-11-04 15:16:46 -07:00 committed by GitHub
parent ba99e9ea2c
commit 324c3f921d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 108 additions and 44 deletions

View file

@ -229,7 +229,7 @@ def _action_to_stmt(act: dict[str, Any], task: dict[str, Any], assign_to_output:
"""
Turn one Action dict into:
await page.<method>(selector=..., intention=..., data=context.parameters)
await page.<method>(selector=..., prompt=..., data=context.parameters)
Or if assign_to_output is True for extract actions:
@ -425,7 +425,7 @@ def _action_to_stmt(act: dict[str, Any], task: dict[str, Any], assign_to_output:
args.extend(
[
cst.Arg(
keyword=cst.Name("intention"),
keyword=cst.Name("prompt"),
value=_value(intention),
whitespace_after_arg=cst.ParenthesizedWhitespace(indent=True),
comma=cst.Comma(),