mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
37 lines
884 B
Swift
37 lines
884 B
Swift
//
|
|
// ExtendPromptRequest.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
#if canImport(AnyCodable)
|
|
import AnyCodable
|
|
#endif
|
|
|
|
public struct ExtendPromptRequest: Codable, JSONEncodable, Hashable {
|
|
|
|
public var _extension: String
|
|
public var sessionId: String
|
|
|
|
public init(_extension: String, sessionId: String) {
|
|
self._extension = _extension
|
|
self.sessionId = sessionId
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case _extension = "extension"
|
|
case sessionId = "session_id"
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encode(_extension, forKey: ._extension)
|
|
try container.encode(sessionId, forKey: .sessionId)
|
|
}
|
|
}
|
|
|