Skip to content

Conversation

shudanluo
Copy link

Summary

Remove duplicate TODO comment that was causing code redundancy.

Changes

  • Removed duplicate "TODO: Handle tool calls" comment on line 1451
  • Kept original TODO on line 1409 for proper issue tracking

Related Issue

Addresses #3002 - Clean CAMEL code base

- 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
- Remove duplicate 'TODO: Handle tool calls' comment on line 1451
- Keep the original TODO comment on line 1409 for proper tracking
- This addresses issue camel-ai#3002 by cleaning up redundant comments in codebase
@shudanluo shudanluo marked this pull request as draft September 18, 2025 11:27
@shudanluo shudanluo marked this pull request as ready for review September 18, 2025 11:28
@shudanluo
Copy link
Author

@nitpicker55555 review

@nitpicker55555
Copy link
Collaborator

Hi @shudanluo , thanks for your contribution!

However, I noticed that this PR doesn't quite match what the issue is asking for. The issue is about removing outdated features that are no longer needed,
but this PR seems to be adding a new LLM-supervised deduplication feature instead.

For cleaning up outdated features, we should be looking at removing things like:

  • MarkItDownToolkit - already deprecated in favor of FileToolkit
  • FileWriteToolkit - deprecated alias for FileToolkit
  • Deprecated math toolkit aliases (add, sub, multiply, divide, round)
  • Deprecated GitHub toolkit methods (old naming without github_ prefix)
  • Deprecated search method (tavily_search → search_tavily)

These are all marked with deprecation warnings and have clear migration paths, making them perfect candidates for removal.

Hi @Wendong-Fan are the deprecated items listed above what you meant by "features that we no longer need"?

@nitpicker55555 nitpicker55555 marked this pull request as draft September 18, 2025 11:55
@nitpicker55555 nitpicker55555 self-requested a review September 18, 2025 11:55
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.

2 participants