Skip to content

When developing an agent for M365 Copilot using the Agent SDK, I encountered some issues. #309

Description

@leobleumer

Background:
I’m currently focused on developing an Agent that works with M365 Copilot Chat, but I’ve encountered some issues. I’d like to ask whether these are limitations of the SDK or bugs.

Regarding this Agent, its functionality and presentation are very similar to the Researcher Agent shown below. It needs to analyze the user’s input, then call backend APIs (which take some time to process) to retrieve streaming SSE data, and finally process and stream the data back to the user.

Image

Questions:
1.When I use turnContext.StreamingResponse.QueueTextChunk to push messages to Copilot 365, it always seems to disconnect after about 5 minutes. Does this mean M365 Copilot has a built-in timer that forcibly closes a StreamingResponse object? (I set the EndStreamTimeout property, but it still disconnects.)

2.How can I keep M365 Copilot in a continuous loading state? Researcher does this very well. Although I can use QueueInformativeUpdateAsync to maintain the loading state, it doesn’t accept Adaptive Cards, so I’m curious how Researcher achieves this.

3.Simply put, does the current .NET Agent SDK support building an agent like Researcher Or should I use the Node.js SDK instead of the .NET SDK? Are there any sample examples or document available?

Thanks~

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions