llmRequestStructured

Sends a structured request to a language model and returns a corresponding response node.

Return

A node that represents the result of the structured language model request, containing a string input and a structured response of type Result<StructuredResponse<T>>.

Parameters

name

An optional name for the request node. Defaults to null.

config

The configuration for the structured request that defines the input and expected output types.

fixingParser

An optional parser for fixing or refining the structure of the response. Defaults to null.