SwiftfuncSageSage.GenerativeExperiencesSession

complete

Sage.GenerativeExperiencesSession.complete<A where A: GenerativeFunctionsFoundation.Generable>(generating: A.Type, tools: [GenerativeFunctionsFoundation.Tool], tooling: [GenerativeFunctionsFoundation.Tooling], toolChoice: GenerativeFunctionsFoundation.ToolChoice, documents: [GenerativeModelsFoundation.DocumentResourceIdentifier], parameters: TokenGeneration.SamplingParameters, query: () throws -> PromptKit.Prompt) -> TokenGeneration.TokenStream<A>

Structure

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

generic{}

A

req{}

param{}

  1. 0generating:
    metatypeA.Type
    • basegenericParameterA
  2. 1tools:
  3. 2tooling:
  4. 3toolChoice:
  5. 4documents:
  6. 5parameters:
  7. 6query:
    function() throws -> PromptKit.Promptthrows

result{}

  • arggenericParameterA