nodeLLMRequestStructured

A node that appends a user text message to the prompt and requests a structured response from the LLM using the provided config.

Parameters

name

Optional node name, defaults to delegate's property name.

config

Configuration describing the expected structured output format.

fixingParser

An optional parser used to attempt recovery if the LLM returns malformed structured output.


inline fun <T> nodeLLMRequestStructured(name: String? = null, examples: List<T> = emptyList(), fixingParser: StructureFixingParser? = null): AIAgentNodeDelegate<String, Result<StructuredResponse<T>>>(source)

A node that appends a user text message to the prompt and requests a structured response from the LLM, inferring the output schema from the reified type T.

Parameters

name

Optional node name, defaults to delegate's property name.

examples

Optional list of example values of type T to guide the LLM's output.

fixingParser

An optional parser used to attempt recovery if the LLM returns malformed structured output.