mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
36 lines
995 B
Swift
36 lines
995 B
Swift
//
|
|
// ToolCall.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ToolCall: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Arguments is the tool's own input object, passed through verbatim to whichever source owns it. */
|
|
public var arguments: [String: JSONValue]?
|
|
/** Name is the tool to run, exactly as GET /v1/tool reports it. */
|
|
public var name: String?
|
|
|
|
public init(arguments: [String: JSONValue]? = nil, name: String? = nil) {
|
|
self.arguments = arguments
|
|
self.name = name
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case arguments
|
|
case name
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(arguments, forKey: .arguments)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
}
|
|
}
|
|
|