Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

Fix concept refines

Louis Choquel772802f51fae
diff --git a/pipelex/core/concept_factory.py b/pipelex/core/concept_factory.py
index fffcf5b43..1f5cf7183 100644
--- a/pipelex/core/concept_factory.py
+++ b/pipelex/core/concept_factory.py
@@ -135,11 +135,7 @@ class ConceptFactory:
else:
structure_class_name = TextContent.__name__
- refines_list: List[str]
- if isinstance(concept_blueprint.refines, str):
- refines_list = [concept_blueprint.refines]
- else:
- refines_list = concept_blueprint.refines
+ refines_list = cls.make_refines(domain=domain, refines=concept_blueprint.refines)
return Concept(
code=ConceptCodeFactory.make_concept_code(domain, code),