// for regular comments.
/// for documentation comments on schema fields.
Unlike regular // comments, /// descriptions are part of the schema contract and are passed to the underlying model as field guidance. This helps the agent understand what each field means when generating structured output.
When /// is essential
Use /// whenever field intent is ambiguous and a wrong interpretation would produce poor or unsafe output.
dose_mg with pill count or interpret interval_hours as daily frequency.
Block comments are not supported.