Skip to content

Instead of throwing a RuntimeError if a Component has not been warmed up just call warm_up at runtime #9966

Description

@sjrl

With recent PRs introducing new warm up methods to Tools, Toolsets (#9856), ChatGenerators (#9942) and Agents I think it's worth revisiting our design choice to raise an error when running an not warmed up component when using it standalone.

This is already a non-issue when using components in a pipeline since the pipeline will always call warm_up on it's member components at runtime. I think this is a better developer experience (to auto call warm_up at runtime) rather than make users have to explicitly call it when using components like Agent standalone.

This would also prevent recent PRs like #9942 and #9965 from being breaking changes when used in certain scenarios (e.g. using an OpenAIChatGenerator inside an Agent component without calling Agent.warm_up now throws an error).

Metadata

Metadata

Assignees

Labels

P1High priority, add to the next sprint

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions