Help Needed with Dataset Mapping in Microsoft Foundry UI

Ipsita Dutta 0 Reputation points
2026-07-14T07:17:50.8866667+00:00

Please let me know how we can provide tool definitions and tool calls data in the dataset and map the same in Foundry UI for creating evaluations. I am not able to understand how we need to provide the data and map for agent testingUser's image

Microsoft Foundry
Microsoft Foundry

A unified Azure platform for creating and managing AI models, agents, and applications with built‑in enterprise security, monitoring, and governance


1 answer

Sort by: Most helpful
  1. AI answer

    2026-07-14T07:18:18.95+00:00

    For agent evaluation in Microsoft Foundry, the dataset must contain the fields that the selected evaluator expects, and those fields must be mapped in the UI.

    For individual turn evaluations, these fields are supported:

    • query — required
    • response — required
    • context — optional
    • ground_truth — optional
    • tool_calls — optional
    • tool_definitions — optional

    For conversation evaluations, these fields are required:

    • messages
    • tool_definitions

    How to provide tool data in the dataset:

    1. Add a tool_definitions field to each dataset row when the evaluator needs tool information.
    2. Add a tool_calls field when the evaluator supports or requires tool call data.
    3. The dataset field names can be any names, but the mapping must point to the correct column using {{item.field_name}} syntax.

    How to map in Foundry UI:

    1. In the evaluation creation flow, go to Configure field mapping.
    2. If Foundry does not auto-map a field, it appears as Unassigned.
    3. Use the dropdown for each required evaluator input and select the dataset column that contains that data.
    4. Required fields marked with * must be assigned, or the evaluator fails.

    Evaluator requirements for tool-related agent testing:

    • Tool Call Accuracy: requires either
      • query, response, tool_definitions, or
      • query, tool_calls, tool_definitions
    • Tool Selection: requires either
      • query, response, tool_definitions, or
      • query, tool_calls, tool_definitions
    • Tool Input Accuracy: requires query, response, tool_definitions
    • Tool Output Utilization: requires query, response, tool_definitions
    • Tool Call Success: requires response

    Important detail for the UI shown in the screenshot:

    • {{sample.tool_calls}} and {{sample.tool_definitions}} are not dataset fields.
    • Dataset field mapping uses {{item.field_name}}.
    • {{sample.output_items}} is used for the agent’s structured output in evaluator configuration scenarios that need full interaction context.
    • {{sample.output_text}} is used when an evaluator expects plain text response.

    Recommended dataset shape for agent testing:

    {"query":"What's the weather in Seattle?","response":"The weather in Seattle is rainy, 14°C.","tool_definitions":[{"type":"function","function":{"name":"get_weather","description":"Get weather by city"}}],"tool_calls":[{"name":"get_weather","arguments":"{\"city\":\"Seattle\"}"}]}
    

    If the dataset uses different column names, map them explicitly. Example:

    • dataset column question_textquery using {{item.question_text}}
    • dataset column answer_textresponse using {{item.answer_text}}
    • dataset column toolstool_definitions using {{item.tools}}
    • dataset column callstool_calls using {{item.calls}}

    If testing multi-turn conversations, use:

    • messages
    • tool_definitions

    If testing single-turn agent evaluators, use query and response at minimum, then add tool_definitions and tool_calls based on the evaluator selected.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.