Interface ToolReference.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ToolReference.Builder,ToolReference>, SdkBuilder<ToolReference.Builder,ToolReference>, SdkPojo
Enclosing class:
ToolReference

@Mutable @NotThreadSafe public static interface ToolReference.Builder extends SdkPojo, CopyableBuilder<ToolReference.Builder,ToolReference>
  • Method Details

    • type

      The type of tool reference.

      Parameters:
      type - The type of tool reference.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the tool. Must match the name of a tool declared in the top-level tool configuration.

      Parameters:
      name - The name of the tool. Must match the name of a tool declared in the top-level tool configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverName

      ToolReference.Builder serverName(String serverName)

      The name of the MCP server that provides the tool. Required when referencing an MCP tool.

      Parameters:
      serverName - The name of the MCP server that provides the tool. Required when referencing an MCP tool.
      Returns:
      Returns a reference to this object so that method calls can be chained together.