类 AnthropicToolsHelper
java.lang.Object
io.agentscope.core.formatter.anthropic.AnthropicToolsHelper
Helper class for tool registration and option application for Anthropic API.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidapplyOptions(com.anthropic.models.messages.MessageCreateParams.Builder builder, GenerateOptions options, GenerateOptions defaultOptions) Apply generation options to the builder.static voidapplyTools(com.anthropic.models.messages.MessageCreateParams.Builder builder, List<ToolSchema> tools, GenerateOptions options) Apply tools to the message create params builder.
-
构造器详细资料
-
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 buildertools- List of tool schemasoptions- 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 builderoptions- Generate optionsdefaultOptions- Default generate options
-