MCPcopy Index your code
hub / github.com/openai/openai-agents-python / _read_str

Function _read_str

src/agents/apply_diff.py:100–107  ·  view source on GitHub ↗
(state: ParserState, prefix: str)

Source from the content-addressed store, hash-verified

98
99
100def _read_str(state: ParserState, prefix: str) -> str:
101 if state.index >= len(state.lines):
102 return ""
103 current = state.lines[state.index]
104 if current.startswith(prefix):
105 state.index += 1
106 return current[len(prefix) :]
107 return ""
108
109
110def _parse_create_diff(lines: list[str], newline: str) -> str:

Calls

no outgoing calls