Class StringToToolChoiceConverter

java.lang.Object
org.springframework.ai.model.anthropic.autoconfigure.StringToToolChoiceConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String, org.springframework.ai.anthropic.api.AnthropicApi.ToolChoice>

@Component @ConfigurationPropertiesBinding public class StringToToolChoiceConverter extends Object implements org.springframework.core.convert.converter.Converter<String, org.springframework.ai.anthropic.api.AnthropicApi.ToolChoice>
Converter to deserialize JSON string into AnthropicApi.ToolChoice. This converter is used by Spring Boot's configuration properties binding to convert string values from application properties into ToolChoice objects.
Since:
1.0.0
Author:
Christian Tzolov
  • Constructor Details

    • StringToToolChoiceConverter

      public StringToToolChoiceConverter()
  • Method Details

    • convert

      public org.springframework.ai.anthropic.api.AnthropicApi.ToolChoice convert(String source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String, org.springframework.ai.anthropic.api.AnthropicApi.ToolChoice>