Skip to content

Commit d4ff8ad

Browse files
committed
fix lint
1 parent 35455c4 commit d4ff8ad

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let package = Package(
1313
// Products define the executables and libraries a package produces, making them visible to other packages.
1414
.library(
1515
name: "FunctionCalling-FirebaseVertexAI",
16-
targets: ["FunctionCalling-FirebaseVertexAI"]),
16+
targets: ["FunctionCalling-FirebaseVertexAI"])
1717
],
1818
dependencies: [
1919
.package(url: "https://github.com/fumito-ito/FunctionCalling", from: "0.5.0"),
@@ -31,6 +31,6 @@ let package = Package(
3131
),
3232
.testTarget(
3333
name: "FunctionCalling-FirebaseVertexAITests",
34-
dependencies: ["FunctionCalling-FirebaseVertexAI"]),
34+
dependencies: ["FunctionCalling-FirebaseVertexAI"])
3535
]
3636
)

Sources/FunctionCalling-FirebaseVertexAI/FunctionCalling_FirebaseVertexAI.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ import Foundation
1111

1212
extension ToolContainer {
1313
public var firebaseVertexAITools: [FirebaseVertexAI.Tool] {
14-
get {
15-
[
16-
FirebaseVertexAI.Tool(
17-
functionDeclarations: allTools?.compactMap { $0.toFunctionDeclaration }
18-
)
19-
]
20-
}
14+
[
15+
FirebaseVertexAI.Tool(
16+
functionDeclarations: allTools?.compactMap { $0.toFunctionDeclaration }
17+
)
18+
]
2119
}
2220
}

Tests/FunctionCalling-FirebaseVertexAITests/FunctionCalling_FirebaseVertexAITests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import XCTest
22
@testable import FunctionCalling_FirebaseVertexAI
33
import FunctionCalling
44

5+
// swiftlint:disable:next type_name
56
final class FunctionCalling_FirebaseVertexAITests: XCTestCase {
67
@FunctionCalling(service: .claude)
78
struct FunctionContainer {
@@ -29,6 +30,7 @@ final class FunctionCalling_FirebaseVertexAITests: XCTestCase {
2930

3031
let getWeather = try XCTUnwrap(functions.first)
3132
XCTAssertEqual(getWeather.getName(), "getWeather")
33+
// swiftlint:disable:next line_length
3234
XCTAssertEqual(getWeather.getDescription(), "Return current weather of location that passed by the argument- Parameter location: location that I want to know how the weather- Returns: string of weather")
3335

3436
let getStock = try XCTUnwrap(functions.last)

0 commit comments

Comments
 (0)