Skip to main content

agrag.eval.adapter.parse_json_case

parse_json_case(test_case:LLMTestCase, model:type[ModelT]) -> tuple[ModelT, ModelT]

Read the (actual, expected) models back from a JSON test case.

Parameters:

  • test_case (LLMTestCase) – A case built by to_json_case.
  • model (type[ModelT]) – The pydantic model both outputs were serialized from.