Amna Mubashar
adb2759d00
chore: remove deprecated State
from haystack.dataclasses
( #9578 )
...
* Remove deprecated class
* Remove state from pydocs
2025-07-02 12:19:06 +02:00
Amna Mubashar
f11870b212
fix: adjust the async executor in ToolInvoker ( #9562 )
...
* Fix bug
* Add a new test
* PR comments
* Add another test
* Small fix
* Fix linting
* Update tests
2025-06-30 15:13:01 +02:00
Amna Mubashar
1cd0a128d0
feat: enable parallel tool execution in ToolInvoker ( #9530 )
...
* Enable parallel tool execution in ToolInvoker
* Update handling of errors
* Small fixes
* Small fixes
* Adapt number of executors
* Add release notes
* Add parallel tool calling to sync run
* Deprecate async_executor
* Deprecate async_executor
* Add thread lock
* extract methods
* Update release notes
* Update release notes
* Updates
* Add new tests
* Add test for async
* PR comments
2025-06-25 13:32:11 +02:00
Vladimir Blagojevic
91094e1038
feat: Add finish_reason
field to StreamingChunk
( #9536 )
...
* Initial commit
* Update deprecation version
* Improve comment
* Minor simplification
* Add reno note
* Remove deprecation warning
* Remove fallback in haystack/components/generators/utils.py
* FinishReason alphabetical import
* Add tool_call_results finish reason, adapt codebase
* Define finish_reason to be Optional[FinishReason]
* Add StreamingChunk finish_reason in HF generators
* Update reno note
* Repair merge issue
* Update tests for finish_reason
* Resolve mypy issues
* Lint issue
* Enhance HF finish_reason translation
* Remove irrlevant test
* PR comments
---------
Co-authored-by: Sebastian Husch Lee <sjrl423@gmail.com>
2025-06-25 09:06:01 +00:00
Sebastian Husch Lee
a1484cb91c
Add unit test ( #9519 )
2025-06-16 13:14:02 +02:00
Sebastian Husch Lee
54c5057e0b
feat: (and fix) Add enable_streaming_passthrough
to ToolInvoker
and add missing params to to_dict
( #9498 )
...
* Fixes and tests
* Add reno
* Change variable name
* Add test and fix for passing streaming_callback to a component tool
* Add unit test
* Remove unused import
* Fix reno
2025-06-06 14:16:05 +02:00
David S. Batista
da60156174
chore: removing unused imports from tests ( #9446 )
2025-05-26 16:22:51 +00:00
Amna Mubashar
995fa18607
feat: stream ToolResult
from run_async in Agent ( #9407 )
...
* Add async run
* Add release notes
* Update the run async
* Fixes
* Fix linting
* Add tests
* Fix tests
* Remove changes from Tool
* Linting updates
* Update haystack/components/tools/tool_invoker.py
Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com>
* Updates tests based on comments
* Update release notes
---------
Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com>
2025-05-21 10:22:38 +02:00
Sebastian Husch Lee
707573d967
feat: Streamline using Agent
as a ComponentTool
( #9388 )
...
* Make agent as a tool more streamlined
* Add reno
* fix mypy
2025-05-16 13:11:43 +02:00
Amna Mubashar
64f384b52d
feat: enable streaming ToolCall/Result from Agent ( #9290 )
...
* Testing solutions for streaming
* Remove unused methods
* Add fixes
* Update docstrings
* add release notes and test
* PR comments
* add a new util function
* Adjust emit_tool_info
* PR comments
* Remove emit function, add streaming for tool_call
---------
Co-authored-by: Sebastian Husch Lee <sjrl423@gmail.com>
2025-05-05 16:23:44 +02:00
Sebastian Husch Lee
d5ae46bc93
feat: Add Toolset to Agent ( #9284 )
...
* Add Toolset to Agent
* Add reno
2025-04-22 14:08:34 +02:00
Amna Mubashar
498637788a
feat: Allow OpenAI client config in OpenAIChatGenerator
and AzureOpenAIChatGenerator
( #9215 )
...
* Allow OpenAI client config in chat generator
* Add init_http_client as a util method
* Update azure chat gen
* Fix linting
2025-04-16 18:32:13 +02:00
Sebastian Husch Lee
d15f1b9043
feat: Add outputs_to_string
to Tool and ComponentTool ( #9152 )
...
* Add outputs_to_string to Tool and ComponentTool
* Doc string and fix tests
* Add reno
* Fix mypy
2025-04-01 14:04:50 +02:00
Julian Risch
657d09d7f1
feat: integrate updates of Tool, ToolInvoker, State, create_tool_from_function, ComponentTool from haystack-experimental ( #9113 )
...
* update Tool,ToolInvoker,ComponentTool,create_tool_from_function
* add State and its utils
* add tests for State and its utils
* update tests for Tool etc.
* reno
* fix circular imports
* update experimental imports in tests
* fix unit tests
* fix ChatGenerator unit tests
* mypy
* add State to init and pydoc
* explain State in more detail in release note
* add test from #8913
* re-add _check_duplicate_tool_names and refactor imports
* rename inputs and outputs
2025-03-28 10:49:23 +01:00
Sebastian Husch Lee
296e31c182
feat: Add Type Validation parameter for Pipeline Connections ( #8875 )
...
* Starting to refactor type util tests to be more systematic
* refactoring
* Expand tests
* Update to type utils
* Add missing subclass check
* Expand and refactor tests, introduce type_validation Literal
* More test refactoring
* Test refactoring, adding type validation variable to pipeline base
* Update relaxed version of type checking to pass all newly added tests
* trim whitespace
* Add tests
* cleanup
* Updates docstrings
* Add reno
* docs
* Fix mypy and add docstrings
* Changes based on advice from Tobi
* Remove unused imports
* Doc strings
* Add connection type validation to to_dict and from_dict
* Update tests
* Fix test
* Also save connection_type_validation at global pipeline level
* Fix tests
* Remove connection type validation from the connect level, only keep at pipeline level
* Formatting
* Fix tests
* formatting
2025-03-03 16:00:22 +01:00
Stefano Fiorucci
3f15f38c51
refactor: move Tool
to a separate package; refactor serde ( #8690 )
...
* move tool to separate package; refactor serde
* release note
* rm unused import
2025-01-09 12:30:13 +01:00
Stefano Fiorucci
188b2a7f06
feat: support for tools in OpenAIChatGenerator
( #8666 )
...
* move chatmsg>openai conversion to chatmsg dataclass
* implementation and tests cleanup
* release note
* try fixing azure chat generator
* add serde test for toolinvoker
* small fix
2024-12-20 14:20:54 +00:00
Stefano Fiorucci
7dcbf25bd7
feat: add Tool Invoker component ( #8664 )
...
* port toolinvoker
* release note
2024-12-20 14:02:42 +01:00