Skip to content
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] Exploring AgentDelegation through Supervisor Agent #4449

Draft
wants to merge 59 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
76cdcd1
Updated tests
AlexCuadron Oct 15, 2024
3beaf5c
chore(deps): bump litellm from 1.49.3 to 1.49.4 (#4406)
dependabot[bot] Oct 15, 2024
c8db8aa
chore(deps-dev): bump llama-index from 0.11.17 to 0.11.18 (#4408)
dependabot[bot] Oct 15, 2024
308dc62
chore(deps): bump modal from 0.64.181 to 0.64.182 (#4407)
dependabot[bot] Oct 15, 2024
158a923
refactor: move get_pairs from memory to shared utils (#4411)
xingyaoww Oct 15, 2024
b6a9163
Fix eval output path in case of @ char (#4416)
mamoodi Oct 15, 2024
8ba531a
Fix for lockup - create the runtime in a background thread (#4412)
tofarr Oct 15, 2024
87f6870
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 16, 2024
6037e20
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 16, 2024
0c5de4c
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 17, 2024
79cb41a
Initial Commit for the Supervisor Agent
AlexCuadron Oct 17, 2024
12798fd
Added support to specify the platform on which the image should be bu…
AlexCuadron Oct 19, 2024
ef3646f
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 20, 2024
7a9975d
Merge branch 'main' into supervisoragent
AlexCuadron Oct 20, 2024
cd4ff77
Merge branch 'main' into supervisoragent
AlexCuadron Oct 21, 2024
18bdb56
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 22, 2024
b2db9e1
Merge branch 'main' into supervisoragent
AlexCuadron Oct 22, 2024
5ddcd60
Merge remote-tracking branch 'upstream/main' into supervisoragent
AlexCuadron Oct 23, 2024
7ca0de6
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 23, 2024
31a18ba
Merge branch 'main' into supervisoragent
AlexCuadron Oct 23, 2024
5a76cc8
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 24, 2024
cd7cac1
Merge branch 'main' into supervisoragent
AlexCuadron Oct 24, 2024
640f769
enables codeactagent delegation
AlexCuadron Oct 24, 2024
d5d44e2
hacky way to enable different LLMs
AlexCuadron Oct 24, 2024
f1d317c
Some progress
AlexCuadron Oct 25, 2024
4a7ef31
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 25, 2024
74b7d04
Merge branch 'main' into supervisoragent
AlexCuadron Oct 25, 2024
32c69af
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 28, 2024
047846e
Merge branch 'main' into supervisoragent
AlexCuadron Oct 28, 2024
bf8b4c0
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 28, 2024
6741b81
Merge branch 'main' into supervisoragent
AlexCuadron Oct 28, 2024
e284c95
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 28, 2024
a749a4c
Merge branch 'main' into supervisoragent
AlexCuadron Oct 28, 2024
04c56c6
fix
AlexCuadron Oct 28, 2024
619bbf1
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 30, 2024
10c8f0c
Merge branch 'main' into supervisoragent
AlexCuadron Oct 30, 2024
65ec945
Merge remote-tracking branch 'upstream/main'
AlexCuadron Oct 31, 2024
d1151b8
Merge branch 'main' into supervisoragent
AlexCuadron Oct 31, 2024
399f19e
MAS
AlexCuadron Oct 31, 2024
d644f45
Merge remote-tracking branch 'upstream/main'
AlexCuadron Nov 5, 2024
500112a
merge
AlexCuadron Nov 5, 2024
ec94128
Merge remote-tracking branch 'upstream/main'
AlexCuadron Nov 5, 2024
f5e8820
merge
AlexCuadron Nov 5, 2024
7ad4bc0
Merge remote-tracking branch 'upstream/main'
AlexCuadron Nov 8, 2024
dbd7ad4
Merge branch 'main' into SupervisorAgent
AlexCuadron Nov 8, 2024
a9e346a
first try
AlexCuadron Nov 11, 2024
413caa6
attempt
AlexCuadron Nov 13, 2024
6a61134
o1 -> sonnet -> o1 -> sonnet
AlexCuadron Nov 16, 2024
cf1321f
thinking claude
AlexCuadron Nov 17, 2024
fa822b0
Merge remote-tracking branch 'upstream/main'
AlexCuadron Dec 31, 2024
7c0f566
merge main
AlexCuadron Jan 1, 2025
098013c
Merge branch 'main' into supervisoragent
AlexCuadron Jan 1, 2025
c8080a0
Merge remote-tracking branch 'upstream/main'
AlexCuadron Jan 1, 2025
cc295fb
Merge branch 'main' into supervisoragent
AlexCuadron Jan 1, 2025
9041e23
Merge branch 'main' into supervisoragent
AlexCuadron Jan 1, 2025
17a6708
Merge remote-tracking branch 'upstream/main'
AlexCuadron Jan 1, 2025
9b7d840
Merge branch 'main' into supervisoragent
AlexCuadron Jan 1, 2025
e43a93e
Merge remote-tracking branch 'upstream/main'
AlexCuadron Jan 8, 2025
cabb7cb
merge main
AlexCuadron Jan 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions openhands/agenthub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
codeact_agent,
delegator_agent,
dummy_agent,
planner_agent,
supervisor_agent,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge issue? 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch & so fast! I'm impressed hahaha

Copy link
Contributor Author

@AlexCuadron AlexCuadron Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the system should be done by ~15th Jan. Ill ping you directly when that happens if you are interested ^^

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely, thank you!

)

__all__ = [
Expand Down
13 changes: 7 additions & 6 deletions openhands/agenthub/codeact_agent/codeact_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,11 @@ def _get_messages(self, state: State) -> list[Message]:

pending_tool_call_action_messages: dict[str, Message] = {}
tool_call_id_to_message: dict[str, Message] = {}
events = list(state.history)
if self.number_of_events < 0:
self.number_of_events: int = len(events)
for i, event in enumerate(events):

# Condense the events from the state.
events = self.condenser.condensed_history(state)

for event in events:
# create a regular message from an event
if isinstance(event, Action):
messages_to_add = self.get_action_message(
Expand All @@ -485,7 +486,7 @@ def _get_messages(self, state: State) -> list[Message]:
else:
raise ValueError(f'Unknown event type: {type(event)}')

if i == self.number_of_events and state.inputs.get('next_step', ''):
if state.inputs.get('next_step', ''):
messages_to_add = [
Message(
role='user',
Expand Down Expand Up @@ -525,7 +526,7 @@ def _get_messages(self, state: State) -> list[Message]:
self.prompt_manager.enhance_message(message)
messages.append(message)

if self.number_of_events == len(events) and state.inputs.get('next_step', ''):
if state.inputs.get('next_step', ''):
messages.append(
Message(
role='user', content=[TextContent(text=state.inputs['next_step'])]
Expand Down
Loading