push
github
feat: Update tools param to Optional[Union[list[Union[Tool, Toolset]], Toolset]] (#9886) * Update tools param to Optional[Union[list[Union[Tool, Toolset]], Toolset]] * Exclude tools from schema generation * Different approach * Lint * Use ToolsType * Fixes * Reno note * Update haystack/tools/utils.py Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com> * Update haystack/tools/serde_utils.py Co-authored-by: tstadel <60758086+tstadel@users.noreply.github.com> * Revert "Update haystack/tools/utils.py" This reverts commit ebdec9115. * PR feedback * Improve serde tests * Update releasenotes/notes/mixed-tools-toolsets-support-d944c5770e2e6e7b.yaml Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com> * Pydoc polish * Update FallbackChatGenerator for new ToolsType --------- Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com> Co-authored-by: tstadel <60758086+tstadel@users.noreply.github.com>
13382 of 14511 relevant lines covered (92.22%)
0.92 hits per line