Skip to content

Commit 314dbab

Browse files
authored
Add public init to ToolCall (#394)
1 parent d339a82 commit 314dbab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Libraries/MLXLMCommon/Tool/ToolCall.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public struct ToolCall: Hashable, Codable, Sendable {
1919

2020
/// The function to be called
2121
public let function: Function
22+
23+
public init(function: Function) {
24+
self.function = function
25+
}
2226
}
2327

2428
extension ToolCall {

0 commit comments

Comments
 (0)