nodeLLMRequestStructured
fun <T> AIAgentSubgraphBuilderBase<*, *>.nodeLLMRequestStructured(name: String? = null, structure: StructuredData<T>, retries: Int, fixingModel: LLModel): AIAgentNodeDelegateBase<String, Result<StructuredResponse<T>>>(source)
A node that appends a user message to the LLM prompt and requests structured data from the LLM with error correction capabilities.
Parameters
name
Optional node name.
structure
Definition of expected output format and parsing logic.
retries
Number of retry attempts for failed generations.
fixingModel
LLM used for error correction.