---
id: change/bcapps/13172
type: change
title: "#13172 Export structured AI eval run data"
summary: AI Eval run data can now be exported in a structured form from the AI Test Toolkit command-line page, with optional authorized Agent Task details. Agent Task gains public GetTaskLogEntryDetails overloads, and the old record-based GetLogEntryDetails public method is removed.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - page agent task log entry instr
  - codeunit agent task
  - codeunit agent message impl.
  - codeunit agent task impl.
  - page agent task log entry
  - table agent json buffer
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-04T00:58:53.366Z"
  flags: []
generated:
  at: "2026-11-05T00:14:20.359Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 009d41251d84979fdd2a0f6c98c1916da9fb3194
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13172
    title: "microsoft/BCApps#13172: Export structured AI eval run data"
    date: "2026-11-03"
    commit: 009d41251d84979fdd2a0f6c98c1916da9fb3194
    t: null
    quote: Export structured AI Eval run data for analysis and automation, with optional authorized Agent Task troubleshooting details.
links:
  learn: []
  objects:
    - object/page/4362
    - object/codeunit/4303
    - object/codeunit/4308
    - object/codeunit/4300
    - object/page/4312
    - object/table/4300
    - object/codeunit/4314
    - object/codeunit/4313
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/ai/ai-agent-sdk-tasks
      title: Managing agent tasks programmatically (preview)
      label: possibly related
      why: touches Codeunit 4303 "Agent Task"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/ai/ai-development-toolkit-iterate
      title: Iterate and manage an agent (preview)
      label: possibly related
      why: Documents Agent Task Log for troubleshooting and managing agent decision-making and performance data.
      by: model
number: 13172
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13172
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-03T21:52:48Z"
author: nikolakukrika
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "AL: System Application"
  - "AL: Tools"
  - "Team: Integrations"
change_class: code
change_kind: feature
behavior_change: true
breaking: true
files:
  count: 17
  additions: 1009
  deletions: 58
  al: 8
apps:
  - AgentDesignExperience
  - System Application
objects_touched:
  - key: page/4362
    page: page/4362
    type: page
    id: 4362
    name: Agent Task Log Entry Instr
    app: AgentDesignExperience
    status: modified
  - key: codeunit/4303
    page: codeunit/4303
    type: codeunit
    id: 4303
    name: Agent Task
    app: System Application
    status: modified
  - key: codeunit/4308
    page: codeunit/4308
    type: codeunit
    id: 4308
    name: Agent Message Impl.
    app: System Application
    status: modified
  - key: codeunit/4300
    page: codeunit/4300
    type: codeunit
    id: 4300
    name: Agent Task Impl.
    app: System Application
    status: modified
  - key: page/4312
    page: page/4312
    type: page
    id: 4312
    name: Agent Task Log Entry
    app: System Application
    status: modified
  - key: table/4300
    page: table/4300
    type: table
    id: 4300
    name: Agent JSON Buffer
    app: System Application
    status: modified
  - key: codeunit/4314
    page: codeunit/4314
    type: codeunit
    id: 4314
    name: Agent Task Log Entry
    app: System Application
    status: modified
  - key: codeunit/4313
    page: codeunit/4313
    type: codeunit
    id: 4313
    name: Agent Task Log Export
    app: System Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 624671
systems:
  - copilot
quote: Export structured AI Eval run data for analysis and automation, with optional authorized Agent Task troubleshooting details.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13172 Export structured AI eval run data

> AI Eval run data can now be exported in a structured form from the AI Test Toolkit command-line page, with optional authorized Agent Task details. Agent Task gains public GetTaskLogEntryDetails overloads, and the old record-based GetLogEntryDetails public method is removed.

[Pull request](https://github.com/microsoft/BCApps/pull/13172) · merged into `main` (BC30) on 2026-11-03 by nikolakukrika · 17 files (+1009 -58), 8 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- The AI Eval command-line page streams results.json, the evaluation result files and then the Agent Task detail files, keeping the suite/version/dataset hierarchy
- New public Agent Task methods: GetTaskLogEntryDetails(AgentTaskID) returns the full task export and GetTaskLogEntryDetails(AgentTaskID, StepNumber) returns a single log entry
- The AI Test Toolkit now uses the public API, and its internalsVisibleTo grants and the unused stream/BLOB adapter are removed
- The old record-based GetLogEntryDetails public method is removed
- Multiline messages and call stacks are now read to the end of the stream, with separators only between lines
- Breaking: existing extensions can stop compiling or working.

## AL objects touched

- [Page 4362 "Agent Task Log Entry Instr"](../../objects/page/4362.md), AgentDesignExperience: modified
- [Codeunit 4303 "Agent Task"](../../objects/codeunit/4303.md), System Application: modified
- [Codeunit 4308 "Agent Message Impl."](../../objects/codeunit/4308.md), System Application: modified
- [Codeunit 4300 "Agent Task Impl."](../../objects/codeunit/4300.md), System Application: modified
- [Page 4312 "Agent Task Log Entry"](../../objects/page/4312.md), System Application: modified
- [Table 4300 "Agent JSON Buffer"](../../objects/table/4300.md), System Application: modified
- [Codeunit 4314 "Agent Task Log Entry"](../../objects/codeunit/4314.md), System Application: modified
- [Codeunit 4313 "Agent Task Log Export"](../../objects/codeunit/4313.md), System Application: modified

## Context

- Work items: AB#624671
- Labels: AL: Apps (W1), AL: System Application, AL: Tools, Team: Integrations
- Systems: copilot
- From the description: "Export structured AI Eval run data for analysis and automation, with optional authorized Agent Task troubleshooting details."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Managing agent tasks programmatically (preview)](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/ai/ai-agent-sdk-tasks) — possibly related: touches Codeunit 4303 "Agent Task"
- [Iterate and manage an agent (preview)](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/ai/ai-development-toolkit-iterate) — possibly related: Documents Agent Task Log for troubleshooting and managing agent decision-making and performance data. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
