Daily Productive Sharing 1272 - AI Agents Need a New Syntax
One helpful tip per day:)
Vaibhav Gupta pointed out that React fundamentally changed web development because it posed the question: “What if we combined HTML and JavaScript into a single syntax?” This led to the creation of JSX—and later, TSX.
- They believe prompts should be easy to locate and read. Essentially, prompts are just strings like HTML, but they’re often highly dynamic, making them closer in nature to TSX.
- They argue that switching models should be extremely simple because models improve every week, and your application should keep up with that progress.
- They proposed a solution called BAML (Basic-Ass Machine Learning), which can humorously be explained to your boss as “Basically a Made-up Language.”
- The core principle of BAML is that an LLM prompt is essentially a function.
- In BAML, each prompt functions like a callable—it takes parameters and returns a specific type of result.
- Because BAML is a configuration file format, the BAML toolchain allows you to transpile it into native Python, TypeScript, Ruby, and other languages.
If you enjoy today's sharing, why not subscribe
Need a superb CV, please try our CV Consultation
Vaibhav Gupta 指出,React 彻底改变了网页开发,因为它提出了一个问题:“如果我们把 HTML 和 JavaScript 融合到同一种语法里,会怎样?”这催生了 JSX(以及后来的 TSX)。
- 他们认为,提示词(prompts)应当易于查找和阅读。本质上,它们就像 HTML 一样只是字符串,但往往非常动态,更像 TSX。
- 他们主张,切换模型应当非常简单。因为模型每周都在进步,你的应用也应该随之进步。
- 他们提出了一个方案:BAML(Basic-Ass Machine Learning),也可以幽默地向老板解释为“Basically a Made-up Language”。
- BAML 的核心原则是:LLM 的提示词就是函数。
- 在 BAML 中,每个提示词都是一个函数,它接受参数并返回某种类型的结果。
- 因为 BAML 是一种配置文件格式,所以 BAML 工具链允许你将 BAML 转译成原生 Python、Typescript、Ruby 等代码。
如果你喜欢的话,不妨直接订阅这份电子报 ⬇️