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

deepset-ai / haystack / 12707767349

10 Jan 2025 10:28AM UTC coverage: 91.099% (+0.005%) from 91.094%
12707767349

Pull #8697

github

web-flow
Merge 3ef353402 into dd9660f90
Pull Request #8697: refactor: `create_tool_from_function` + `tool` decorator

8659 of 9505 relevant lines covered (91.1%)

0.91 hits per line

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

66.67
haystack/components/generators/utils.py
1
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
2
#
3
# SPDX-License-Identifier: Apache-2.0
4

5
from haystack.dataclasses import StreamingChunk
1✔
6

7

8
def print_streaming_chunk(chunk: StreamingChunk) -> None:
1✔
9
    """
10
    Default callback function for streaming responses.
11

12
    Prints the tokens of the first completion to stdout as soon as they are received
13
    """
14
    print(chunk.content, flush=True, end="")
×
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

© 2026 Coveralls, Inc