파이프라인 내 컴포넌트 제거

pipeline.remove_component(component_id="str")
  • Parameters
    • component_id(str): 제거하고자 하는 컴포넌트의 ID
  • Troubleshooting
    • RuntimeError: There is no component_id {component_id} in the pipeline.
      • 해당 컴포넌트 ID가 존재하지 않을 때 발생합니다.

Example

from mrx_link.sdk import LinkPipeline
from mrx_link.sdk.utils import create_link_component

# 코드 셀
code1 = """
x = 1
"""

if __name__ == "__main__":
    # 파이프라인 객체 생성
    pipeline = LinkPipeline()

    # 컴포넌트 생성 및 파이프라인에 컴포넌트 추가
    component1 = create_link_component(identifier="111-1", name="test1", code=code1)
    pipeline.add_component(component=component1)

    # 파이프라인 컴포넌트 제거
    pipeline.remove_component(component_id="111-1")