Skip to content

Conversation

quaff
Copy link
Contributor

@quaff quaff commented Oct 20, 2025

  1. use required arguments as parameters of builder().
  2. deprecate constructors.

See #4652

1. use required arguments as parameters of `builder()`.
2. deprecate constructors.

See spring-projects#4652

Signed-off-by: Yanming Zhou <[email protected]>
* evaluation
* @deprecated in favor of {@link #builder(ChatClient.Builder)}
*/
@Deprecated(forRemoval = true)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be removed instead of deprecated?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We keep the deprecations latest for one release (even for milestone) before removing.

* @deprecated in favor of {@link #builder(ChatClient.Builder)}
*/
@Deprecated
public FactCheckingEvaluator(ChatClient.Builder chatClientBuilder, @Nullable String evaluationPrompt) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be private instead of deprecated?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep this as is until we can completely remove it right after 1.1.0-M4.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realise this is the constructor used by the builder for instantiation. We should mark this private then.

@quaff
Copy link
Contributor Author

quaff commented Oct 20, 2025

@ericbottard Please review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants