Skip to content

Comments

Add more comprehensive AI tests#151

Merged
heyitsaamir merged 4 commits intomainfrom
aamirj/aitests
Sep 12, 2025
Merged

Add more comprehensive AI tests#151
heyitsaamir merged 4 commits intomainfrom
aamirj/aitests

Conversation

@heyitsaamir
Copy link
Collaborator

@heyitsaamir heyitsaamir commented Sep 12, 2025

Also add the ability for instructions to be simple strings

PR Dependency Tree

This tree was auto-generated by Charcoal

@heyitsaamir heyitsaamir mentioned this pull request Sep 12, 2025
@heyitsaamir heyitsaamir force-pushed the aamirj/aitests branch 3 times, most recently from cb5246e to 89d0540 Compare September 12, 2025 16:59
heyitsaamir added a commit that referenced this pull request Sep 12, 2025
- Tests the cards package out. Found some bugs in serialization
- Adds a cards test
- Made sure these things work from the snippets that are in the docs


#### PR Dependency Tree


* **PR #150** 👈
  * **PR #151**

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)
Base automatically changed from aamirj/addCardsTest to main September 12, 2025 17:01
Copilot AI review requested due to automatic review settings September 12, 2025 18:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive AI testing capabilities to the Microsoft Teams AI Library for Python, replacing a simple echo bot with a full-featured AI test application. It also extends the core AI functionality by allowing instructions to be passed as simple strings instead of requiring SystemMessage objects.

  • Comprehensive AI test application with various AI scenarios including function calling, streaming, citations, and feedback
  • Enhanced Agent and ChatPrompt APIs to accept string instructions alongside SystemMessage objects
  • Modular handler architecture with separate modules for different AI functionality types

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/ai-test/src/main.py Complete rewrite from simple echo to comprehensive AI test with pattern-based command handlers
tests/ai-test/src/handlers/*.py New modular handlers for function calling, memory management, citations, plugins, and feedback
tests/ai-test/README.md New comprehensive documentation for AI test scenarios and usage
packages/ai/src/microsoft/teams/ai/agent.py Enhanced to accept string instructions parameter
packages/ai/src/microsoft/teams/ai/chat_prompt.py Enhanced to convert string instructions to SystemMessage objects
packages/openai/src/microsoft/teams/openai/completions_model.py Added error logging for function execution failures
packages/apps/src/microsoft/teams/apps/http_plugin.py Fixed return value handling in HTTP plugin
Comments suppressed due to low confidence (1)

tests/ai-test/src/handlers/feedback_management.py:1

  • This long string formatting expression should be broken into multiple lines for better readability instead of using a noqa comment to suppress the line length warning.
"""

@heyitsaamir heyitsaamir merged commit 8b6f39f into main Sep 12, 2025
6 checks passed
@heyitsaamir heyitsaamir deleted the aamirj/aitests branch September 12, 2025 18:58
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.

1 participant