类 AnthropicToolsHelper

java.lang.Object
io.agentscope.core.formatter.anthropic.AnthropicToolsHelper

public class AnthropicToolsHelper extends Object
Helper class for tool registration and option application for Anthropic API.
  • 构造器详细资料

    • AnthropicToolsHelper

      public AnthropicToolsHelper()
  • 方法详细资料

    • applyTools

      public static void applyTools(com.anthropic.models.messages.MessageCreateParams.Builder builder, List<ToolSchema> tools, GenerateOptions options)
      Apply tools to the message create params builder.
      参数:
      builder - The message create params builder
      tools - List of tool schemas
      options - Generate options containing tool choice
    • applyOptions

      public static void applyOptions(com.anthropic.models.messages.MessageCreateParams.Builder builder, GenerateOptions options, GenerateOptions defaultOptions)
      Apply generation options to the builder.
      参数:
      builder - The message create params builder
      options - Generate options
      defaultOptions - Default generate options