Release 1.2.5

github-actions[bot] committed Sep 10, 2026 at 20:06 UTC 658d6d36f3cc62bc450ec6604bdd54f085da2bd9
2 files changed +83 -2
Package.swift
+2 -2
@@ -24,9 +24,9 @@ let packageRoot = URL(fileURLWithPath: #filePath).deletingLastPathComponent()
24 let localFrameworkPath = "OndeFramework.xcframework"
25 let localFrameworkAbsolutePath = packageRoot.appendingPathComponent(localFrameworkPath).path
26 let releaseFrameworkURL =
27 - "https://github.com/ondeinference/onde/releases/download/1.2.4/OndeFramework.xcframework.zip"
27 + "https://github.com/ondeinference/onde/releases/download/1.2.5/OndeFramework.xcframework.zip"
28 let releaseFrameworkChecksum =
29 - "baa1001b16646f02b548dab41857b55e35535d3b57e32ce20bdfebad76809c0e"
29 + "250260d331d7caf36b7ea6aad1726df90adb35324ded56ea8d181c0cbe780a75"
30
31 let ondeFrameworkTarget: Target
32 if FileManager.default.fileExists(atPath: localFrameworkAbsolutePath) {
Sources/Onde/onde.swift
+81
@@ -2459,6 +2459,87 @@ public func FfiConverterTypeInferenceError_lower(_ value: InferenceError) -> Rus
2459 return FfiConverterTypeInferenceError.lower(value)
2460 }
2461
2462 +// Note that we don't yet support `indirect` for enums.
2463 +// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
2464 +/**
2465 + * Whether the loaded model can reliably produce structured tool calls.
2466 + *
2467 + * `Unknown` is used for custom model repositories that Onde does not ship in
2468 + * its built-in catalogue. Callers may choose to try those models, but should
2469 + * surface that the capability has not been verified.
2470 + */
2471 +
2472 +public enum ToolCallingSupport: Equatable, Hashable {
2473 +
2474 + case supported
2475 + case unsupported
2476 + case unknown
2477 +
2478 +
2479 +
2480 +
2481 +
2482 +}
2483 +
2484 +#if compiler(>=6)
2485 +extension ToolCallingSupport: Sendable {}
2486 +#endif
2487 +
2488 +#if swift(>=5.8)
2489 +@_documentation(visibility: private)
2490 +#endif
2491 +public struct FfiConverterTypeToolCallingSupport: FfiConverterRustBuffer {
2492 + typealias SwiftType = ToolCallingSupport
2493 +
2494 + public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ToolCallingSupport {
2495 + let variant: Int32 = try readInt(&buf)
2496 + switch variant {
2497 +
2498 + case 1: return .supported
2499 +
2500 + case 2: return .unsupported
2501 +
2502 + case 3: return .unknown
2503 +
2504 + default: throw UniffiInternalError.unexpectedEnumCase
2505 + }
2506 + }
2507 +
2508 + public static func write(_ value: ToolCallingSupport, into buf: inout [UInt8]) {
2509 + switch value {
2510 +
2511 +
2512 + case .supported:
2513 + writeInt(&buf, Int32(1))
2514 +
2515 +
2516 + case .unsupported:
2517 + writeInt(&buf, Int32(2))
2518 +
2519 +
2520 + case .unknown:
2521 + writeInt(&buf, Int32(3))
2522 +
2523 + }
2524 + }
2525 +}
2526 +
2527 +
2528 +#if swift(>=5.8)
2529 +@_documentation(visibility: private)
2530 +#endif
2531 +public func FfiConverterTypeToolCallingSupport_lift(_ buf: RustBuffer) throws -> ToolCallingSupport {
2532 + return try FfiConverterTypeToolCallingSupport.lift(buf)
2533 +}
2534 +
2535 +#if swift(>=5.8)
2536 +@_documentation(visibility: private)
2537 +#endif
2538 +public func FfiConverterTypeToolCallingSupport_lower(_ value: ToolCallingSupport) -> RustBuffer {
2539 + return FfiConverterTypeToolCallingSupport.lower(value)
2540 +}
2541 +
2542 +
2543
2544
2545