preserve-docstrings-super-component-tools-1fd9eb8a73b5c312.yaml
1 --- 2 enhancements: 3 - | 4 ComponentTool now preserves and combines docstrings from underlying pipeline components when wrapping a SuperComponent. 5 When a SuperComponent is used with ComponentTool, two key improvements are made: 6 7 1. Parameter descriptions are now extracted from the original components in the wrapped pipeline. When 8 a single input is mapped to multiple components, the parameter descriptions are combined from all 9 mapped components, providing comprehensive information about how the parameter is used throughout the pipeline. 10 11 2. The overall component description is now generated from the descriptions of all underlying components 12 instead of using the generic SuperComponent description. This helps LLMs understand what the component 13 actually does rather than just seeing "Runs the wrapped pipeline with the provided inputs." 14 15 These changes make SuperComponents much more useful with LLM function calling as the LLM will get detailed 16 information about both the component's purpose and its parameters.