MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / validate_input

Method validate_input

verl/verl/protocol.py:410–418  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

408 """
409
410 def validate_input(keys):
411 if keys is not None:
412 if isinstance(keys, str):
413 keys = [keys]
414 elif isinstance(keys, list):
415 pass
416 else:
417 raise TypeError(f'keys must be a list or a string, but got {type(keys)}')
418 return keys
419
420 old_keys = validate_input(old_keys)
421 new_keys = validate_input(new_keys)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected