Skip to content

Conversation

@tzolov
Copy link
Contributor

@tzolov tzolov commented Jan 26, 2025

Refactors the test codebase to use tools instead of functions.

  • Rename FunctionCallback to FunctionToolCallback
  • Rename FunctionCallingOptions to ToolCallingChatOptions
  • Update API methods from functions() to tools()
  • Deprecate function-related methods in favor of tool alternatives
  • Refactor MethodToolCallback implementation with improved builder pattern
  • Update all tests to use new tool-based APIs

@tzolov tzolov force-pushed the migrate-tests-from-function-to-tool-api branch from cd0efe5 to 8f5d7df Compare January 26, 2025 15:57
/**
* Create a default {@link ToolDefinition} instance from a {@link Method}.
*/
static ToolDefinition from(Method method) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be removed in favour of the new builder variant?

@markpollack markpollack added this to the 1.0.0-M6 milestone Jan 29, 2025
Refactors the test codebase to use tools instead of functions.

- Rename FunctionCallback to FunctionToolCallback
- Rename FunctionCallingOptions to ToolCallingChatOptions
- Update API methods from functions() to tools()
- Deprecate function-related methods in favor of tool alternatives
- Refactor MethodToolCallback implementation with improved builder pattern
- Update all tests to use new tool-based APIs
- Add funcs to tools migration guide

Signed-off-by: Christian Tzolov <[email protected]>
@tzolov tzolov force-pushed the migrate-tests-from-function-to-tool-api branch from 5cd31ae to f36b73c Compare January 29, 2025 18:51
@tzolov tzolov merged commit f36b73c into spring-projects:main Jan 29, 2025
1 of 2 checks passed
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.

3 participants