sickn33/antigravity-awesome-skills/azure-ai-agents-persistent-dotnet
- 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.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/azure-ai-agents-persistent-dotnetSKILL.md
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
Pin compatible package versions and verify the linked SDK signatures; fragments use project-defined helper functions and are not a complete application. Confirm endpoint/deployment, authorized tool actions, upload scope and budget before runs. Use a finite cancellation deadline for polling/streaming and distinguish completed, failed, cancelled, expired and requires-action states before reading a final answer. Validate/allowlist each function name and typed argument set before execution; never execute raw model arguments as code or SQL. Delete only resources created by the current run in a finally block, preserving needed evidence.
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
- Reuse SDK clients according to the installed SDK lifetime guidance; do not assume every client implements IDisposable
- 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 |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/azure-ai-agents-persistent-dotnet/SKILL.md
Popularity
- Repository stars
- 26,437
- Repository forks
- 4,509
- Repository npm downloads, 7 days
- 6,478
- 7-day trend score
- 72
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 22 Mar 2026, 7 months ago.
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/sickn33/antigravity-awesome-skills/azure-ai-agents-persistent-dotnet)