Skip to main content

104 posts tagged with "AI"

Artificial Intelligence Technologies and Solutions

View All Tags

How to Keep Each User's Conversations Separate in a Microsoft Agent Framework AG-UI Server

· 24 min read
Jagdish Kumawat
Founder @ Dewiride

An AG-UI request names the conversation it continues with a threadId, and a Microsoft Agent Framework server continues whichever conversation that ID points to. Unless the server also files conversations by who is asking, anyone who sends your threadId continues your conversation. This guide files every conversation under the signed-in caller's Microsoft Entra ID object ID, with real runs: the same person continuing a conversation, and a second caller getting a new one with the same threadId.

How to Add a Stop Button to an AG-UI Chat

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

A long AI answer needs a way out: a Stop button that ends it where it is. With the AG-UI TypeScript client, the stop itself is one call, abortRun(). Around it, the page needs to know when a run is going, show Stop instead of Send, and not mistake the stop for an error. This guide adds all of that to a React chat and shows the result.

How to Customize the Request an AG-UI HttpAgent Sends

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

HttpAgent from @ag-ui/client sends a complete AG-UI request on every run: the whole conversation, tools, state and more. That's right for talking to an AG-UI server directly, but not for a server route that accepts only a few fields — or an agent that keeps its own history. HttpAgent builds each request in a method you can override, requestInit. This guide shows the default body, the override, and the real bodies before and after.

How to Filter AG-UI Events Before They Reach the Browser

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

An AG-UI server streams a lot more than a chat page shows. Microsoft Agent Framework's events carry the model provider's own update in rawEvent — response IDs and the exact model version — the final event reports token usage, and reasoning models send encrypted reasoning. A server route between the agent and the browser can pass on only what the page needs. This guide shows the filter and real events before and after it.

Fixed: "signal is aborted without reason" After Stopping an AG-UI Run

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

My chat page had a Stop button that calls abortRun() on its AG-UI agent. Pressing it stopped the answer — and showed signal is aborted without reason in red, as if something had failed. That text is the browser's wording for a cancelled request: @ag-ui/client 1.0.5 ends a stopped run with its own RUN_ERROR event, code abort. Skipping that one code fixed it.

Fixed: next dev "Generated AGENTS.md for AI agents" in a Next.js App

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

I ran npm run dev from an AI coding assistant, and Next.js 16.4.6 printed ✓ Generated AGENTS.md for AI agents and added an AGENTS.md file to the project — although I had created the app with --no-agents-md. It's the agentRules option of next dev, and agentRules: false in next.config.ts turns it off and removes the file.

How to Keep Conversation History in a Microsoft Agent Framework AG-UI Server (.NET)

· 10 min read
Jagdish Kumawat
Founder @ Dewiride

An agent that you serve with Microsoft Agent Framework's MapAGUIServer answers every request as if it had never met you — until the server has somewhere to keep conversations. That place is a session store. This guide adds one for development, shows the same follow-up question before and after, and explains where the history really ends up.

How to See the Conversation History Microsoft Foundry Stored for a Response

· 10 min read
Jagdish Kumawat
Founder @ Dewiride

When an app continues a conversation through Microsoft Foundry's Responses API, it often sends only the newest message, and Foundry rebuilds the rest from its stored responses. This guide shows you exactly what Foundry rebuilt: the full input behind any answer, from one Azure CLI command, with no API key.