langflow
langflow copied to clipboard
refactor: Update WikidataAPI component to standard output pattern
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