* Add warm_up() method to OpenAIChatGenerator
- Add warm_up() method that calls warm_up_tools()
- Add _is_warmed_up flag for idempotency
- Import warm_up_tools from haystack.tools
- Add comprehensive tests:
- test_warm_up_with_tools: single tool case
- test_warm_up_with_no_tools: no tools case
- test_warm_up_with_multiple_tools: multiple tools case
- All tests passing
Part of issue #9907
* Add warm_up() method to AzureOpenAIChatGenerator
- Add warm_up() method that calls warm_up_tools()
- Add _is_warmed_up flag for idempotency
- Import warm_up_tools from haystack.tools
- Add comprehensive tests:
- test_warm_up_with_tools: single tool case
- test_warm_up_with_no_tools: no tools case
- test_warm_up_with_multiple_tools: multiple tools case
- All tests passing
Part of issue #9907
* Add warm_up() method to HuggingFaceAPIChatGenerator
- Add warm_up() method that calls warm_up_tools()
- Add _is_warmed_up flag for idempotency
- Import warm_up_tools from haystack.tools
- Add comprehensive tests:
- test_warm_up_with_tools: single tool case
- test_warm_up_with_no_tools: no tools case
- test_warm_up_with_multiple_tools: multiple tools case
- All tests passing
Part of issue #9907
* Enhance warm_up() method in HuggingFaceLocalChatGenerator
- Add warm_up_tools import from haystack.tools.utils
- Add _is_warmed_up flag for idempotency
- Enhance existing warm_up() to also warm up tools
- Preserve existing pipeline initialization logic
- Add comprehensive tests:
- test_warm_up_with_tools: single tool case
- test_warm_up_with_no_tools: no tools case
- test_warm_up_with_multiple_tools: multiple tools case
Part of issue #9907
* Add warm_up() method to FallbackChatGenerator
- Add warm_up() method that delegates to underlying generators
- Uses hasattr check to gracefully handle generators without warm_up
- Add comprehensive tests:
- test_warm_up_delegates_to_generators: verify delegation works
- test_warm_up_with_no_warm_up_method: handle missing warm_up gracefully
- test_warm_up_mixed_generators: mix of generators with/without warm_up
- All tests passing
Part of issue #9907
* docs: Add release notes for warm_up() feature
---------
Co-authored-by: HamidOna13 <abdulhamid.onawole@aizatron.com>
* add generation_kwargs to run methods of Agent
* include test generation_kwargs in agent unit tests
* fix typo
Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com>
* Update haystack/components/agents/agent.py
Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com>
* Update haystack/components/agents/agent.py
Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com>
* create separate unit test for generation kwargs with agent
* fix formatting
* add back generation_kwargs
* add release notes
---------
Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com>
* Update documentation and remove unused assets. Enhanced the 'agents' and 'components' sections with clearer descriptions and examples. Removed obsolete images and updated links for better navigation. Adjusted formatting for consistency across various documentation pages.
* remove dependency
* address comments
* delete more empty pages
* broken link
* unduplicate headings
* alphabetical components nav
* Tools warmup initial
* Fix lint
* Improve pydocs for warm_up
* Further improve pydocs for warm_up
* No need to warm_up tools in Agent as they are warmed up by ToolInvoker
* Simplify Toolset __add__ logic
* Simplify _ToolsetWrapper
* Add unit tests
* ToolInvoker warm_up
* Improve Tool pydoc
* Resurrect serde_utils.py
* Update tests
* Call ToolInvoker warm_up in agent warm_up
* Lint
* Move warm_up tests to ToolInvoker
* Update tests
* Remove tests
* Pydoc nit
* PR feedback
* ToolInvoker's warm_up is idempotent
* Add reno note
* Update releasenotes/notes/tools-warm-up-support-e16cc043fed3653f.yaml
Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com>
* Make ComponentTool warm_up idempotent
* Update warm_up_tools to use ToolsType
* Linting
* Add warm up test for mixed list of Tool/Toolset instances
---------
Co-authored-by: Sebastian Husch Lee <10526848+sjrl@users.noreply.github.com>