public Unit of(List<PromptMessage> messages, List<String> inputVariables)| Name | Type | Description |
|---|---|---|
messages* | List<PromptMessage> | the prompt messages |
inputVariables* | List<String> | the input variable names (optional) |
Creates a [Prompt] directly from a list of messages.
Creates a [Prompt] directly from a list of messages. Useful for testing or when constructing prompts programmatically without pulling from the hub.