xebia-functional / xef

Building applications with LLMs through composability, in Kotlin, Scala, ...

Home Page:https://xef.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flatten messages in PromptBuilder

javipacheco opened this issue · comments

When we are creating different messages with the same role, we should be able to flatten these messages to reduce the number of tokens sent to the AI