-
Notifications
You must be signed in to change notification settings - Fork 793
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
add cost info to the workflow run repsonse #1456
Conversation
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.
❌ Changes requested. Reviewed everything up to ff2fd41 in 1 minute and 39 seconds
More details
- Looked at
114
lines of code in4
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/service.py:755
- Draft comment:
Typo in parameter name 'includ_cost'. It should be 'include_cost'. This typo is present in multiple places in the code. - Reason this comment was not posted:
Marked as duplicate.
2. skyvern/forge/sdk/workflow/service.py:763
- Draft comment:
Typo in parameter name 'includ_cost'. It should be 'include_cost'. This typo is present in multiple places in the code. - Reason this comment was not posted:
Marked as duplicate.
3. skyvern/forge/sdk/workflow/service.py:832
- Draft comment:
Typo in parameter name 'includ_cost'. It should be 'include_cost'. This typo is present in multiple places in the code. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_4RMOQJ8FPvSj2hQn
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
@@ -741,6 741,7 @@ async def build_workflow_run_status_response_by_workflow_id( | |||
self, | |||
workflow_run_id: str, | |||
organization_id: str, | |||
includ_cost: bool = False, |
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.
Typo in parameter name 'includ_cost'. It should be 'include_cost'. This typo is present in multiple places in the code.
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.
👍 Looks good to me! Incremental review on bd0f722 in 31 seconds
More details
- Looked at
12
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_IX8DKbHGBMcZ9JhP
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
bd0f722
to
b5cd44e
Compare
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.
👍 Looks good to me! Incremental review on 19554d9 in 16 seconds
More details
- Looked at
40
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/service.py:744
- Draft comment:
Typo fix: Corrected 'includ_cost' to 'include_cost'. Ensure this change is consistent across all relevant files and tests. - Reason this comment was not posted:
Confidence changes required:10%
The typo fix from 'includ_cost' to 'include_cost' is correct and consistent throughout the file.
Workflow ID: wflow_80SqBlEnYYAZMg9r
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
👍 Looks good to me! Incremental review on 04c5d93 in 16 seconds
More details
- Looked at
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/service.py:839
- Draft comment:
Ensure thatStepStatus.completed
is the correct status for successful steps in cost calculation. Verify that this aligns with the intended logic for determining successful steps. - Reason this comment was not posted:
Confidence changes required:50%
The change fromStepStatus.success
toStepStatus.completed
is consistent with the PR description. However, it's important to ensure thatStepStatus.completed
is the correct status to check for successful steps in the context of cost calculation.
Workflow ID: wflow_bgEfcb8aVaCOOQvL
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
04c5d93
to
e94e02d
Compare
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.
👍 Looks good to me! Incremental review on e94e02d in 21 seconds
More details
- Looked at
15
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/service.py:839
- Draft comment:
Ensure that the status check forStepStatus.completed
is consistent across the codebase where similar logic is applied. This change affects the calculation ofsuccessful_steps
and subsequently thetotal_cost
. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_t7FQkBz2f4pQ3Kqe
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Add cost information to workflow run responses by updating models, services, and routes to calculate and include total steps and cost.
total_steps
andtotal_cost
toWorkflowRunStatusResponse
inworkflow.py
.build_workflow_run_status_response
andbuild_workflow_run_status_response_by_workflow_id
inservice.py
to calculate and include cost information.get_workflow_run
inagent_protocol.py
to include cost information in the response.get_steps_by_task_ids
method inclient.py
to retrieve steps for multiple task IDs.service.py
by changinginclud_cost
toinclude_cost
.This description was created by for e94e02d. It will automatically update as commits are pushed.