-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codebugSomething isn't workingSomething isn't workingkernelIssues or pull requests impacting the core kernelIssues or pull requests impacting the core kerneltriage
Description
Describe the bug
When tokens are counted in StepwisePlanner, messages serialize incorrectly: Code URL
The outcome looks like this:
Microsoft.SemanticKernel.AI.ChatCompletion.ChatHistory+ChatMessage
Microsoft.SemanticKernel.AI.ChatCompletion.ChatHistory+ChatMessage
Microsoft.SemanticKernel.AI.ChatCompletion.ChatHistory+ChatMessage
Microsoft.SemanticKernel.AI.ChatCompletion.ChatHistory+ChatMessage
To Reproduce
Steps to reproduce the behavior:
- Put a breakpoint in GetChatHistoryTokens
- Run StepwisePlanner
- See messages string content
Expected behavior
Message content should be concatenated.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
- OS: Windows
- IDE: Visual Studio
- Language: C#
- Source: NuGet package version 0.23.230906.2-preview
Additional context
Add any other context about the problem here.
lemillermicrosoft
Metadata
Metadata
Assignees
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codebugSomething isn't workingSomething isn't workingkernelIssues or pull requests impacting the core kernelIssues or pull requests impacting the core kerneltriage
Type
Projects
Status
Sprint: Done