CompleteRequestBuilder

DSL builder for constructing CompleteRequest instances.

This builder provides methods to configure completion requests for prompts or resource templates. Both argument and ref are required; context is optional.

See also

Functions

Link copied to clipboard
fun argument(name: String, value: String)

Sets the argument for completion.

Link copied to clipboard
fun context(block: MutableMap<String, String>.() -> Unit)

Sets additional context for the completion request using a DSL builder.

fun context(arguments: Map<String, String>)

Sets additional context for the completion request using a Map.

Link copied to clipboard
fun meta(builderAction: RequestMetaBuilder.() -> Unit)

Sets request metadata using a DSL builder.

Link copied to clipboard
fun ref(value: Reference)

Sets the reference to a prompt or resource template.