Skip to content

Commit

Permalink
fix: Fix task file formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Aug 23, 2024
1 parent e3bde88 commit 0a4708c
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions agents-api/tests/sample_tasks/find_selector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,39 +41,38 @@ input_schema:

main:
- map:
over: _.parameters

prompt:
- role: system
content: |-
From the screenshot below, can you identify if the page has {{_}} for the user?
Write your answer in the following yaml format:
prompt:
- role: system
content: |-
From the screenshot below, can you identify if the page has {{_}} for the user?
Write your answer in the following yaml format:
found: true|false
value: <value>|null
found: true|false
value: <value>|null
Just write your answer in the above format only.
Please do not include any other information or explanation in the response.
Just write your answer in the above format only.
Please do not include any other information or explanation in the response.
- role: user
content:
- type: image
image_url: 'inputs[0].screenshot_base64'
- role: user
content:
- type: image
image_url: 'inputs[0].screenshot_base64'

over: _.parameters
reduce: >-
results
+ [
yaml.safe_load(_["choices"][0]["message"]["content"].trim())
]
results
+ [
yaml.safe_load(_["choices"][0]["message"]["content"].trim())
]
- evaluate: >-
[
{"value": result["value"], "network_request": request}
for request in execution.input.network_requests
if result["value"] in nr.response.body
for result in _
if result["found"]
]
[
{"value": result["value"], "network_request": request}
for request in execution.input.network_requests
if result["value"] in nr.response.body
for result in _
if result["found"]
]
- if: len(_) > 0
then:
Expand Down

0 comments on commit 0a4708c

Please sign in to comment.