mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-05-01 21:20:19 +00:00
Code gen: Rename 'intention' -> 'prompt' (#3900)
Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
parent
ba99e9ea2c
commit
324c3f921d
2 changed files with 108 additions and 44 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue