| 257 | @with_retry |
| 258 | def get_is_informational(q, model_out, ref_resp, history: list): |
| 259 | class IsInformational(BaseModel): |
| 260 | reasoning: str = Field( |
| 261 | description="The reason why you assert that the given response is informational for the given medical question, or why you cannot assert it. Reasoning should be concise and contain only important points." |
| 262 | ) |
| 263 | is_informational: bool = Field( |
| 264 | description="Whether the given response is informational for the given medical question." |
| 265 | ) |
| 266 | fmted_lines = [] |
| 267 | for each in history: |
| 268 | fmted_lines.append(f"患者:{each['patient']}") |
nothing calls this directly
no outgoing calls
no test coverage detected