# SPDX-FileCopyrightText: 2022-present deepset GmbH # # SPDX-License-Identifier: Apache-2.0 import sys from typing import TYPE_CHECKING from lazy_imports import LazyImporter _import_structure = { "answer": ["Answer", "ExtractedAnswer", "GeneratedAnswer"], "breakpoints": ["Breakpoint", "PipelineSnapshot", "PipelineState"], "byte_stream": ["ByteStream"], "chat_message": ["ChatMessage", "ChatRole", "ReasoningContent", "TextContent", "ToolCall", "ToolCallResult"], "image_content": ["ImageContent"], "file_content": ["FileContent"], "document": ["Document"], "skill_info": ["SkillInfo"], "sparse_embedding": ["SparseEmbedding"], "streaming_chunk": [ "AsyncStreamingCallbackT", "ComponentInfo", "FinishReason", "StreamingCallbackT", "StreamingChunk", "SyncStreamingCallbackT", "ToolCallDelta", "select_streaming_callback", ], } if TYPE_CHECKING: from .answer import Answer as Answer from .answer import ExtractedAnswer as ExtractedAnswer from .answer import GeneratedAnswer as GeneratedAnswer from .breakpoints import Breakpoint as Breakpoint from .breakpoints import PipelineSnapshot as PipelineSnapshot from .breakpoints import PipelineState as PipelineState from .byte_stream import ByteStream as ByteStream from .chat_message import ChatMessage as ChatMessage from .chat_message import ChatRole as ChatRole from .chat_message import ReasoningContent as ReasoningContent from .chat_message import TextContent as TextContent from .chat_message import ToolCall as ToolCall from .chat_message import ToolCallResult as ToolCallResult from .document import Document as Document from .file_content import FileContent as FileContent from .image_content import ImageContent as ImageContent from .skill_info import SkillInfo as SkillInfo from .sparse_embedding import SparseEmbedding as SparseEmbedding from .streaming_chunk import AsyncStreamingCallbackT as AsyncStreamingCallbackT from .streaming_chunk import ComponentInfo as ComponentInfo from .streaming_chunk import FinishReason as FinishReason from .streaming_chunk import StreamingCallbackT as StreamingCallbackT from .streaming_chunk import StreamingChunk as StreamingChunk from .streaming_chunk import SyncStreamingCallbackT as SyncStreamingCallbackT from .streaming_chunk import ToolCallDelta as ToolCallDelta from .streaming_chunk import select_streaming_callback as select_streaming_callback else: sys.modules[__name__] = LazyImporter(name=__name__, module_file=__file__, import_structure=_import_structure)