class_docstr: Useful to compute v1 prompt for make_genai_metric
code: def to_dict(self):
      examples_str = (
          ""
          if self.examples is None or len(self.examples) == 0
          else f"Examples:\n{self._format_examples()}"
      )
  
      return {
          "model": self.model,
          "eval_prompt": grading_system_prompt_template.partial_fill(
              name=self.name,
              definition=self.definition,
              grading_prompt=self.grading_prompt,
              examples=examples_str,
          ),
          "parameters": self.parameters,
      }
  
file_path: mlflow/mlflow/metrics/genai/prompts/v1.py
imports: from dataclasses import dataclass, field
  from typing import Any, Dict, List
  from mlflow.metrics.genai.base import EvaluationExample
  from mlflow.metrics.genai.prompt_template import PromptTemplate
label_desc: Use image node_id 1 for calling the EvaluationModel obj's underlying member method code with example usage: obj.to_dict() and returns: dict