Skip to content

Conversation

@shudanluo
Copy link

Summary

Fix verbose and confusing warnings in workforce initialization that were causing user confusion.

Problem

Issue #2820 reported "Unknown Warning" when using ThinkingToolkit with ChatAgent. The warnings were:

  • Overly verbose (multi-line messages)
  • Using inappropriate warning level for informational content
  • Causing confusion for users

Solution

  • Replaced logger.warning() with logger.info() for configuration guidance
  • Simplified messages while maintaining helpful information
  • Improved user experience by reducing noise in logs

Changes

  • Modified 3 warning messages in camel/societies/workforce/workforce.py
  • Reduced 27 lines of verbose warnings to 6 lines of concise info messages

Testing

  • Code compiles without errors
  • Maintains all functionality while improving UX

- Add _deduplicate_with_llm_supervision function
- Add _llm_judge_duplicates helper function
- Fix circular import issues
- Add comprehensive test suite with 9 test cases
- Maintain backward compatibility with existing code
- Replace lengthy logger.warning() calls with concise logger.info() messages
- Improve user experience by reducing confusing warning output
- Maintain helpful guidance for configuration options
- Addresses issue camel-ai#2820: Unknown Warning when Using ThinkingToolkit with ChatAgent

The previous warnings were overly verbose and used inappropriate warning level
for informational configuration guidance.
@nitpicker55555 nitpicker55555 marked this pull request as draft September 18, 2025 13:29
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