SwiftstructAgentSessionKit

struct AgentSessionKit.AgentSessionArtifact

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 25

  1. varstatic var nonSyncableStableID: String { get }
  2. fieldlet content: AgentSessionKit.AgentSessionArtifactContent?
  3. fieldlet createdAt: Foundation.Date
  4. fieldlet entityLocalIdentifier: String?
  5. fieldlet eventId: String?+0x20
  6. fieldlet fileName: String?
  7. fieldlet id: String+0x0
  8. fieldlet isOriginatingDevice: Bool
  9. fieldlet metadata: AgentSessionKit.AgentSessionArtifactMetadata
  10. fieldlet sessionId: String+0x10
  11. fieldlet versionNumber: Int
  12. funcfetchMediaAsset(mediaLibraries: [String : () -> PHPhotoLibrary]) async throws -> AgentSessionKit.MediaAssetInfo?
  13. funcloadContent() async throws -> AgentSessionKit.AgentSessionArtifact
  14. funcloadContentWithProgress() -> AgentSessionKit.AgentSessionArtifact.ArtifactContentDownload
  15. funcopenFile() async throws -> NSFileHandle
  16. funcopenFileURL() async throws -> Foundation.URL
  17. initinit(id: String, sessionId: String, eventId: String?, content: AgentSessionKit.AgentSessionArtifactContent?, metadata: AgentSessionKit.AgentSessionArtifactMetadata, versionNumber: Int, createdAt: Foundation.Date) -> AgentSessionKit.AgentSessionArtifact
  18. initinit(id: String, sessionId: String, eventId: String?, content: AgentSessionKit.AgentSessionArtifactContent?, metadata: AgentSessionKit.AgentSessionArtifactMetadata, fileName: String?, versionNumber: Int, createdAt: Foundation.Date, entityLocalIdentifier: String?, isOriginatingDevice: Bool) -> AgentSessionKit.AgentSessionArtifact
  19. initinit(id: String, sessionId: String, eventId: String?, content: AgentSessionKit.AgentSessionArtifactContent?, metadata: AgentSessionKit.AgentSessionArtifactMetadata, fileName: String?, versionNumber: Int, createdAt: Foundation.Date) -> AgentSessionKit.AgentSessionArtifact
  20. initinit(sessionId: String, eventId: String?, content: AgentSessionKit.AgentSessionArtifactContent, metadata: AgentSessionKit.AgentSessionArtifactMetadata, versionNumber: Int?) -> AgentSessionKit.AgentSessionArtifact
  21. typealiastypealias ID = Swift.String
  22. varvar isLoaded: Bool { get }
  23. varvar originEntityIdentifierValue: ToolKit.TypedValue.EntityIdentifierValue? { get }
  24. varvar resolvedEntityIdentifierValue: ToolKit.TypedValue.EntityIdentifierValue? { get }
  25. varvar uri: AgentSessionKit.AgentSessionArtifactURI { get }
struct AgentSessionArtifact {
    struct ArtifactContentDownload {
        let progress: __C.NSProgress
        let task: Swift.Task<AgentSessionKit.AgentSessionArtifact, any Swift.Error>
    }
    enum CodingKeys {
        case id
        case sessionId
        case eventId
        case content
        case metadata
        case versionNumber
        case createdAt
        case fileName
        case entityLocalIdentifier
        case isOriginatingDevice
    }
    let id: Swift.String
    let sessionId: Swift.String
    let eventId: Swift.String?
    let content: AgentSessionKit.AgentSessionArtifactContent?
    let metadata: AgentSessionKit.AgentSessionArtifactMetadata
    let versionNumber: Swift.Int
    let createdAt: Foundation.Date
    let fileName: Swift.String?
    let entityLocalIdentifier: Swift.String?
    let isOriginatingDevice: Swift.Bool

    init(id: Swift.String, sessionId: Swift.String, eventId: Swift.String?, content: AgentSessionKit.AgentSessionArtifactContent?, metadata: AgentSessionKit.AgentSessionArtifactMetadata, versionNumber: Swift.Int, createdAt: Foundation.Date)
    init(id: Swift.String, sessionId: Swift.String, eventId: Swift.String?, content: AgentSessionKit.AgentSessionArtifactContent?, metadata: AgentSessionKit.AgentSessionArtifactMetadata, fileName: Swift.String?, versionNumber: Swift.Int, createdAt: Foundation.Date, entityLocalIdentifier: Swift.String?, isOriginatingDevice: Swift.Bool)
    init(id: Swift.String, sessionId: Swift.String, eventId: Swift.String?, content: AgentSessionKit.AgentSessionArtifactContent?, metadata: AgentSessionKit.AgentSessionArtifactMetadata, fileName: Swift.String?, versionNumber: Swift.Int, createdAt: Foundation.Date)
    init(sessionId: Swift.String, eventId: Swift.String?, content: AgentSessionKit.AgentSessionArtifactContent, metadata: AgentSessionKit.AgentSessionArtifactMetadata, versionNumber: Swift.Int?)

    var isLoaded: Swift.Bool {
        get
    }
    var originEntityIdentifierValue: ToolKit.TypedValue.EntityIdentifierValue? {
        get
    }
    var resolvedEntityIdentifierValue: ToolKit.TypedValue.EntityIdentifierValue? {
        get
    }
    var uri: AgentSessionKit.AgentSessionArtifactURI {
        get
    }

    func loadContent() async throws -> AgentSessionKit.AgentSessionArtifact
    func openFileURL() async throws -> Foundation.URL
    func fetchMediaAsset(mediaLibraries: [Swift.String : () -> __C.PHPhotoLibrary]) async throws -> AgentSessionKit.MediaAssetInfo?
    func loadContentWithProgress() -> AgentSessionKit.AgentSessionArtifact.ArtifactContentDownload
    func openFile() async throws -> __C.NSFileHandle

    static var nonSyncableStableID: Swift.String {
        get
    }
}