SwiftstructAgentSessionKit
AgentSessionArtifact
struct AgentSessionKit.AgentSessionArtifact
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Identifiable
Members 25
- var
static var nonSyncableStableID: String { get } - field
let content: AgentSessionKit.AgentSessionArtifactContent? - field
let createdAt: Foundation.Date - field
let entityLocalIdentifier: String? - field
let eventId: String?+0x20 - field
let fileName: String? - field
let id: String+0x0 - field
let isOriginatingDevice: Bool - field
let metadata: AgentSessionKit.AgentSessionArtifactMetadata - field
let sessionId: String+0x10 - field
let versionNumber: Int - func
fetchMediaAsset(mediaLibraries: [String : () -> PHPhotoLibrary]) async throws -> AgentSessionKit.MediaAssetInfo? - func
loadContent() async throws -> AgentSessionKit.AgentSessionArtifact - func
loadContentWithProgress() -> AgentSessionKit.AgentSessionArtifact.ArtifactContentDownload - func
openFile() async throws -> NSFileHandle - func
openFileURL() async throws -> Foundation.URL - init
init(id: String, sessionId: String, eventId: String?, content: AgentSessionKit.AgentSessionArtifactContent?, metadata: AgentSessionKit.AgentSessionArtifactMetadata, versionNumber: Int, createdAt: Foundation.Date) -> AgentSessionKit.AgentSessionArtifact - init
init(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 - init
init(id: String, sessionId: String, eventId: String?, content: AgentSessionKit.AgentSessionArtifactContent?, metadata: AgentSessionKit.AgentSessionArtifactMetadata, fileName: String?, versionNumber: Int, createdAt: Foundation.Date) -> AgentSessionKit.AgentSessionArtifact - init
init(sessionId: String, eventId: String?, content: AgentSessionKit.AgentSessionArtifactContent, metadata: AgentSessionKit.AgentSessionArtifactMetadata, versionNumber: Int?) -> AgentSessionKit.AgentSessionArtifact - typealias
typealias ID = Swift.String - var
var isLoaded: Bool { get } - var
var originEntityIdentifierValue: ToolKit.TypedValue.EntityIdentifierValue? { get } - var
var resolvedEntityIdentifierValue: ToolKit.TypedValue.EntityIdentifierValue? { get } - var
var uri: AgentSessionKit.AgentSessionArtifactURI { get }
Header
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 } }