Thanks to visit codestin.com
Credit goes to github.com

Skip to content

.NET: [Bug]: How do you in RC1 get the messages in a session? #4140

Description

@rwjdk

Description

Before RC1 you could do the following to get the messages in a session:

AgentSession session = await agent.CreateSessionAsync();
IList<ChatMessage> messagesInSession = session.GetService<IList<ChatMessage>>()!;

I can't for the life of me see how you can do something similar in the RC1 version :-(

Code Sample

Error Messages / Stack Traces

Package Versions

RC1

.NET Version

.NET10

Additional Context

No response

Metadata

Metadata

Assignees

Labels

.NETUsage: [Issues, PRs], Target: .NetbugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)questionUsage: [Issues, PRs], Target: all issues or PRs where additional context is needed from the author

Type

Fields

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions