https://www.boundaryml.com logo
🟡 Architecture Question on Function/Tool Agent
# questions
j
I have a high-level function / tool agent architecture question, will post the details once bammy threads me
Essentially, I'm containing all my AI-powered calls in baml_src and handling them in an entirely deterministic workflow. Am I thinking about this the right way? Could I bring in a non-baml agent to orchestrate this? Do I even need to? (in an express.js backend api) - In baml_src, I have a file
Listing.baml
. in this file, I have a handful of functions defined. - ExtractListing uses web_search to go pull some details from an html web page, and outputs it to a Listing class - GenerateWhereClause takes the Listing class as an input, and attempts to generate a SQL where clause - ReviewParcelQueryResult takes a look at a SQL query response, and based on the output determines whether to accept or retry generating a new where clause - outside of baml_src, I have a workflow that calls these in succession: - extract the listing attributes - generate the where clause - (outside of BAML context) Execute a SQL query with the generated where clause - review the results, and determine whether to go back and run generate again
a
yes this is a very common architecture!
j
ooooo00ooo I've made it to advanced prompting 🙌
TYVM, will take a look!
a
yeah you just unlocked this new tier
j
do I get a sticker? looks like 3.1.4. (Agents) is the ticket for orchestrating functions within BAML
a
haha once we add custom stickers you will