npx skills add https://github.com/agentera/agently-skills --skill agently-output-control本技能涵盖 Agently 中的输出模式定义、结果解析、可靠性控制、响应流式传输和响应复用。不涉及模型设置、提供商配置、嵌入或更广泛的提示管理生命周期。
前提条件:Agently >= 4.0.8.5。
Agently 在运行时层是异步优先的。当调用者可以使用异步 API 时,优先选择异步响应 API。同步获取器和同步生成器是围绕异步核心的兼容性包装器。
本技能中应被视为一等 Agently 模式的一个能力是:通过 instant / streaming_parse 实现的结构化流式传输。当用户同时需要结构化输出和渐进式更新时,这通常是主要的解决方案。
本技能适用于:
.output(...) 定义结构化输出.output(...) 内部的字段顺序和依赖顺序get_text()、get_data()、get_data_object() 和 检索响应数据广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
get_meta()ensure_keys、key_style、max_retries 和 raise_ensure_failure 强制执行必需键delta、specific、instant、streaming_parse、original 和 all 消费流式输出response 对象多次而无需发送另一个请求StreamingData 字段,如 path、wildcard_path、indexes、delta、value 和 is_complete本技能不适用于:
OpenAICompatible 认证、代理、超时或 client_optionschat_history、会话管理或长期提示记忆本技能假设请求的输入侧已大致就位。
输出控制路径主要依赖于:
input(...)info(...)instruct(...)output(...)如果用户主要询问如何组合输入侧,这属于单独的输入组合技能。
ensure_keys,请阅读 references/reliability-and-retries.md。Agently 输出控制是一个链,而非单个 API 调用:
.output(...) 定义所需结构。get_response() 为单个响应实例快照当前提示和设置。ensure_keys 和重试)在该解析结果层上运行。.output(...) 开始。.output(...) 的前面。reply 或任何其他最终答案字段之前。response = ...get_response()。async_get_*() 和 get_async_generator()。ensure_keys。get_data_object()。type="delta"。type="instant" 或 type="streaming_parse"。type="instant" 或 type="streaming_parse"。type="specific"。response = ...get_response(),然后从 response.result 读取。references/source-map.mdreferences/output-schema.mdreferences/order-and-dependencies.mdreferences/reliability-and-retries.mdreferences/response-patterns.mdreferences/response-consumption.mdreferences/structured-streaming.mdreferences/response-lifecycle.mdreferences/troubleshooting.md每周安装数
1
仓库
首次出现
1 天前
安全审计
安装于
mcpjam1
claude-code1
replit1
junie1
windsurf1
zencoder1
This skill covers output schema definition, result parsing, reliability controls, response streaming, and response reuse in Agently. It does not cover model setup, provider configuration, embeddings, or the broader prompt-management lifecycle.
Prerequisite: Agently >= 4.0.8.5.
Agently is async-first at the runtime layer. Prefer async response APIs when the caller can use them. Sync getters and sync generators are compatibility wrappers around the async core.
One capability should be treated as a first-class Agently pattern in this skill: structured streaming through instant / streaming_parse. When the user wants structured output and progressive updates at the same time, this is usually the primary answer.
Use this skill for:
.output(...).output(...)get_text(), get_data(), get_data_object(), and get_meta()ensure_keys, key_style, max_retries, and raise_ensure_failuredelta, specific, instant, streaming_parse, original, and allresponse object multiple times without sending another requestStreamingData fields such as path, wildcard_path, indexes, delta, value, and is_completeDo not use this skill for:
OpenAICompatible auth, proxy, timeout, or client_optionschat_history, session management, or long-lived prompt memoryThis skill assumes the request already has the input side roughly in place.
The output-control path mainly depends on:
input(...)info(...)instruct(...)output(...)If the user is primarily asking how to compose the input side, that belongs in a separate input-composition skill.
ensure_keys, read references/reliability-and-retries.md.Agently output control is a chain, not a single API call:
.output(...) defines the desired structure.get_response() snapshots the current prompt and settings for one response instance.ensure_keys and retries operate on that parsed result layer..output(...)..output(...).reply or any other final-answer field.response = ...get_response() first.async_get_*() and get_async_generator().ensure_keys.get_data_object().references/source-map.mdreferences/output-schema.mdreferences/order-and-dependencies.mdreferences/reliability-and-retries.mdreferences/response-patterns.mdreferences/response-consumption.mdreferences/structured-streaming.mdreferences/response-lifecycle.mdreferences/troubleshooting.mdWeekly Installs
1
Repository
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
mcpjam1
claude-code1
replit1
junie1
windsurf1
zencoder1
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
147,400 周安装
type="delta".type="instant" or type="streaming_parse".type="instant" or type="streaming_parse".type="specific".response = ...get_response() first and then read from response.result.