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{}
- conformance:genericParameter
A
param{}
- 0generating:metatype
A.Type- basegenericParameter
A
- 1tools:structSwift.Array
- 2tooling:structSwift.Array
- argexistential
Tooling
- 3toolChoice:
- 4documents:
- 5parameters:
- 6query:function
() throws -> PromptKit.Promptthrows
result{}
- arggenericParameter
A