Skip to content

Deleted old files unnecessary collab SK and updated collaborative_multi_agent_RR.py #251

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

heenajvs
Copy link

No description provided.

@heenajvs heenajvs requested a review from Copilot June 25, 2025 06:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes outdated collaborative multi-agent files and updates the remaining collaborative_multi_agent_RR.py file with enhanced debugging, logging, and serialization support. Key changes include:

  • Removal of the SDK v2 and groupchat SDK v2 files.
  • Addition of debugging logs and a new to_serializable method in collaborative_multi_agent_RR.py.
  • Updates to the orchestration and agent response logic in chat_async.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
agentic_ai/agents/semantic_kernel/multi_agent/collaborative_multi_agent_sdkv2.py File removed as it is no longer necessary.
agentic_ai/agents/semantic_kernel/multi_agent/collaborative_multi_agent_RR.py Updated to add debugging, a serialization method, and improved logging.
agentic_ai/agents/semantic_kernel/multi_agent/collab_multi_agent_RR_groupchat_sdkv2.py File removed as it is no longer necessary.
Comments suppressed due to low confidence (1)

agentic_ai/agents/semantic_kernel/multi_agent/collaborative_multi_agent_RR.py:276

  • [nitpick] Evaluate whether returning a JSON serialized string might better preserve the structure of the response for further processing, instead of using a general string conversion.
        return str(answer)

@@ -182,6 +205,7 @@ def make_agent(name, description, instructions, included_tools=[]):
"- Do not emit planning commentary or bullet lists to the user.\n"
"- Only ‘FINAL ANSWER’ messages or specialist delegations are allowed.\n"
"- After all agents discuss, make sure you respond only relevant information asked as per user request.\n"
"- It's possible in taking multiple turns you got different answers, but the most appropraite response was in one of the earlier rounds, so look at keywords in questions and map the response to closest keyword matching\n"
Copy link
Preview

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

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

Typographical error: 'appropraite' should be corrected to 'appropriate'. Consider revising the sentence for clarity.

Suggested change
"- It's possible in taking multiple turns you got different answers, but the most appropraite response was in one of the earlier rounds, so look at keywords in questions and map the response to closest keyword matching\n"
"- It's possible in taking multiple turns you got different answers, but the most appropriate response was in one of the earlier rounds. Look at keywords in the questions and map the response to the closest keyword match.\n"

Copilot uses AI. Check for mistakes.

Comment on lines +259 to +262
# Debug log: show the type and repr of the value and value.content
logger.info(f"[DEBUG] orchestration_result.get() value: {repr(value)} (type: {type(value)})")
if hasattr(value, "content"):
answer = str(value.content)
logger.info(f"[DEBUG] value.content: {repr(value.content)} (type: {type(value.content)})")
Copy link
Preview

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

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

Ensure that detailed debug logging does not expose sensitive data in production environments. Consider removing or reducing such logs when deploying.

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant