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