Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 31, 2025

Populate empty package READMEs with usage examples.

Completed Tasks ✓

  • Update AI README to showcase ChatPrompt instead of Agent
  • Add function/toolcalling example to AI README
  • Add documentation link to AI README
  • Add both MCP client and server examples to MCP README
  • Add documentation link to MCP README
  • Add both A2A server and client examples to A2A README
  • Add documentation link to DevTools README
  • Fix MCP Server example to match actual test implementation
  • Fix MCP Client example to use correct API
  • Remove "Protocol" from A2A title
  • Fix OpenAI example to use ChatPrompt instead of Agent
  • Remove port specification from DevTools example
  • Update A2A examples to match test implementation

Summary

Updated 5 package READMEs based on review feedback:

Updated Packages

  1. microsoft-teams-ai (37 → 59 lines)

    • Now showcases ChatPrompt instead of Agent
    • Added function calling example with handler
    • Added docs link
  2. microsoft-teams-mcpplugin (39 → 74 lines)

    • Added MCP Client example with use_mcp_server()
    • Added MCP Server example with use_tool()
    • Both examples match actual test implementation patterns
    • Added docs link
  3. microsoft-teams-a2a (42 → 75 lines)

    • Removed "Protocol" from title
    • Updated to match test implementation with proper AgentCard
    • Added A2A Server example with complete AgentCard setup
    • Added A2A Client example using A2AClientPlugin
    • Uses correct card_url from tests
  4. microsoft-teams-openai (32 lines)

    • Now uses ChatPrompt instead of Agent
  5. microsoft-teams-devtools (38 → 36 lines)

    • Added docs link
    • Removed port specification (uses default)

Each README now shows realistic usage patterns verified against test applications.

Validation

✓ All linting checks pass (ruff)
✓ All formatting checks pass
✓ Documentation-only changes
✓ Examples match test implementation patterns
✓ All examples use ChatPrompt consistently
✓ A2A examples grounded in actual test code

Original prompt

We have a lot of our READMEs for packages that are currently basically empty. Can you populate them? Avoid being too verbose.
Try

Try

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits October 31, 2025 00:59
Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
Copy link
Collaborator

@copilot

if you’re including snippets, they should be grounded with example from the tests folder

if you’re including snippets, they should be grounded with example from the tests folder

Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
Copilot AI changed the title [WIP] Add content to empty README files Populate empty package READMEs with API documentation Oct 31, 2025
Copilot AI requested a review from heyitsaamir October 31, 2025 01:13
Copilot finished work on behalf of heyitsaamir October 31, 2025 01:13
Copilot finished work on behalf of heyitsaamir October 31, 2025 01:15
Copy link
Collaborator

@copilot

too many details. If showing snippets just show basic use case

@heyitsaamir
Copy link
Collaborator

@copilot too many details. If showing snippets just show basic use case

Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 31, 2025

@copilot too many details. If showing snippets just show basic use case

Simplified all 5 READMEs to show only basic use cases. Removed detailed sections, multiple examples, and feature lists. Each now has just Installation and Usage sections with one simple example. (5c21554)

Copilot AI changed the title Populate empty package READMEs with API documentation Populate empty package READMEs with basic usage examples Oct 31, 2025
Copilot finished work on behalf of heyitsaamir October 31, 2025 07:21
Copy link
Collaborator

@heyitsaamir heyitsaamir left a comment

Choose a reason for hiding this comment

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

@copilot work on the fixes i suggested

…erver/client examples and docs links

Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 31, 2025

@copilot work on the fixes i suggested

Addressed all suggested fixes in commit f146a68:

  • AI: Now showcases ChatPrompt + function calling with docs link
  • MCP: Shows both client and server examples with docs link
  • A2A: Shows both server and client examples
  • DevTools: Added docs link

Copilot AI changed the title Populate empty package READMEs with basic usage examples Populate empty package READMEs with usage examples Oct 31, 2025
Copilot AI requested a review from heyitsaamir October 31, 2025 16:00
Copilot finished work on behalf of heyitsaamir October 31, 2025 16:00
…valid constructor params

Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
Copilot finished work on behalf of heyitsaamir October 31, 2025 16:28
Copy link
Collaborator

@heyitsaamir heyitsaamir left a comment

Choose a reason for hiding this comment

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

@copilot fix

Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 31, 2025

@copilot fix

Fixed both issues in commit c5599a4:

  • A2A: Removed "Protocol" from title
  • OpenAI: Changed to use ChatPrompt instead of Agent

@heyitsaamir heyitsaamir marked this pull request as ready for review October 31, 2025 16:34
Copilot AI review requested due to automatic review settings October 31, 2025 16:34
Copilot AI requested a review from heyitsaamir October 31, 2025 16:36
Copilot finished work on behalf of heyitsaamir October 31, 2025 16:36
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 enhances the README documentation for five Microsoft Teams AI Library packages by adding comprehensive installation and usage examples. The goal is to provide clearer onboarding documentation for developers using these packages.

  • Replaced generic documentation links with specific installation instructions using uv add
  • Added practical code examples showing how to instantiate and use core classes from each package
  • Standardized README format across packages with Installation and Usage sections

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/openai/README.md Added installation instructions and basic usage example for OpenAICompletionsAIModel with ChatPrompt
packages/mcpplugin/README.md Created complete README with MCP client and server usage examples, including tool registration
packages/devtools/README.md Added installation and usage example showing DevToolsPlugin integration with App
packages/ai/README.md Added comprehensive examples for ChatPrompt and Function calling patterns
packages/a2aprotocol/README.md Added A2A server and client usage examples with agent configuration

Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
…d setup

Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
Copilot finished work on behalf of heyitsaamir October 31, 2025 17:12
@heyitsaamir heyitsaamir merged commit e9bb4b4 into main Nov 6, 2025
7 checks passed
@heyitsaamir heyitsaamir deleted the copilot/populate-empty-readmes branch November 6, 2025 00:56
heyitsaamir added a commit that referenced this pull request Nov 10, 2025
- Remove support for 3.14 (#207)
  - Add Federated Identity Credentials support (#203)
  - Add User Managed Identity support via MSAL (#192)
  - Introduce msal (#191)
  - Populate empty package READMEs with usage examples (#196)
  - Rename Teams AI to Teams SDK 🎉  (#201)
- HTTPPlugin : Add a builder option to provide custom server (enables
providing options like ssl etc) (#185)
  - get type hint of class, not object (#202)
  - Temporary: skip streaming tests  (#200)
  - Fix workflow
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.

3 participants