MCPcopy Index your code
hub / github.com/IBM/AssetOpsBench / _is_step_finish

Function _is_step_finish

src/agent/opencode_agent/runner.py:398–403  ·  view source on GitHub ↗

True for OpenCode step-finish boundaries.

(event: dict[str, Any], part: dict[str, Any], part_type: str)

Source from the content-addressed store, hash-verified

396
397
398def _is_step_finish(event: dict[str, Any], part: dict[str, Any], part_type: str) -> bool:
399 """True for OpenCode step-finish boundaries."""
400 event_type = str(event.get("type") or "").lower()
401 return ("step" in part_type and "finish" in part_type) or (
402 "step" in event_type and "finish" in event_type
403 )
404
405
406def _final_answer(

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected