def agent_input_component(self) -> AgentInputComponent:
        """
        Get agent input component.

        NOTE: This is deprecated and will be removed in the future.

        """
        root_key = self.pipeline.get_root_keys()[0]
        if not isinstance(self.pipeline.module_dict[root_key], AgentInputComponent):
            raise ValueError(
                "Query pipeline first component must be AgentInputComponent, got "
                f"{self.pipeline.module_dict[root_key]}"
            )

        return cast(AgentInputComponent, self.pipeline.module_dict[root_key])

        Get agent input component.

        NOTE: This is deprecated and will be removed in the future.

        
llama-index-core/llama_index/core/agent/custom/pipeline_worker.py