u/Junior-Platypus-649

Persistent memory in hosting Copilot Agents in .NET

Hello, i was wondering if there was any resources anyone has on saving chats and loading them up again. Right now im hosting my copilot agent in .net and want to have chats save and loaded depending on the user. I have it authenticated using Entra ID, but I'm imagining it wouldnt work with that or be different? I first had used a threadID in localstorage, which would persist a message even if a refresh happened, but not if the server crashed. That option doesnt really help with loading chats back however.

Thanks for any help

reddit.com
u/Junior-Platypus-649 — 3 days ago

Connection Param setting not available in new view of Copilot Agent?

https://preview.redd.it/c0hhhowh8nhh1.png?width=1067&format=png&auto=webp&s=e63ebba7f07e1d98460f53025c4ab2a61e993510

Hello, im trying out the new version of copilot agent, and I'm trying to find something like this 'Allow permission to share parameters' option in the connection setting in the old view of agent on Copilot Agent Studio, but in the new view of Copilot Agent, that doesnt exist anywhere? There are no connection settings or anything from what I can find

Would appreciate some help on this

reddit.com
u/Junior-Platypus-649 — 15 days ago

End-user credential connector consent card never appears when calling agent via M365 Agents SDK (CopilotStudio.Client) console app, even though it works fine in the Studio test pane

Bare with me, yes a decent bit of the body is AI generated.

My setup:

  • Copilot Studio agent with an Azure Databricks Genie MCP tool added, "Credentials to use" set to end user credentials as opposed to maker credentials
  • Calling the agent from a .NET console app using Microsoft.Agents.CopilotStudio.Client (v1.6.150), based on the official samples/dotnet/copilotstudio-client sample, interactive MSAL login via a dedicated Public Client/Native App Registration with CopilotStudio.Copilots.Invoke granted
  • Agent is published

the agent worked, connecting to genie in the studio pane, everything was fine. It worked when i integrated it in my .net solution, however that was only under make provided credentials.

However, what didnt work was under End user credentials, asking the same question through the console app never offers Genie as a tool at all. The model's own reasoning shows it only sees 2-3 other tools which arent the genie mcp tool

My question is: Is end-user connector/OAuth consent for MCP tools (Adaptive Card-based) actually expected to work at all when calling an agent through the raw CopilotStudio.Client SDK outside of WebChat/Teams? Microsoft's own docs say connector-scope enforcement for end-user credential tools currently applies at runtime only in Teams. Is there a supported way to complete this consent flow from a bare SDK client (console app or custom backend), or is this fundamentally something only WebChat's built-in Adaptive Card handling supports right now?

thanks for any feedback

reddit.com
u/Junior-Platypus-649 — 1 month ago

End-user credential connector consent card never appears when calling agent via M365 Agents SDK (CopilotStudio.Client) console app, even though it works fine in the Studio test pane

Bare with me, yes a decent bit of the body is AI generated.

My setup:

  • Copilot Studio agent with an Azure Databricks Genie MCP tool added, "Credentials to use" set to end user credentials as opposed to maker credentials
  • Calling the agent from a .NET console app using Microsoft.Agents.CopilotStudio.Client (v1.6.150), based on the official samples/dotnet/copilotstudio-client sample, interactive MSAL login via a dedicated Public Client/Native App Registration with CopilotStudio.Copilots.Invoke granted
  • Agent is published

the agent worked, connecting to genie in the studio pane, everything was fine. It worked when i integrated it in my .net solution, however that was only under make provided credentials.

However, what didnt work was under End user credentials, asking the same question through the console app never offers Genie as a tool at all. The model's own reasoning shows it only sees 2-3 other tools which arent the genie mcp tool

My question is: Is end-user connector/OAuth consent for MCP tools (Adaptive Card-based) actually expected to work at all when calling an agent through the raw CopilotStudio.Client SDK outside of WebChat/Teams? Microsoft's own docs say connector-scope enforcement for end-user credential tools currently applies at runtime only in Teams. Is there a supported way to complete this consent flow from a bare SDK client (console app or custom backend), or is this fundamentally something only WebChat's built-in Adaptive Card handling supports right now?

thanks for any feedback

reddit.com
u/Junior-Platypus-649 — 1 month ago

Response generated by using general knowledge from LLM. Any solutions?

https://preview.redd.it/btb202dzei7h1.png?width=383&format=png&auto=webp&s=1552d34103449e93ce9c609188400334a5cbf249

Basically the title, is this a concern? im using an agent which just queries azure sql from natural language, and it gets the query execution sometimes right, sometimes wrong. not sure how to change the referenced source.

additionally, i was wondering if there was a workaround around how many rows are returned when asking the agent for a query? i always get 10 but nothing more then that.

reddit.com
u/Junior-Platypus-649 — 2 months ago