Skip to content

Commit 00130a8

Browse files
feature: Adds eval
1 parent adde412 commit 00130a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/HaystackClient/HaystackClient.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ public class HaystackClient {
308308
return try await post(path: "invokeAction", grid: builder.toGrid())
309309
}
310310

311+
public func eval(expression: String) async throws -> Grid {
312+
return try await post(path: "eval", args: ["expr": expression])
313+
}
314+
311315
@discardableResult
312316
private func post(path: String, args: [String: any Val] = [:]) async throws -> Grid {
313317
let grid: Grid

0 commit comments

Comments
 (0)