Archive

337 posts · Page 25 of 29. ← Blog

Pratik Dhanave · ·1 min read

Mcp Tools

Borrowing tools from an external MCP server instead of writing them yourself.

Connecting a Microsoft Agent Framework agent to an external Model Context Protocol server via MCPStdioTool, entered with async with, so its remote tools merge into tools=[...].

Pratik Dhanave · ·1 min read

Middleware

Wrapping an agent run to observe, guard, or short-circuit it — without touching the agent's logic.

Agent, chat, and function middleware in Microsoft Agent Framework: one middleware=[...] list, call_next() with no args, and short-circuiting via MiddlewareTermination.

Pratik Dhanave · ·1 min read

Host Your Agent

Everything so far ran once and exited. To use an agent like a product, put a server in front of it — DevUI stands up a local web chat around any agent with one call.

serve() from agent_framework.devui wraps any agent in a local web chat; it blocks with its own event loop and ships as a separate install.

Pratik Dhanave · ·1 min read

First Graph Workflow

The functional API hid the graph. Here it's explicit: executors are nodes, edges join them, and a message flows from the start executor along the edges.

Build a two-node graph with WorkflowBuilder: executors send_message or yield_output, and the type hint on WorkflowContext carries the routing intent.