Skip to content
HPD-Agent

Documentation·Agent runtime for .NET

Build AI agents in .NET.

Tools, sessions, streaming, subagents, hosting, and evals, as one runtime you own. Start with one agent definition and grow into the rest.

35 model providers5 chat platformsNative AOT

Runtime visibility

See everything your agents do. At every level, as it happens.

Your main agent hands work to subagents, and they call tools of their own. Every message, tool call, and approval from the whole tree streams into your app live, labeled with who did it.

How the stream works
Your appLiveMain agentPlanning the refundWaiting on 2 subagentsWriting the reply↳ Billing subagentLooking up the chargeFound a $89 charge ✓↳ CRM subagentUpdating the recordNote added ✓↳ Refund toolWaitingNeeds your approvalApproved ✓Main agentBilling subagentCRM subagentRefund toolUpdate record
StartEndClassifierResearcherAnalystWriterReviewerNeeds changesRound 2 of 3Passed ✓Approve publish?AllowApproved ✓

Multi-agent workflows

Build a team, not just a helper.

Arrange agents into a workflow with routing, parallel work, review loops, and approval steps. Define it in code or YAML, or let one agent run the whole workflow as a single tool.

Build a workflow

Tool harnesses

Package what your agent can do. Activate it only when it's needed.

A tool harness is one C# class that holds tools, skills, subagents, and the middleware that guards them. Every harness starts collapsed to a single line. Your agent activates the one a request needs, picks the right tool inside it, and collapses it again, so even large agents stay fast and focused.

Build a tool harness
Database3 tools · middlewareCollapsedActivatedTools✓find_ordersget_customerupdate_recordMiddlewareRead-only guardBilling2 tools · skill · subagentCollapsedActivatedToolslook_up_charge✓issue_refundSkillRefund policySubagentFraud checkMiddlewareAudit logNeeds approvalYour agentRefund order #4417Email them a receiptShow their last 3 orders

Models and channels

Any model in. Every channel out.

Swap OpenAI for Anthropic, Bedrock, or a local model in one line. Then answer in Slack, Teams, WhatsApp, realtime voice, a terminal, or your own frontend. The agent and its events stay the same.

OpenAI Anthropic Google AI Azure Bedrock Mistral+28 more Slack TeamsDiscord Telegram WhatsAppVoiceTerminal UIHTTP APIOne agentAgentConfig

Voice

Give it a voice. Keep the same agent.

Voice activity and end-of-turn detection keep the conversation natural. Users can talk over it and it stops. Speech starts before the reply is finished, and every voice turn runs the same tools, approvals, and subagents, with the transcript saved to the thread.

Add voice

Evaluations

Test the agent like the rest of your code.

Run evals from xUnit, NUnit, or any test. Deterministic checks report policy violations your CI can fail on, LLM judges grade quality, red-team runs probe for injection and leaks, and live evaluation scores real runs after they answer.

Run your first eval

The first 30 minutes

One agent first. Then the rest of the system.

Go from a local console agent to tools, sessions, streaming, persistence, and hosting, one short page at a time.

Open Getting Started
  1. 01Hello Agent→
  2. 02Streaming Events→
  3. 03Add A Tool→
  4. 04Multi-Turn Sessions→
  5. 05Save Sessions And State→
  6. 06ASP.NET Hosting→

Build beyond the model.
Start with one agent.

Built for production .NET agent applications.