• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

deepset-ai / haystack / 15728163096

18 Jun 2025 08:44AM UTC coverage: 90.154% (+0.009%) from 90.145%
15728163096

Pull #9337

github

web-flow
Merge 987f98a24 into a16ee9600
Pull Request #9337: feat: add resource name for Haystack Component Datadog spans

11564 of 12827 relevant lines covered (90.15%)

0.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

24.0
haystack/dataclasses/__init__.py
1
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
2
#
3
# SPDX-License-Identifier: Apache-2.0
4

5
import sys
1✔
6
from typing import TYPE_CHECKING
1✔
7

8
from lazy_imports import LazyImporter
1✔
9

10
_import_structure = {
1✔
11
    "answer": ["Answer", "ExtractedAnswer", "GeneratedAnswer"],
12
    "byte_stream": ["ByteStream"],
13
    "chat_message": ["ChatMessage", "ChatRole", "TextContent", "ToolCall", "ToolCallResult"],
14
    "document": ["Document"],
15
    "sparse_embedding": ["SparseEmbedding"],
16
    "state": ["State"],
17
    "streaming_chunk": [
18
        "AsyncStreamingCallbackT",
19
        "ComponentInfo",
20
        "StreamingCallbackT",
21
        "StreamingChunk",
22
        "SyncStreamingCallbackT",
23
        "ToolCallDelta",
24
        "select_streaming_callback",
25
    ],
26
}
27

28
if TYPE_CHECKING:
1✔
29
    from .answer import Answer as Answer
×
30
    from .answer import ExtractedAnswer as ExtractedAnswer
×
31
    from .answer import GeneratedAnswer as GeneratedAnswer
×
32
    from .byte_stream import ByteStream as ByteStream
×
33
    from .chat_message import ChatMessage as ChatMessage
×
34
    from .chat_message import ChatRole as ChatRole
×
35
    from .chat_message import TextContent as TextContent
×
36
    from .chat_message import ToolCall as ToolCall
×
37
    from .chat_message import ToolCallResult as ToolCallResult
×
38
    from .document import Document as Document
×
39
    from .sparse_embedding import SparseEmbedding as SparseEmbedding
×
40
    from .state import State as State
×
41
    from .streaming_chunk import AsyncStreamingCallbackT as AsyncStreamingCallbackT
×
42
    from .streaming_chunk import ComponentInfo as ComponentInfo
×
43
    from .streaming_chunk import StreamingCallbackT as StreamingCallbackT
×
44
    from .streaming_chunk import StreamingChunk as StreamingChunk
×
45
    from .streaming_chunk import SyncStreamingCallbackT as SyncStreamingCallbackT
×
46
    from .streaming_chunk import ToolCallDelta as ToolCallDelta
×
47
    from .streaming_chunk import select_streaming_callback as select_streaming_callback
×
48
else:
49
    sys.modules[__name__] = LazyImporter(name=__name__, module_file=__file__, import_structure=_import_structure)
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc