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

deepset-ai / haystack / 20368946883
92%

Build:
DEFAULT BRANCH: main
Ran 19 Dec 2025 11:43AM UTC
Jobs 1
Files 244
Run time 228min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Dec 2025 11:40AM UTC coverage: 92.158% (+0.001%) from 92.157%
20368946883

push

github

web-flow
fix: Raise error when async function is passed to Tool (#10264)

* fix: Raise error when async function is passed to Tool

- Added validation in Tool.__post_init__ to check if function is async
- Added validation in create_tool_from_function for early error detection
- Updated docstring to clarify that functions must be synchronous
- Added tests for both Tool init and @tool decorator with async functions

Closes #9580

* fix: Remove redundant async check from create_tool_from_function

Per reviewer feedback, the async validation is only needed in the
Tool class itself, since create_tool_from_function creates a Tool.

- Remove async check from create_tool_from_function
- Update docstrings to remove async-related notes
- Remove redundant tests for async functions in from_function tests
- Add release note

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Add docstring note and tests for async function validation

- Updated Tool class docstring to indicate function must be synchronous
- Added test_from_function_async_raises_error test
- Added test_tool_decorator_async_raises_error test

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>

14138 of 15341 relevant lines covered (92.16%)

0.92 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
96.67
0.11% tools/tool.py
Jobs
ID Job ID Ran Files Coverage
1 20368946883.1 19 Dec 2025 11:43AM UTC 244
92.16
GitHub Action Run
Source Files on build 20368946883
  • Tree
  • List 244
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20368946883
  • d4e623d0 on github
  • Prev Build on main (#20365282669)
  • Next Build on main (#20371470877)
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