Skip to content

Commit 448b9d2

Browse files
committed
colloquialDescription->colloquialResponse to match server name
1 parent a6e632d commit 448b9d2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/CompilerSwiftAI/Function Calling/Function.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public struct Function<Parameters: Decodable & Sendable>: FunctionCallProtocol {
55
private enum CodingKeys: String, CodingKey {
66
case id = "function"
77
case parameters
8-
case colloquialDescription = "colloquial_response"
8+
case colloquialResponse = "colloquial_response"
99
}
1010

1111
/// Function name
@@ -15,11 +15,11 @@ public struct Function<Parameters: Decodable & Sendable>: FunctionCallProtocol {
1515
public let parameters: Parameters?
1616

1717
/// The description to show the user while this function is being executed.
18-
public let colloquialDescription: String
18+
public let colloquialResponse: String
1919

20-
public init(id: String, parameters: Parameters?, colloquialDescription: String) {
20+
public init(id: String, parameters: Parameters?, colloquialResponse: String) {
2121
self.id = id
2222
self.parameters = parameters
23-
self.colloquialDescription = colloquialDescription
23+
self.colloquialResponse = colloquialResponse
2424
}
2525
}

Sources/CompilerSwiftAI/Function Calling/FunctionCallProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ public protocol FunctionCallProtocol: Decodable & Sendable {
1212
var parameters: Parameters { get }
1313

1414
/// The description to show the user while this function is being executed.
15-
var colloquialDescription: String { get }
15+
var colloquialResponse: String { get }
1616
}

0 commit comments

Comments
 (0)