jarbitechture/claude-skills-archive/azure-ai-agents-persistent-dotnet
Claude Code and agent skill by jarbitechture/claude-skills-archive
- community
Checking that the SKILL.md file is still in the repository.
Azure AI Agents Persistent SDK for .NET. Low-level SDK for creating and managing AI agents with threads, messages, runs, and tools. Use for agent CRUD, conversation threads, streaming responses, function calling, file search, and code interpreter. Triggers: "PersistentAgentsClient", "persistent agents", "agent threads", "agent runs", "streaming agents", "function calling agents .NET".
Install
npx vskill@latest install jarbitechture/claude-skills-archive/azure-ai-agents-persistent-dotnetSKILL.md
The same SKILL.md was published earlier as jarbitechture/claude-skills-archive/azure-ai-agents-persistent-dotnet.
Azure.AI.Agents.Persistent (.NET)
Low-level SDK for creating and managing persistent AI agents with threads, messages, runs, and tools.
Installation
Current Versions: Stable v1.1.0, Preview v1.2.0-beta.8
Environment Variables
Authentication
Client Hierarchy
Core Workflow
1. Create Agent
2. Create Thread and Message
3. Run Agent (Polling)
4. Streaming Response
5. Function Calling
6. File Search with Vector Store
7. Bing Grounding
8. Azure AI Search
9. Cleanup
Available Tools
| Tool | Class | Purpose | |
|---|---|---|---|
| Code Interpreter | CodeInterpreterToolDefinition | Execute Python code, generate visualizations | |
| File Search | FileSearchToolDefinition | Search uploaded files via vector stores | |
| Function Calling | FunctionToolDefinition | Call custom functions | |
| Bing Grounding | BingGroundingToolDefinition | Web search via Bing | |
| Azure AI Search | AzureAISearchToolDefinition | Search Azure AI Search indexes | |
| OpenAPI | OpenApiToolDefinition | Call external APIs via OpenAPI spec | |
| Azure Functions | AzureFunctionToolDefinition | Invoke Azure Functions | |
| MCP | MCPToolDefinition | Model Context Protocol tools | |
| SharePoint | SharepointToolDefinition | Access SharePoint content | |
| Microsoft Fabric | MicrosoftFabricToolDefinition | Access Fabric data |
Streaming Update Types
| Update Type | Description | |
|---|---|---|
StreamingUpdateReason.RunCreated | Run started | |
StreamingUpdateReason.RunInProgress | Run processing | |
StreamingUpdateReason.RunCompleted | Run finished | |
StreamingUpdateReason.RunFailed | Run errored | |
MessageContentUpdate | Text content chunk | |
RunStepUpdate | Step status change |
Key Types Reference
| Type | Purpose | |
|---|---|---|
PersistentAgentsClient | Main entry point | |
PersistentAgent | Agent with model, instructions, tools | |
PersistentAgentThread | Conversation thread | |
PersistentThreadMessage | Message in thread | |
ThreadRun | Execution of agent against thread | |
RunStatus | Queued, InProgress, RequiresAction, Completed, Failed | |
ToolResources | Combined tool resources | |
ToolOutput | Function call response |
Best Practices
- Always dispose clients — Use
usingstatements or explicit disposal - Poll with appropriate delays — 500ms recommended between status checks
- Clean up resources — Delete threads and agents when done
- Handle all run statuses — Check for
RequiresAction,Failed,Cancelled - Use streaming for real-time UX — Better user experience than polling
- Store IDs not objects — Reference agents/threads by ID
- Use async methods — All operations should be async
Error Handling
Related SDKs
| SDK | Purpose | Install | |
|---|---|---|---|
Azure.AI.Agents.Persistent | Low-level agents (this SDK) | dotnet add package Azure.AI.Agents.Persistent | |
Azure.AI.Projects | High-level project client | dotnet add package Azure.AI.Projects |
Reference Links
| Resource | URL | |
|---|---|---|
| NuGet Package | https://www.nuget.org/packages/Azure.AI.Agents.Persistent | |
| API Reference | https://learn.microsoft.com/dotnet/api/azure.ai.agents.persistent | |
| GitHub Source | https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Agents.Persistent | |
| Samples | https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Agents.Persistent/samples |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingazure-ai-agents-persistent-dotnet/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jarbitechture/claude-skills-archive/azure-ai-agents-persistent-dotnet)