-
Notifications
You must be signed in to change notification settings - Fork 6k
Add AgentRejectAction across multiple modules #1615
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
Changes from 2 commits
d195914
d216ffc
6a944df
eaba673
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* `reject` - reject the task. Arguments: | ||
* `outputs` - a dictionary representing the outputs of your task, if any |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,17 @@ def message(self) -> str: | |
return "All done! What's next on the agenda?" | ||
|
||
|
||
@dataclass | ||
class AgentRejectAction(Action): | ||
outputs: Dict = field(default_factory=dict) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this should have an arbitrary dict of outputs, the way There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see where you are coming from, but I have a few counter-arguments:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will create a follow-up to enforce the schema for micro-agents. We could discuss if we want to continue this approach there. |
||
thought: str = '' | ||
action: str = ActionType.REJECT | ||
|
||
@property | ||
def message(self) -> str: | ||
return 'Task is rejected by the agent.' | ||
|
||
|
||
@dataclass | ||
class AgentDelegateAction(Action): | ||
agent: str | ||
|
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.
The agent_controller will stop after the previous action
AgentFinishAction
. If this action is placed before, the same will happen. So, is this action needed?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.
Probably not needed