baml icon indicating copy to clipboard operation
baml copied to clipboard

Improve ergonomics of ClientRegistry

Open hellovai opened this issue 1 year ago • 1 comments

Currently users have to do a lot of work to use dynamic clients.

instead we could look into a more type-safe approach such as:

cr = b.ClientRegistry()

cr.ExistingClient.ExtractResume(...)

client = cr.add_llm_client(...)
client.ExtractResume(...)

client = cr.get_llm_client(...)
client.ExtractResume(...)

hellovai avatar Jul 09 '24 17:07 hellovai

one more note here from discord -- people want to be able to change 1 parameter easily

aaronvg avatar Apr 09 '25 17:04 aaronvg