Files
deepset-ai--haystack/haystack/dataclasses/__init__.py
T
wehub-resource-sync c56bef871b
Sync docs with Docusaurus / sync (push) Waiting to run
Tests / Check if changed (push) Waiting to run
Tests / format (push) Blocked by required conditions
Tests / check-imports (push) Blocked by required conditions
Tests / Unit / macos-latest (push) Blocked by required conditions
Tests / Unit / ubuntu-latest (push) Blocked by required conditions
Tests / Unit / windows-latest (push) Blocked by required conditions
Tests / mypy (push) Blocked by required conditions
Tests / Integration / ubuntu-latest (push) Blocked by required conditions
Tests / Integration / macos-latest (push) Blocked by required conditions
Tests / Integration / windows-latest (push) Blocked by required conditions
Tests / notify-slack-on-failure (push) Blocked by required conditions
Tests / Mark tests as completed (push) Blocked by required conditions
Docker image release / Build base image (push) Waiting to run
CodeQL / Analyze (python) (push) Has been cancelled
Update Platform Components Table / update (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:22:28 +08:00

61 lines
2.6 KiB
Python

# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# 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)