Skip to main content

Function: isErrorReason()

isErrorReason(reason): boolean

Defined in: packages/core/src/stream-segments/utils.ts:47

Determines if a reason represents an error condition

Parameters

reason

"error" | "turn_yielded" | "out_of_iterations" | "max_tokens_reached" | "interrupted" | "no_applicable_tools" | "max_depth_reached" | "graceful_shutdown"

Returns

boolean