Skip to content

Commit b38dc68

Browse files
committed
Removed AppStateProtocol until it becomes more than Encodable & Sendable
1 parent 448b9d2 commit b38dc68

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Sources/CompilerSwiftAI/Function Calling/AppStateProtocol.swift

Lines changed: 0 additions & 5 deletions
This file was deleted.

Sources/CompilerSwiftAI/Function Calling/CompilerClient+Functions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public extension CompilerClient {
1616
/// - state: Current state of your app (as defined by the developer, only needs to conform to Encodable and Sendable)
1717
/// - token: Authorization token
1818
/// - Returns: An array of functions with Parameters that are both Decodable and Sendable
19-
func processFunction<State: AppStateProtocol, FunctionType: Decodable & Sendable>(
19+
func processFunction<State: Encodable & Sendable, FunctionType: Decodable & Sendable>(
2020
prompt: String,
2121
for state: State
2222
) async throws -> [FunctionType] {

0 commit comments

Comments
 (0)