Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Bug: Semantic Kernel prompt template is not working for Agents #10067

Closed
KSemenenko opened this issue Jan 6, 2025 · 0 comments
Closed
Labels
bug Something isn't working .NET Issue or Pull requests regarding .NET code triage

Comments

@KSemenenko
Copy link

KSemenenko commented Jan 6, 2025

Describe the bug
We try to use templats and acccording to this codumention https://learn.microsoft.com/en-us/semantic-kernel/frameworks/agent/agent-templates?pivots=programming-language-csharp it shoud work.

but in our case it doesent'

To Reproduce
We just use this

// Initialize a Kernel with a chat-completion service
Kernel kernel = ...;

ChatCompletionAgent agent =
    new()
    {
        Kernel = kernel,
        Name = "StoryTeller",
        Instructions = "Tell a story about {{$topic}} that is {{$length}} sentences long.",
        Arguments = new KernelArguments()
        {
            { "topic", "Dog" },
            { "length", "3" },
        }
    };

and result was like properties are not setted. model ask to provide topic and length

Expected behavior
it shoud works

Platform

  • OS: [Windows]
  • IDE: [Visual Studio, Rider]
  • Language: [C#]
  • Source: [e.g. NuGet package version 0.1.0, pip package version 0.1.0, main branch of repository]
  • Microsoft.SemanticKernel Version="1.32.0"
    SemanticKernel.Assistants Version="1.31.2"

Additional context

@KSemenenko KSemenenko added the bug Something isn't working label Jan 6, 2025
@KSemenenko KSemenenko changed the title Bug: Semantic Kernel prompt template is not working ofr Agenetns Bug: Semantic Kernel prompt template is not working for Agents Jan 6, 2025
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code triage labels Jan 6, 2025
@github-actions github-actions bot changed the title Bug: Semantic Kernel prompt template is not working for Agents .Net: Bug: Semantic Kernel prompt template is not working for Agents Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working .NET Issue or Pull requests regarding .NET code triage
Projects
None yet
Development

No branches or pull requests

2 participants