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.