Skip to content

Commit 264a2b8

Browse files
committed
remove dependency for FunctionCalling
1 parent 4efab18 commit 264a2b8

File tree

9 files changed

+17
-346
lines changed

9 files changed

+17
-346
lines changed

Package.resolved

Lines changed: 0 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ let package = Package(
1616
targets: ["AnthropicSwiftSDK"]),
1717
],
1818
dependencies: [
19-
.package(url: "https://github.com/fumito-ito/FunctionCalling", from: "0.4.0"),
2019
.package(url: "https://github.com/fumito-ito/SwiftyJSONLines.git", from: "0.0.3")
2120
],
2221
targets: [
@@ -25,7 +24,6 @@ let package = Package(
2524
.target(
2625
name: "AnthropicSwiftSDK",
2726
dependencies: [
28-
.product(name: "FunctionCalling", package: "FunctionCalling"),
2927
.product(name: "SwiftyJSONLines", package: "SwiftyJSONLines")
3028
]
3129
),

Sources/AnthropicSwiftSDK/Entity/Batch/BatchParameter.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
// Created by 伊藤史 on 2024/10/18.
66
//
77

8-
import FunctionCalling
9-
108
public struct BatchParameter {
119
/// Input messages.
1210
public let messages: [Message]
@@ -38,7 +36,7 @@ public struct BatchParameter {
3836
/// Only sample from the top K options for each subsequent token.
3937
public let topK: Int?
4038
/// Definitions of tools that the model may use.
41-
public let toolContainer: ToolContainer?
39+
public let tools: [Tool]?
4240
/// How the model should use the provided tools. The model can use a specific tool, any available tool, or decide by itself.
4341
public let toolChoice: ToolChoice
4442

@@ -52,7 +50,7 @@ public struct BatchParameter {
5250
temperature: Double? = nil,
5351
topP: Double? = nil,
5452
topK: Int? = nil,
55-
toolContainer: ToolContainer? = nil,
53+
tools: [Tool]? = nil,
5654
toolChoice: ToolChoice = .auto
5755
) {
5856
self.messages = messages
@@ -64,7 +62,7 @@ public struct BatchParameter {
6462
self.temperature = temperature
6563
self.topP = topP
6664
self.topK = topK
67-
self.toolContainer = toolContainer
65+
self.tools = tools
6866
self.toolChoice = toolChoice
6967
}
7068
}

Sources/AnthropicSwiftSDK/MessageBatches.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import Foundation
9-
import FunctionCalling
109
import SwiftyJSONLines
1110

1211
/// A class responsible for managing message batches in the Anthropic API.

0 commit comments

Comments
 (0)