Skip to content

Conversation

greenie-msft
Copy link
Collaborator

This pull request refactors the PromptChaining/Client sample from a console application to a web-based API, modernizing the architecture and improving usability. The changes include converting the project to an ASP.NET Core minimal API, restructuring model files, adding a Dockerfile for containerization, and providing API documentation and testing instructions.

Major architectural refactor:

  • Converted the Client project from a console app to an ASP.NET Core minimal API by updating the project SDK, refactoring Program.cs to define HTTP endpoints for content generation workflows, and adding API routes for orchestration management and document retrieval. [1] [2]
  • Added a Dockerfile to enable containerized builds and deployment of the API service.

Code and file organization:

  • Moved shared model classes from Shared/Models to Client/Models, updated namespaces accordingly, and enhanced the ContentWorkflowResult model with an ArticleEndpoint property. [1] [2]
  • Removed the project reference to Shared.csproj, making the Client project self-contained.

Documentation and developer experience:

  • Added a README.md with instructions for testing the new API using the VS Code REST Client extension, including a summary of available endpoints and sample workflow steps.

{
connectionString = $"{connectionString};TaskHub={taskHub}";
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be in a helper function

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