Skip to content

Add AgentSamples project to repository#36

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/create-new-repo-agent-samples
Draft

Add AgentSamples project to repository#36
Copilot wants to merge 3 commits intomainfrom
copilot/create-new-repo-agent-samples

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 27, 2025

Creates a new sample project demonstrating basic OpenAI Agent usage with Semantic Kernel.

Changes

  • New project: SKSampleCSharp/AgentSamples/

    • Console application targeting .NET 8.0
    • Dependencies: Microsoft.SemanticKernel 1.18.2, Microsoft.SemanticKernel.Agents.OpenAI 1.18.2-alpha
    • Implements basic OpenAI Assistant Agent with Azure OpenAI integration
  • Solution integration: Added as "49AgentSamples" to SKSample.sln with standard Debug/Release configurations

Implementation

The sample follows the existing pattern from OpenAIAgent and SKAgent projects:

var openAIClientProvider = OpenAIClientProvider.ForAzureOpenAI(
    new ApiKeyCredential(Config.ApiKey), 
    new Uri(Config.Endpoint));

OpenAIAssistantDefinition assistantDefinition = new(Config.ModelName)
{
    Name = "Agent Sample Assistant",
    Instructions = "You are a helpful AI assistant. Answer questions based on user input."
};

var agent = await OpenAIAssistantAgent.CreateAsync(kernel, openAIClientProvider, assistantDefinition);
Original prompt

create new repro called "AgentSamples"


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 27, 2025 14:02
Co-authored-by: rvinothrajendran <16264167+rvinothrajendran@users.noreply.github.com>
Co-authored-by: rvinothrajendran <16264167+rvinothrajendran@users.noreply.github.com>
Copilot AI changed the title [WIP] Create new repository called AgentSamples Add AgentSamples project to repository Dec 27, 2025
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