def test_convert_session_skips_initial_non_user_events():
  """Test conversion function with only user events."""
  events = [
      build_event("model", [{"text": "Hello"}]),
      build_event("user", [{"text": "How are you?"}]),
  ]
  session = Session(id="s1", app_name="app", user_id="u1", events=events)
  expected = [
      {
          "query": "How are you?",
          "expected_tool_use": [],
          "expected_intermediate_agent_responses": [],
          "reference": "",
      },
  ]
  assert convert_session_to_eval_format(session) == expected
Test conversion function with only user events.
tests/unittests/cli/utils/test_evals.py