AI驱动的软件在代码与模型之间分配控制权
AI驱动的软件采取了一条中间路线:确定性代码保留结构控制和精确计算,而模型仅在决策分支处处理语义判断——这不同于传统软件(完全显式)或智能体(完全由模型驱动)。
支持这项说法
使用Jev和LangGraph构建生产级智能体
TypeSafe的文档列出了构建软件的三种方式。传统软件由显式逻辑构成,每个分支都由人工编写且可审计,但也因此显得僵化。智能体则走向了另一个极端:一个模型在每一步都包揽决策,控制流从代码转移到了提示词中。AI驱动的软件采取了中间路线。代码保留结构并处理精确计算,而模型只出现在需要语义判断的分支处。
原始摘录
TypeSafe's docs lay out three ways to build software. Traditional software is made of explicit logic, with every branch written out by hand and auditable, but rigid as a result. Agents swung the other way: one model juggles decisions at every step, and control flow moves out of code and into prompts. AI-powered software takes the middle path. Code keeps the structure and handles exact computation, and a model sits only at the branches that need semantic judgment.