-
Notifications
You must be signed in to change notification settings - Fork 872
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
fix(agents-api): Fix remote blob store loading before transitions #696
Conversation
Signed-off-by: Diwank Singh Tomer <[email protected]>
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! Reviewed everything up to 6ba02be in 16 seconds
More details
- Looked at
101
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. agents-api/agents_api/activities/task_steps/transition_step.py:17
- Draft comment:
Consider checking iftransition_info.output
is remote before callingload_from_blob_store_if_remote
to avoid unnecessary calls. - Reason this comment was not posted:
Confidence changes required:50%
The functionload_from_blob_store_if_remote
is used to load data from a remote blob store if the data is remote. However, the function is called without checking if the data is indeed remote. This could lead to unnecessary calls to the blob store, which could be a performance issue.
2. agents-api/agents_api/models/execution/create_execution_transition.py:98
- Draft comment:
The JSON serialization logic fordata.output
is duplicated inTaskExecutionWorkflow.run
. Consider centralizing this logic to avoid duplication. - Reason this comment was not posted:
Confidence changes required:50%
The code increate_execution_transition
is responsible for serializing thedata.output
to JSON format. However, this logic is duplicated in therun
function ofTaskExecutionWorkflow
. The duplication should be removed to avoid inconsistencies and maintenance issues.
3. agents-api/agents_api/workflows/task_execution/__init__.py:532
- Draft comment:
Themodel_dump
logic was removed but is still needed for JSON serialization. Consider centralizing this logic to avoid duplication and potential errors. - Reason this comment was not posted:
Confidence changes required:50%
Themodel_dump
function was removed from therun
function inTaskExecutionWorkflow
, but the logic for converting objects to JSON is still needed. This logic should be centralized to avoid duplication and potential errors.
Workflow ID: wflow_ULFHzEeeF162mGUi
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Signed-off-by: Diwank Singh Tomer <[email protected]>
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 6ea7aa0 in 39 seconds
More details
- Looked at
195
lines of code in4
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/common/storage_handler.py:55
- Draft comment:
Thedeep
parameter inauto_blob_store
is not used effectively. The current logic overwritesnew_args
andnew_kwargs
without utilizing thedeep
parameter correctly. Consider revising the logic to ensuredeep
has the intended effect. - Reason this comment was not posted:
Comment looked like it was already resolved.
Workflow ID: wflow_P2VwtZkBJpQomDwX
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Signed-off-by: Diwank Singh Tomer [email protected]
Important
Fixes remote blob store loading in
transition_step
and JSON serialization increate_execution_transition
.transition_step
intransition_step.py
now loads output from blob store if remote usingload_from_blob_store_if_remote()
.create_execution_transition
increate_execution_transition.py
serializesdata.output
to JSON if it hasmodel_dump
.model_dump
function intask_execution/__init__.py
.notebooks/Untitled*.ipynb
to.gitignore
.This description was created by for 6ea7aa0. It will automatically update as commits are pushed.