init(_:)
Creates a prompt from the content of a builder closure.
Declaration
init(@PromptBuilder _ content: () throws -> Prompt) rethrowsParameters
- content:
A closure that produces the prompt to send to the model.
Creates a prompt from the content of a builder closure.
init(@PromptBuilder _ content: () throws -> Prompt) rethrowsA closure that produces the prompt to send to the model.