Skip to content

Add python-story-agents: writer + reviewer multi-agent app using Microsoft Agent Framework SDK#1

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/add-short-story-agent-app
Draft

Add python-story-agents: writer + reviewer multi-agent app using Microsoft Agent Framework SDK#1
Copilot wants to merge 2 commits into
mainfrom
copilot/add-short-story-agent-app

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 25, 2026

Adds a new standalone Python app that chains two agents — a writer and a reviewer — using the Microsoft Agent Framework SDK backed by an Azure AI Foundry model.

New: python-story-agents/

  • main.py — Two-agent pipeline:
    • Writer agent generates a short story (~150–200 words) from user input
    • Reviewer agent scores the story 0–100 with brief feedback
    • Both share a single AzureAIChatClient instance; connection info sourced from env vars with placeholder defaults
  • requirements.txt — Single dep: agent-framework-azure-ai --pre
  • .env.example — Placeholder values for AZURE_AI_PROJECT_ENDPOINT, AZURE_AI_API_KEY, AZURE_AI_MODEL_DEPLOYMENT_NAME
  • README.md — Setup and run instructions

Usage

# main.py (simplified)
client = AzureAIChatClient(
    endpoint=AZURE_AI_PROJECT_ENDPOINT,
    api_key=AZURE_AI_API_KEY,
    deployment_name=AZURE_AI_MODEL_DEPLOYMENT_NAME,
)

writer = Agent(client=client, name="Writer", instructions="Write a short story...")
reviewer = Agent(client=client, name="Reviewer", instructions="Score the story 0-100...")

story = await writer.run(user_input)
review = await reviewer.run(f"Review this story:\n\n{story}")
Original prompt

Ignore the current apps in my repo
Create a new app that:

  • A writer agent to write a short story per user's input
  • A review agent to review the story and output score 0-100
  • Use Foundry model
  • In python, use Microsoft Agent Framework SDK

Get the SDK usage and sample from https://github.com/microsoft/agent-framework
Create the app as simple as possible
Keep the connection info (like endpoint, key, model, etc) as placeholders

Created from VS Code.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Add new app for short story writing and review Add python-story-agents: writer + reviewer multi-agent app using Microsoft Agent Framework SDK Feb 25, 2026
Copilot AI requested a review from swatDong February 25, 2026 03:45
@swatDong
Copy link
Copy Markdown
Owner

@copilot are you able to help me trigger an action?

Copy link
Copy Markdown
Author

Copilot AI commented Feb 27, 2026

@copilot are you able to help me trigger an action?

I can see the repository has one active workflow: "Copilot coding agent" — that's the workflow that powers me.

Unfortunately, I'm not able to directly trigger GitHub Actions workflows on your behalf (I don't have the credentials to dispatch workflow runs). However, here's how you can trigger a workflow:

  • Manually via the GitHub UI: Go to Actions tab → select the workflow → click "Run workflow" (only available for workflow_dispatch workflows).
  • Via GitHub CLI: gh workflow run <workflow-name>
  • Via the GitHub API: POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches

If you have a specific workflow you'd like to create or configure to run on this PR (e.g., a CI test, linting, or deployment), I'm happy to help set that up!

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