Skip to contents

Check whether a run completed

Usage

result_is_success(result)

Arguments

result

An AgentResult.

Value

TRUE if the stop reason is "complete", meaning the model finished on its own. It doesn't check the answer, and it is TRUE for an answer the provider cut short: the result's ending tells those apart.