nodeLLMSendMessageStructured
fun <T> nodeLLMSendMessageStructured(name: String? = null, config: StructuredRequestConfig<T>, fixingParser: StructureFixingParser? = null): AIAgentNodeDelegate<Message.User, Result<StructuredResponse<T>>>(source)
A node that appends a Message.User 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> nodeLLMSendMessageStructured(name: String? = null, examples: List<T> = emptyList(), fixingParser: StructureFixingParser? = null): AIAgentNodeDelegate<Message.User, Result<StructuredResponse<T>>>(source)
A node that appends a Message.User 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.