Contents

init(model:dynamicInstructions:history:)

Create a session with dynamic instructions.

Declaration

convenience init(model: some LanguageModel = SystemLanguageModel.default, dynamicInstructions: sending some DynamicInstructions, history: some Collection<Transcript.Entry> = [])

Mentioned in

Discussion

  • Parameters

    • dynamicInstructions: The instructions to use for this session.

    • history: Transcript entries without the initial instructions, since that’s defined by the profile.

See Also

Creating a session with a dynamic profile