Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

99 lines
3.9 KiB
Swift

//
// AgentDetail.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct AgentDetail: Sendable, Codable, ParameterConvertible, Hashable {
public var avatar: String?
public var computeRef: String?
public var createdAt: String?
public var description: String?
public var emoji: String?
public var executionMode: String?
public var id: String?
/** Instructions is the agent's system prompt, verbatim, up to 32 KiB. It is the one field the list read withholds, because it is the agent's whole behaviour and a page of them would be a page of prompts. */
public var instructions: String?
public var model: String?
public var name: String?
/** RecentRuns is the agent's 20 most recent executions, newest first. It is a window on the history, not the history: the count beside it is `runs`. */
public var recentRuns: [AgentRunView]?
public var runs: Int64?
public var schedule: String?
public var serviceAccountId: String?
public var status: String?
public var tools: [String]?
public var updatedAt: String?
public init(avatar: String? = nil, computeRef: String? = nil, createdAt: String? = nil, description: String? = nil, emoji: String? = nil, executionMode: String? = nil, id: String? = nil, instructions: String? = nil, model: String? = nil, name: String? = nil, recentRuns: [AgentRunView]? = nil, runs: Int64? = nil, schedule: String? = nil, serviceAccountId: String? = nil, status: String? = nil, tools: [String]? = nil, updatedAt: String? = nil) {
self.avatar = avatar
self.computeRef = computeRef
self.createdAt = createdAt
self.description = description
self.emoji = emoji
self.executionMode = executionMode
self.id = id
self.instructions = instructions
self.model = model
self.name = name
self.recentRuns = recentRuns
self.runs = runs
self.schedule = schedule
self.serviceAccountId = serviceAccountId
self.status = status
self.tools = tools
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case avatar
case computeRef
case createdAt
case description
case emoji
case executionMode
case id
case instructions
case model
case name
case recentRuns
case runs
case schedule
case serviceAccountId
case status
case tools
case updatedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(avatar, forKey: .avatar)
try container.encodeIfPresent(computeRef, forKey: .computeRef)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(emoji, forKey: .emoji)
try container.encodeIfPresent(executionMode, forKey: .executionMode)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(instructions, forKey: .instructions)
try container.encodeIfPresent(model, forKey: .model)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(recentRuns, forKey: .recentRuns)
try container.encodeIfPresent(runs, forKey: .runs)
try container.encodeIfPresent(schedule, forKey: .schedule)
try container.encodeIfPresent(serviceAccountId, forKey: .serviceAccountId)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(tools, forKey: .tools)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension AgentDetail: Identifiable {}