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

Merge SwarmAgent into ConversableAgent #316

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e082623
Moved functions and update_agent_state_before_reply parameters and as…
marklysze Dec 30, 2024
dfcc183
Move SwarmAgent functions out or to ConversableAgent
marklysze Dec 30, 2024
5a25727
Move SwarmAgent init to function
marklysze Dec 30, 2024
8882f9c
Merge remote-tracking branch 'origin/main' into swarmagenttoconversable
marklysze Dec 31, 2024
4221ba9
Merge remote-tracking branch 'origin/main' into swarmagenttoconversable
marklysze Dec 31, 2024
5b891ba
Updated agent's string representation
marklysze Dec 31, 2024
b99d9ad
Update swarm tests and add to ConversableAgent tests
marklysze Dec 31, 2024
1453683
Agent string representation, documentation updates for SwarmAgent and…
marklysze Dec 31, 2024
5978eb3
Updated test for agent string representation
marklysze Dec 31, 2024
ab9687c
Removed static method for Python 3.9 support
marklysze Dec 31, 2024
18b018d
Merge remote-tracking branch 'origin/main' into swarmagenttoconversable
marklysze Jan 2, 2025
85b56cc
Update autogen/agentchat/conversable_agent.py
marklysze Jan 2, 2025
c0030c2
Summary from nested chat refactoring, comment fix
marklysze Jan 2, 2025
0c12b99
UPDATE_SYSTEM_MESSAGE, AFTER_WORK, ON_CONDITION to UpdateSystemMessag…
marklysze Jan 2, 2025
0ca8f9d
Merge branch 'swarmagenttoconversable' of https://github.com/ag2ai/ag…
marklysze Jan 2, 2025
0ae67a6
Copyright updates
marklysze Jan 2, 2025
105ae56
add new class UpdateCondition, unit test passed.
linmou Jan 4, 2025
d0ef8e5
Code formatting
linmou Jan 4, 2025
0741ff7
Code formatting
linmou Jan 4, 2025
56aa33c
add document
linmou Jan 6, 2025
faafb64
Added UpdateCondition to init
marklysze Jan 6, 2025
4ef36a8
Documentation layout
marklysze Jan 6, 2025
5ad455a
Merge pull request #349 from ag2ai/swarmOnConditionWithContextV
marklysze Jan 6, 2025
7e3c1b9
Merge remote-tracking branch 'origin/main' into swarmagenttoconversable
marklysze Jan 6, 2025
2589814
SwarmAgent deprecation
marklysze Jan 7, 2025
aa95cfb
Merge remote-tracking branch 'origin/main' into swarmagenttoconversable
marklysze Jan 7, 2025
8d8120c
Merge remote-tracking branch 'origin/main' into swarmagenttoconversable
marklysze Jan 15, 2025
6e063fc
Updated init
marklysze Jan 15, 2025
800ba8d
Updated comments and UpdateSystemMessage attribute
marklysze Jan 15, 2025
1afac68
Update autogen/agentchat/__init__.py
marklysze Jan 17, 2025
c0aa09d
Update test/agentchat/test_conversable_agent.py
marklysze Jan 17, 2025
fcedf0a
Update autogen/agentchat/__init__.py
marklysze Jan 17, 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
10 changes: 9 additions & 1 deletion autogen/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2023 - 2024, Owners of https://github.com/ag2ai
# Copyright (c) 2023 - 2025, Owners of https://github.com/ag2ai
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -10,23 +10,27 @@
AFTER_WORK,
ON_CONDITION,
UPDATE_SYSTEM_MESSAGE,
AfterWork,
AfterWorkOption,
Agent,
AssistantAgent,
ChatResult,
ConversableAgent,
GroupChat,
GroupChatManager,
OnCondition,
ReasoningAgent,
SwarmAgent,
SwarmResult,
ThinkNode,
UpdateSystemMessage,
UserProxyAgent,
a_initiate_swarm_chat,
gather_usage_summary,
initiate_chats,
initiate_swarm_chat,
register_function,
register_hand_off,
visualize_tree,
)
from .code_utils import DEFAULT_MODEL, FAST_MODEL
Expand Down Expand Up @@ -64,6 +68,7 @@
"FAST_MODEL",
"ON_CONDITION",
"UPDATE_SYSTEM_MESSAGE",
"AfterWork",
"AfterWorkOption",
"Agent",
"AgentNameConflict",
Expand All @@ -78,13 +83,15 @@
"InvalidCarryOverType",
"ModelClient",
"NoEligibleSpeaker",
"OnCondition",
"OpenAIWrapper",
"ReasoningAgent",
"SenderRequired",
"SwarmAgent",
"SwarmResult",
"ThinkNode",
"UndefinedNextAgent",
"UpdateSystemMessage",
"UserProxyAgent",
"__version__",
"a_initiate_swarm_chat",
Expand All @@ -99,5 +106,6 @@
"initiate_chats",
"initiate_swarm_chat",
"register_function",
"register_hand_off",
"visualize_tree",
]
14 changes: 11 additions & 3 deletions autogen/agentchat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2023 - 2024, Owners of https://github.com/ag2ai
# Copyright (c) 2023 - 2025, Owners of https://github.com/ag2ai
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -17,14 +17,17 @@
from .contrib.swarm_agent import (
AFTER_WORK,
ON_CONDITION,
UPDATE_SYSTEM_MESSAGE,
AfterWork,
AfterWorkOption,
OnCondition,
SwarmAgent,
SwarmResult,
UpdateCondition,
a_initiate_swarm_chat,
initiate_swarm_chat,
register_hand_off,
)
from .conversable_agent import ConversableAgent, register_function
from .conversable_agent import UPDATE_SYSTEM_MESSAGE, ConversableAgent, UpdateSystemMessage, register_function
from .groupchat import GroupChat, GroupChatManager
from .user_proxy_agent import UserProxyAgent
from .utils import gather_usage_summary
Expand All @@ -33,22 +36,27 @@
"AFTER_WORK",
"ON_CONDITION",
"UPDATE_SYSTEM_MESSAGE",
"AfterWork",
"AfterWorkOption",
"Agent",
"AssistantAgent",
"ChatResult",
"ConversableAgent",
"GroupChat",
"GroupChatManager",
"OnCondition",
"ReasoningAgent",
"SwarmAgent",
"SwarmResult",
"ThinkNode",
"UpdateCondition",
"UpdateSystemMessage",
"UserProxyAgent",
"a_initiate_swarm_chat",
marklysze marked this conversation as resolved.
Show resolved Hide resolved
"gather_usage_summary",
"initiate_chats",
"initiate_swarm_chat",
"register_function",
"register_hand_off",
"visualize_tree",
]
Loading
Loading