-
Notifications
You must be signed in to change notification settings - Fork 894
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
feat(agents-api): Add label lookup for inputs and outputs #906
base: dev
Are you sure you want to change the base?
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 9a3cfd0 in 41 seconds
More details
- Looked at
102
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/workflows/task_execution/__init__.py:140
- Draft comment:
Initializingprevious_labels
as an empty dictionary if not provided is consistent with the changes for label lookup. This logic is correct. - Reason this comment was not posted:
Confidence changes required:0%
Therun
method inTaskExecutionWorkflow
class initializesprevious_labels
as an empty dictionary if not provided. This is consistent with the changes made to support label lookup for inputs and outputs. The logic seems correct here.
Workflow ID: wflow_iVQFZayAMbHKoGjo
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.
Stale since PR #959 |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
closes #791
Important
Add label lookup for inputs and outputs in agents API by updating
StepContext
and workflow execution methods.labels
attribute toStepContext
intasks.py
for label lookup in inputs and outputs.prepare_for_step
intasks.py
to merge labels with inputs and outputs.run
method in__init__.py
to handleprevious_labels
for task execution.continue_as_child
inhelpers.py
to acceptprevious_labels
parameter.This description was created by for 9a3cfd0. It will automatically update as commits are pushed.
PR Type
Enhancement
Description
Added
labels
attribute toStepContext
for label-based input/output lookup.Updated
prepare_for_step
to merge labels with inputs and outputs.Modified
run
method to handleprevious_labels
for task execution.Enhanced
continue_as_child
to accept and passprevious_labels
.Changes walkthrough 📝
prompt_step.py
Cleaned up redundant imports in `prompt_step.py`
agents-api/agents_api/activities/task_steps/prompt_step.py
chat.py
Simplified and cleaned up imports in `chat.py`
agents-api/agents_api/routers/sessions/chat.py
tasks.py
Introduced label-based input/output handling in `StepContext`
agents-api/agents_api/common/protocol/tasks.py
labels
attribute toStepContext
for label lookup.prepare_for_step
to merge labels with inputs and outputs.__init__.py
Integrated label handling into task execution workflow
agents-api/agents_api/workflows/task_execution/init.py
previous_labels
parameter torun
method.helpers.py
Added label propagation support in `continue_as_child`
agents-api/agents_api/workflows/task_execution/helpers.py
previous_labels
parameter tocontinue_as_child
.