Skip to content

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

@rwjdk

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

.NETbugSomething isn't workingquestionFurther information is requested

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions