@@ -78,15 +78,15 @@ public struct Tool: Sendable {
78
78
let codeExecution : CodeExecution ?
79
79
let urlContext : URLContext ?
80
80
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
+ }
90
90
91
91
/// Creates a tool that allows the model to perform function calling.
92
92
///
@@ -131,9 +131,8 @@ self.codeExecution = codeExecution
131
131
return self . init ( googleSearch: googleSearch)
132
132
}
133
133
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 ( ) )
137
136
}
138
137
139
138
/// Creates a tool that allows the model to execute code.
0 commit comments