MCPcopy
hub / github.com/opentrace/opentrace / run_pipeline

Function run_pipeline

agent/src/opentrace_agent/pipeline/pipeline.py:67–78  ·  view source on GitHub ↗

Public entry point — run the full pipeline, optionally persisting via store.

(
    inp: PipelineInput,
    ctx: PipelineContext | None = None,
    store: Store | None = None,
)

Source from the content-addressed store, hash-verified

65
66
67def run_pipeline(
68 inp: PipelineInput,
69 ctx: PipelineContext | None = None,
70 store: Store | None = None,
71) -> Generator[PipelineEvent, None, None]:
72 """Public entry point — run the full pipeline, optionally persisting via store."""
73 ctx = ctx or PipelineContext()
74 inner = core_pipeline(inp, ctx)
75 if store is not None:
76 yield from saving(inner, store)
77 else:
78 yield from inner
79
80
81def collect_pipeline(

Callers 2

_run_indexing_pipelineFunction · 0.90
collect_pipelineFunction · 0.85

Calls 3

PipelineContextClass · 0.90
savingFunction · 0.90
core_pipelineFunction · 0.85

Tested by

no test coverage detected