Skip to content

Conversation

@ThomasVitale
Copy link
Contributor

  • Update OpenAiChatModel to use the new ToolCallingManager API, while ensuring full API backward compatibility.
  • Introduce Builder to instantiate a new OpenAiChatModel since the number of overloaded constructors is growing too big.
  • Update documentation about tool calling and OpenAI support for that.
  • Add extra validation to ensure the uniqueness of tool names when aggregated from different sources.

@ThomasVitale ThomasVitale marked this pull request as ready for review February 7, 2025 18:40
- Update OpenAiChatModel to use the new ToolCallingManager API, while ensuring full API backward compatibility.
- Introduce Builder to instantiate a new OpenAiChatModel since the number of overloaded constructors is growing too big.
- Update documentation about tool calling and OpenAI support for that.
- Add extra validation to ensure the uniqueness of tool names when aggregated from different sources.
- Ensure consistent merging of options, following Spring Boot strategy.

Signed-off-by: Thomas Vitale <[email protected]>
@tzolov tzolov self-assigned this Feb 10, 2025
@tzolov tzolov added this to the 1.0.0-M6 milestone Feb 10, 2025
@markpollack
Copy link
Member

relates to #2207 epic

// We do not pass the 'defaultOptions' to the AbstractToolSupport,
// because it modifies them. We are using ToolCallingManager instead,
// so we just pass empty options here.
super(null, OpenAiChatOptions.builder().build(), List.of());
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need to extend AbstractToolCallSupport class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We kept that to ensure API backward compatibility, but it will be removed right after M6 is released.

@tzolov
Copy link
Contributor

tzolov commented Feb 11, 2025

Rebased and merged at 52198ed

@tzolov tzolov closed this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants