Skip to content

技术英语 10 分钟 - 2026-06-18

今日目标

读懂 stream text generationsinteractive use casesbuilt on top of text generation 在 AI 工具文档里的表达。

来源类型:AI tooling documentation

原文

来源主题:Vercel AI SDK streamText

Streams text generations from a language model.You can use the streamText function for interactive use cases such as chat bots and other real-time applications.Advanced LLM features such as tool calling and structured data generation are built on top of text generation.

参考:AI SDK Core documentationstreamText and generating text

人话意思

第一句说:streamText 会从语言模型那里“流式输出文本生成结果”,不是等整段生成完才一次性给你。

第二句说:这种函数适合交互场景,比如 chat bots 和实时应用。你做聊天 UI、边生成边展示时,就会经常看到这类表达。

第三句说:更高级的 LLM 能力,比如 tool callingstructured data generation,本质上是建立在文本生成能力之上的。别被长词吓住,笨蛋,这句是在讲“底座能力”和“上层能力”的关系。

关键词

  • stream: 流式传输,边生成边输出
  • text generations: 文本生成结果
  • language model: 语言模型
  • interactive use cases: 交互式使用场景
  • chat bots: 聊天机器人
  • real-time applications: 实时应用
  • tool calling: 工具调用
  • structured data generation: 结构化数据生成
  • built on top of: 建立在……之上

句子拆解

Streams text generations from a language model.

这句省略了主语,文档标题或函数名已经告诉你主语是 streamText

核心动作是:

Streams text generations

来源是:

from a language model

整句可以理解成:从语言模型那里流式传出文本生成结果。

You can use the streamText function for interactive use cases such as chat bots and other real-time applications.

主干是:

You can use the streamText function

用途是:

for interactive use cases

后面的例子是:

such as chat bots and other real-time applicationssuch as 就是“比如”,技术文档里特别常见,用来补几个典型场景。Advanced LLM features such as tool calling and structured data generation are built on top of text generation.

主语是一整块:

Advanced LLM features such as tool calling and structured data generation

判断部分是:

are built on top of text generationbuilt on top of 不要直译成“建在顶部”,在技术语境里更自然的是“基于……构建”。

今天记住一句

This feature is built on top of text generation.

以后描述某个上层能力基于底层能力实现,就可以套这个句型:

This feature is built on top of...

30 秒小练习

把下面这句翻成中文:

Streaming is useful for chat bots and other real-time applications.

提示:useful for 是“对……有用”,real-time applications 是“实时应用”。

完成记录

  • [ ] 看完原文
  • [ ] 看完拆解
  • [ ] 完成 30 秒小练习