File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Sources/CompilerSwiftAI/Function Calling Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments