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

refactor: Update WikidataAPI component to standard output pattern #5431

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

raphaelchristi
Copy link
Contributor

Description

This PR refactors the WikidataAPI component to follow the standard component pattern with data/text outputs and proper tool mode implementation.

Changes

  • Removed tool-specific implementations (LCToolComponent, StructuredTool)
  • Changed base class to Component
  • Added standard data and text outputs
  • Implemented tool mode for fetch_content method
  • Simplified code structure and error handling
  • Improved data formatting and text output

Before/After

Before: Component used LCToolComponent with tool-specific implementations
After: Component follows standard pattern with data/text outputs and selective tool mode

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Dec 24, 2024
@github-actions github-actions bot added the refactor Maintenance tasks and housekeeping label Dec 24, 2024
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed refactor Maintenance tasks and housekeeping labels Dec 24, 2024
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed refactor Maintenance tasks and housekeeping labels Dec 24, 2024
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed refactor Maintenance tasks and housekeeping labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Maintenance tasks and housekeeping size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant