init(model:dynamicInstructions:history:)
Creates a session with dynamic instructions.
Declaration
convenience init(model: some LanguageModel = SystemLanguageModel.default, dynamicInstructions: sending some DynamicInstructions, history: some Collection<Transcript.Entry> = [])convenience init(model: some LanguageModel, dynamicInstructions: sending some DynamicInstructions, history: some Collection<Transcript.Entry> = [])Parameters
- dynamicInstructions:
The instructions to use for this session.
- history:
Transcript entries without the initial instructions, since that’s defined by the profile.
Mentioned in
See Also
Creating a session with a dynamic profile
init(profile:history:)LanguageModelSession.DynamicProfileLanguageModelSession.DynamicProfileModifierLanguageModelSession.ConditionalDynamicProfileLanguageModelSession.DynamicProfileBuilderLanguageModelSession.DynamicProfileModifierContentLanguageModelSession.ModifiedDynamicProfileLanguageModelSession.AnyDynamicProfileLanguageModelSession.Profile