SwiftinitFoundationModelsFoundationModels.LanguageModelSession

init

FoundationModels.LanguageModelSession.__allocating_init(model: FoundationModels.PrivateCloudComputeLanguageModel, tools: [FoundationModels.Tool], instructions: () throws -> FoundationModels.Instructions) throws -> FoundationModels.LanguageModelSession

Structure

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

param{}

  1. 0model:
  2. 1tools:
  3. 2instructions:
    function() throws -> FoundationModels.Instructionsthrows