https://www.boundaryml.com logo
Thread
# general
y
---------------------------------------------- I do have my own question. I'm creating a multiagent system and it seems to be most convenient to use separate BAML clients for each agent (I may split agents into own packages later). The only inconvenience I'm facing is that I'm passing in LLMMessage list and each agent than has to have own definition of LLMMessage:
Copy code
function DetermineFilesToEdit(messages: LLMMessage[]) -> FileList {
  client CustomGPT5Mini
  prompt #"
Is there a way to use a shared LLMMessage class between my BAML clients? Or am I misusing BAML by having 3 different BAML clients (one in each Agent module)?
v
we don't have the concept of import code from one
baml_src
into another
baml_src
yet, but there are 2 ways to do this today: 1. use a combined
baml_src
and then just have multiple generators 2. alternatively, you could just symlink the
foo.baml
file that contains the
LLMMessage
definition into all 3
baml_src
projects.
y
Will try. Thank you!