@@ -78,15 +78,15 @@ public struct Tool: Sendable {
7878  let  codeExecution :  CodeExecution ? 
7979  let  urlContext :  URLContext ? 
8080
81- init ( functionDeclarations:  [ FunctionDeclaration ] ? =  nil , 
82- googleSearch:  GoogleSearch ? =  nil , 
83- urlContext:  URLContext ? =  nil , 
84- codeExecution:  CodeExecution ? =  nil )  { 
85- self . functionDeclarations =  functionDeclarations
86- self . googleSearch =  googleSearch
87- self . urlContext =  urlContext
88- self . codeExecution =  codeExecution
89- } 
81+    init ( functionDeclarations:  [ FunctionDeclaration ] ? =  nil , 
82+         googleSearch:  GoogleSearch ? =  nil , 
83+         urlContext:  URLContext ? =  nil , 
84+         codeExecution:  CodeExecution ? =  nil )  { 
85+      self . functionDeclarations =  functionDeclarations
86+      self . googleSearch =  googleSearch
87+      self . urlContext =  urlContext
88+      self . codeExecution =  codeExecution
89+    } 
9090
9191  /// Creates a tool that allows the model to perform function calling.
9292  ///
@@ -131,9 +131,8 @@ self.codeExecution = codeExecution
131131    return  self . init ( googleSearch:  googleSearch) 
132132  } 
133133
134- 
135-   public  static  func  urlContext( _ urlContext:  URLContext  =  URLContext ( ) )  ->  Tool  { 
136-     return  self . init ( urlContext:  urlContext) 
134+   public  static  func  urlContext( )  ->  Tool  { 
135+     return  self . init ( urlContext:  URLContext ( ) ) 
137136  } 
138137
139138  /// Creates a tool that allows the model to execute code.
0 commit comments