Connection
Base URL, credentials and a reachable server.
Find the source mapping at a generated column using segments from that generated line only.
Base URL, credentials and a reachable server.
A model available through the configured endpoint.
Context limits and tool support are determined by the model and server.
def locate(segments, column):
candidates = [s for s in segments if s[0] <= column]
if not candidates:
return None
return max(candidates, key=lambda s: s[0])[1]