Mateu
12/02/2025, 3:17 PMval agent = AIAgent<String, AiExtractedData>(
systemPrompt = systemPrompt,
promptExecutor = promptExecutor,
llmModel = llmModel,
strategy = functionalStrategy { input -> // Define the agent logic
val response = requestLLMStructured<AiExtractedData>(
input,
)
response.getOrThrow().structure
},
)rcd27
12/03/2025, 8:27 PMexamples as an argument to requestLLMStructured