Skip to main content

FINISH_REASON_METADATA_KEY

Constant FINISH_REASON_METADATA_KEY 

Source
pub const FINISH_REASON_METADATA_KEY: &'static str;
Available on crate feature tool-loop only.
Expand description

The metadata key that marks an answer cut off at the output limit.

It is on the answer artifact, and on the status message of the task that completed with it; its value is the model’s finish_reason. Present only when the reply was cut off (FINISH_REASON_LENGTH): the text is then a prefix of an answer, and may end mid-sentence.