Contents

init(_:)

Creates a prompt from the content of a builder closure.

Declaration

init(@PromptBuilder _ content: () throws -> Prompt) rethrows

Parameters

  • content:

    A closure that produces the prompt to send to the model.

See Also

Creating a prompt