Skip to content

Add Langfuse tracing to ICD Agent and export traces as DSPy training/evaluation inputs #2524

@filiperochalopes

Description

@filiperochalopes

User story

As a developer, I want improved observability for the ICD Agent by capturing full execution traces so we can reuse real runs as DSPy datasets for evaluation and optimization.

Use case

Run the ICD Agent in normal operation, store all traces in Langfuse, then export those traces to a structured dataset to feed DSPy.

Requirements

  • Integrate Langfuse tracing into the ICD Agent execution flow.
  • Capture and store all relevant traces for each run (end-to-end) in Langfuse.
  • Provide an export process to convert stored traces into DSPy-compatible input data.

Acceptance criteria

  • Given an ICD Agent execution, a complete trace is recorded in Langfuse for that run.
  • Traces can be exported from Langfuse into a dataset format usable as input for DSPy.
  • Exported dataset contains enough information to reproduce/score runs in DSPy (based on the captured traces).

Metadata

Metadata

No fields configured for Feature.

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions