Represent a request to perform inferences for the eval cases in an eval set.
| 96 | |
| 97 | |
| 98 | class InferenceRequest(BaseModel): |
| 99 | """Represent a request to perform inferences for the eval cases in an eval set.""" |
| 100 | |
| 101 | model_config = ConfigDict( |
| 102 | alias_generator=alias_generators.to_camel, |
| 103 | populate_by_name=True, |
| 104 | ) |
| 105 | |
| 106 | app_name: str = Field( |
| 107 | description="""The name of the app to which the eval case belongs to.""" |
| 108 | ) |
| 109 | |
| 110 | eval_set_id: str = Field(description="""ID of the eval set.""") |
| 111 | |
| 112 | eval_case_ids: Optional[list[str]] = Field( |
| 113 | default=None, |
| 114 | description="""ID of the eval cases for which inferences need to be |
| 115 | generated. |
| 116 | |
| 117 | All the eval case ids should belong to the EvalSet. |
| 118 | |
| 119 | If the list of eval case ids are empty or not specified, then all the eval cases |
| 120 | in an eval set are evaluated. |
| 121 | """, |
| 122 | ) |
| 123 | |
| 124 | inference_config: InferenceConfig = Field( |
| 125 | description="""The config to use for inferencing.""", |
| 126 | ) |
| 127 | |
| 128 | |
| 129 | class InferenceStatus(Enum): |
no outgoing calls