builder

fun builder(id: String, clock: Clock = Clock.System): PromptBuilder(source)

Constructs a new PromptBuilder instance for creating and configuring a Prompt.

Return

A new instance of PromptBuilder with the specified ID and clock.

Parameters

id

The unique identifier for the prompt.

clock

The clock used for timestamping or time-related operations. Defaults to Clock.System if not provided.