langflow icon indicating copy to clipboard operation
langflow copied to clipboard

refactor: Update WikidataAPI component to standard output pattern

Open raphaelchristi opened this issue 1 year ago • 0 comments

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

raphaelchristi avatar Dec 24 '24 23:12 raphaelchristi