Skip to content

Conversation

@apappascs
Copy link
Contributor

This commit enhances AnthropicChatOptions by:

  • Adding equals and hashCode methods for proper object comparison.
  • Implementing a deep copy() method, creating new instances of mutable collections (List, Set, Map, Metadata) to prevent shared state.
  • Adding AnthropicChatOptionsTests to verify copy(), builders, setters, and default values.

This commit enhances `AnthropicChatOptions` by:

- Adding `equals` and `hashCode` methods for proper object comparison.
- Implementing a deep `copy()` method, creating new instances of mutable collections (List, Set, Map, Metadata) to prevent shared state.
- Adding `AnthropicChatOptionsTests` to verify `copy()`, builders, setters, and default values.

Signed-off-by: Alexandros Pappas <[email protected]>
@apappascs apappascs force-pushed the feat/anthropic-chat-options-equals-hashcode-copy-tests branch from b98f2ab to 96c87d8 Compare March 1, 2025 15:58
@tzolov tzolov self-assigned this Mar 2, 2025
@tzolov tzolov added anthropic enhancement New feature or request labels Mar 2, 2025
@tzolov tzolov added this to the 1.0.0-M7 milestone Mar 2, 2025
@tzolov
Copy link
Contributor

tzolov commented Mar 2, 2025

Thanks @apappascs for fixing the copy idempotency issues and adding the test

@tzolov tzolov merged commit 092bbae into spring-projects:main Mar 2, 2025
2 checks passed
@apappascs
Copy link
Contributor Author

Thank you @tzolov for the review. I will create one pr for each model respectively

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

Labels

anthropic enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants