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

Python: Bug: ConversationSummaryPlugin Python #10059

Closed
haithamshahin333 opened this issue Jan 5, 2025 · 3 comments
Closed

Python: Bug: ConversationSummaryPlugin Python #10059

haithamshahin333 opened this issue Jan 5, 2025 · 3 comments
Labels
bug Something isn't working python Pull requests for the Python Semantic Kernel

Comments

@haithamshahin333
Copy link

Describe the bug
There is not a clear way to leverage this plugin given the function arguments expect both the Kernel and KernelArguments passed to it.

To Reproduce

    arguments["input"] = 'this is a story to be summarized...'
    
    await kernel.invoke(plugin_name="summarizer", function_name="SummarizeConversation", arguments=arguments)

Expected behavior
A summary to be produced

Screenshots
Consistent error on function calling debug output stating that 3 arguments are expected, but only one is provided.

Platform

  • OS: [e.g. Windows, Mac]
  • IDE: [e.g. Visual Studio, VS Code]
  • Language: [e.g. C#, Python]
  • Source: [e.g. NuGet package version 0.1.0, pip package version 0.1.0, main branch of repository]

Additional context
Is there a code example of how to call this plugin?

@haithamshahin333 haithamshahin333 added the bug Something isn't working label Jan 5, 2025
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code python Pull requests for the Python Semantic Kernel triage labels Jan 5, 2025
@github-actions github-actions bot changed the title Bug: ConversationSummaryPlugin Python Python: Bug: ConversationSummaryPlugin Python Jan 5, 2025
@github-actions github-actions bot changed the title Python: Bug: ConversationSummaryPlugin Python .Net: Bug: ConversationSummaryPlugin Python Jan 5, 2025
@sphenry
Copy link
Member

sphenry commented Jan 6, 2025

@eavanvalkenburg can you take a look?

@sphenry sphenry removed triage .NET Issue or Pull requests regarding .NET code labels Jan 6, 2025
@eavanvalkenburg
Copy link
Member

@haithamshahin333 could you share a bit more of the broader script you are using for this, we haven't spend much time on this one, but the tests do work for it. The only thing I see different in your small snippet is that we explicitly do: arguments = KernelArguments(input=CHAT_TRANSCRIPT) but you might have created the KernelArguments earlier. This test works with OpenAI models: https://github.com/microsoft/semantic-kernel/blob/main/python/tests/integration/completions/test_conversation_summary_plugin.py

@eavanvalkenburg eavanvalkenburg changed the title .Net: Bug: ConversationSummaryPlugin Python Python: Bug: ConversationSummaryPlugin Python Jan 7, 2025
@moonbox3
Copy link
Contributor

Closing the issue as we've provided some sample code on how to structure a call to the plugin. Please re-open if you continue to have issues, or file a new issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

No branches or pull requests

5 participants