SwiftprotocolContentKit

protocol ContentKit.WFGenerativeSessionProviding

Members 13

  1. funcmethod descriptor for generateTextResponse(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Bool) async throws -> String
  2. funcmethod descriptor for getReferencedWebResults() async -> [WFModelReferencedWebResult]
  3. funcmethod descriptor for getTokenCount(for: ContentKit.TokenRole) throws -> Int
  4. funcmethod descriptor for registerDocuments([Foundation.URL]) async throws -> ()
  5. funcmethod descriptor for writeAsBoolean(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Bool) async throws -> ContentKit.BooleanOutput
  6. funcmethod descriptor for writeAsDate(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Bool) async throws -> ContentKit.DateOutput
  7. funcmethod descriptor for writeAsDictionary(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Bool) async throws -> ContentKit.DictionaryOutput
  8. funcmethod descriptor for writeAsNumber(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Bool) async throws -> ContentKit.SimpleNumberOutput
  9. funcmethod descriptor for writeAsTextOrEntity(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Bool) async throws -> ContentKit.TextOrEntityOutput
  10. funcmethod descriptor for writeEntityList(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Bool) async throws -> ContentKit.EntitiesOutput
  11. funcmethod descriptor for writeNewList(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Bool) async throws -> ContentKit.ListOutput
  12. varvar contentAdvisories: [String] { get }
  13. varvar conversation: ContentKit.WFAskLLMConversation { get }
protocol WFGenerativeSessionProviding {
    var contentAdvisories: [Swift.String] {
        get
    }
    var conversation: ContentKit.WFAskLLMConversation {
        get
    }

    func generateTextResponse(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Swift.Bool) async throws -> Swift.String
    func writeNewList(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Swift.Bool) async throws -> ContentKit.ListOutput
    func writeEntityList(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Swift.Bool) async throws -> ContentKit.EntitiesOutput
    func writeAsBoolean(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Swift.Bool) async throws -> ContentKit.BooleanOutput
    func writeAsDictionary(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Swift.Bool) async throws -> ContentKit.DictionaryOutput
    func writeAsNumber(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Swift.Bool) async throws -> ContentKit.SimpleNumberOutput
    func writeAsTextOrEntity(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Swift.Bool) async throws -> ContentKit.TextOrEntityOutput
    func writeAsDate(userPrompt: ContentKit.WFAskLLMUserPrompt?, isFinalRequest: Swift.Bool) async throws -> ContentKit.DateOutput
    func registerDocuments(_: [Foundation.URL]) async throws
    func getTokenCount(for: ContentKit.TokenRole) throws -> Swift.Int
    func getReferencedWebResults() async -> [__C.WFModelReferencedWebResult]
}