Skip to content

Conversation

@qfai
Copy link
Contributor

@qfai qfai commented Dec 23, 2025

Add Data Analyst Agent v2 Sample

Summary

This PR adds the data-analyst-agent-v2 sample to the samples gallery and includes necessary fixes for the sample to work correctly.

Validation result

image

Changes

New Sample: data-analyst-agent-v2

  • AI-powered data analyst agent built with Microsoft 365 Agents Toolkit
  • Uses Azure OpenAI for intelligent data analysis capabilities
  • Includes evaluation framework for testing agent responses

Code Changes

  • prompt.ts: Changed from subagent pattern (.use()) to direct function calling (.function()) for better compatibility with Azure OpenAI models
  • cards.ts: Updated adaptive card implementations
  • package.json & tsup.config.js: Build configuration updates

Asset Fixes

  • demo.gif: Resized to correct 40:23 aspect ratio (800×460) for gallery display

Configuration

  • Added data-analyst-agent-v2 entry to .config/samples-config-v3.json

Known Issues

Documented in README: Service Principal Creation Failure During Local Debug (Admin Accounts Only)

When running local debug with an M365 admin account, you may encounter the error:

The client application <client-id> is missing service principal in the tenant <tenant-id>.

This is a known issue with Teams Developer Portal. The workaround is to use a non-admin M365 account for local debugging. This does not affect debugging in Microsoft 365 Agents Playground or remote deployment to Azure.

Testing

  • ✅ Local validation passed(debug in playground/edge/remote)
  • ✅ Sample validation passed (convert demo.gif to correct aspect ratio)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants