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.
udpate rootmodel
thomashebrard974b3b353400
diff --git a/pipelex/cogt/content_generation/schema_to_model_factory.py b/pipelex/cogt/content_generation/schema_to_model_factory.pyindex 3fde45654..6156d1287 100644--- a/pipelex/cogt/content_generation/schema_to_model_factory.py+++ b/pipelex/cogt/content_generation/schema_to_model_factory.py@@ -38,7 +38,7 @@ from enum import Enumfrom pathlib import Pathfrom typing import Any, ClassVar, Literal, cast-from pydantic import BaseModel+from pydantic import BaseModel, RootModelfrom pipelex.cogt.content_generation.exceptions import UnsafeSchemaError@@ -260,6 +260,7 @@ class SchemaToModelFactory:and not name.startswith("_")and (issubclass(obj, BaseModel) or issubclass(obj, Enum))and obj is not BaseModel+ and obj is not RootModeland obj is not Enum}