SwiftfuncGenerativeFunctionsPromptKit.ChatMessagesPrompt
withModel
PromptKit.ChatMessagesPrompt.withModel<A>(modelType: (any GenerativeFunctionsFoundation.ChatLanguageModelProvidingStreamable<Self.ChatStringStreamParameters == A>).Type, model: () throws -> any GenerativeFunctionsFoundation.ChatLanguageModelProvidingStreamable<Self.ChatStringStreamParameters == A>, chatParameters: () throws -> A) throws -> GenerativeFunctions.ChatMessagesPromptRunConfig.UntypedStreamable<A>
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
generic{}
A
param{}
- 0modelType:metatype
(any GenerativeFunctionsFoundation.ChatLanguageModelProvidingStreamable<Self.ChatStringStreamParameters == A>).Type- baseexistential
ChatLanguageModelProvidingStreamable- memberexistential
ChatLanguageModelProvidingStreamable
- 1model:function
() throws -> any GenerativeFunctionsFoundation.ChatLanguageModelProvidingStreamable<Self.ChatStringStreamParameters == A>throws- returnsexistential
ChatLanguageModelProvidingStreamable- memberexistential
ChatLanguageModelProvidingStreamable
- 2chatParameters:function
() throws -> Athrows- returnsgenericParameter
A
result{}
- arggenericParameter
A