# SPDX-FileCopyrightText: 2022-present deepset GmbH # # SPDX-License-Identifier: Apache-2.0 import haystack.logging import haystack.tracing from haystack.core.component import component from haystack.core.errors import ComponentError, DeserializationError from haystack.core.pipeline import Pipeline, PredefinedPipeline from haystack.core.serialization import default_from_dict, default_to_dict from haystack.dataclasses import Answer, Document, ExtractedAnswer, GeneratedAnswer # Initialize the logging configuration # This is a no-op unless `structlog` is installed haystack.logging.configure_logging() # Same for tracing (no op if `opentelemetry` or `ddtrace` is not installed) haystack.tracing.auto_enable_tracing() __all__ = [ "component", "default_from_dict", "default_to_dict", "DeserializationError", "ComponentError", "Pipeline", "PredefinedPipeline", "Document", "Answer", "GeneratedAnswer", "ExtractedAnswer", ] # FIXME: remove before merging PR