agently-model-response
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgently Model Response
Agently 模型响应
Use this skill when the output contract is already chosen and the remaining issue is how the response instance should be consumed or reused.
The user does not need to say . Requests to reuse one result as text, parsed data, metadata, or progressive updates should route here.
get_response()当输出协议已确定,剩下的问题是如何消费或复用响应实例时,可使用此技能。
用户无需明确提及。所有关于将单一结果复用为文本、解析后的数据、元数据或渐进式更新的请求都应引导至此处处理。
get_response()Native-First Rules
原生优先规则
- prefer when one request result must be consumed more than once
get_response() - prefer async response APIs in async runtimes
- use ,
delta,instant, orspecificinstead of custom stream splitting logicall
- 当单一请求结果需要被多次消费时,优先使用
get_response() - 在异步运行时中优先使用异步响应API
- 使用、
delta、instant或specific替代自定义流式拆分逻辑all
Anti-Patterns
反模式
- do not re-issue the same request to obtain text, data, and metadata separately
- do not build ad hoc field-level stream parsers when or
instantalready fitsstreaming_parse
- 不要为了分别获取文本、数据和元数据而重复发起相同的请求
- 当或
instant已能满足需求时,不要构建临时的字段级流式解析器streaming_parse
Read Next
后续阅读
references/overview.md
references/overview.md