MCPcopy
hub / github.com/openai/openai-agents-python / _is_done

Function _is_done

src/agents/apply_diff.py:92–97  ·  view source on GitHub ↗
(state: ParserState, prefixes: Sequence[str])

Source from the content-addressed store, hash-verified

90
91
92def _is_done(state: ParserState, prefixes: Sequence[str]) -> bool:
93 if state.index >= len(state.lines):
94 return True
95 if any(state.lines[state.index].startswith(prefix) for prefix in prefixes):
96 return True
97 return False
98
99
100def _read_str(state: ParserState, prefix: str) -> str:

Callers 3

_parse_create_diffFunction · 0.85
_parse_update_diffFunction · 0.85

Calls

no outgoing calls