init(model:tools:instructions:)
Start a new session in blank slate state with instructions builder.
Declaration
convenience init(model: SystemLanguageModel = .default, tools: [any Tool] = [], @InstructionsBuilder instructions: () throws -> Instructions) rethrowsDiscussion
Parameters
model: The language model to use for this session.
tools: Tools to make available to the model for this session.
instructions: Instructions that control the model’s behavior.