Hi all, I'm trying to implement an agent that pars...
# koog-agentic-framework
m
Hi all, I'm trying to implement an agent that parses a csv with an unknown format to some data classes. Everything works fine with very small data sets, but they get a bit longer, the output of the LLM is truncated and the json fails. I've tried different antropomorphic models with same results. My agent is simple:
Copy code
val 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
        },
    )
r
Try to provide
examples
as an argument to
requestLLMStructured