Skip to content

Commit 715a3a0

Browse files
authored
update (#43905)
1 parent ebbbb43 commit 715a3a0

File tree

1 file changed

+1
-1
lines changed
  • sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_task_adherence

1 file changed

+1
-1
lines changed

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_task_adherence/_task_adherence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async def _do_eval(self, eval_input: Dict) -> Dict[str, Union[float, str, bool]]
175175
if isinstance(content, list):
176176
for item in content:
177177
if isinstance(item, dict):
178-
if item.get("type") == "text":
178+
if item.get("type", None) in ("text", "input_text", "output_text"):
179179
assistant_parts.append(item.get("text", ""))
180180
elif item.get("type") == "tool_call":
181181
tool_parts.append(str(item.get("tool_call", "")))

0 commit comments

Comments
 (0)