name: agently-output-control description: Structured output patterns with ensure_keys, ordering, and instant streaming.
Agently Output Control Skill
Use this skill when you need stable structured output, key guarantees, ordered dependencies, or instant streaming.
Key Patterns
- Define Output Format first, then use
ensure_keysfor critical fields. - Order fields so dependencies appear earlier.
- Use
get_generator(type="instant")for structured streaming.
Pitfalls to Avoid (Lessons from NexusTodo)
- Keep outputs strictly JSON for machine parsing; no extra prose.
- Use
temperature=0to reduce random schema drift. - Validate critical fields (e.g.,
taskIdmust be UUID) before execution. - If parsing fails, fall back to a safe clarify response rather than guessing.
References
examples/structured_output_with_ensure_keys.pyexamples/order_and_dependencies_output.pyexamples/streaming_with_instant_mode.pyexamples/response_event_streams.pyexamples/key_waiter_early_field.py
Examples
See examples/run.sh for runnable commands.