azure-ai-projects-py
Construir Aplicações de IA do Azure com o Foundry SDK
Construa aplicações de IA no Microsoft Foundry usando o Azure AI Projects Python SDK. Esta skill fornece documentação abrangente para criar agentes, gerenciar threads, configurar ferramentas e executar avaliações.
Baixar o ZIP da skill
Upload no Claude
Vá em Configurações → Capacidades → Skills → Upload skill
Ative e comece a usar
Testar
A utilizar "azure-ai-projects-py". Create a basic agent with CodeInterpreterTool
Resultado esperado:
The agent is created successfully with ID 'agent-123abc'. Tools enabled: CodeInterpreterTool. You can now create threads and runs with this agent.
A utilizar "azure-ai-projects-py". Show me how to list deployments
Resultado esperado:
Available deployments: ['gpt-4o-mini', 'gpt-4o', 'o1-mini']. You can use these model names when creating agents.
Auditoria de Segurança
SeguroAll 74 static findings are false positives. The file is a markdown documentation file (SKILL.md) containing code examples for the Azure AI Projects Python SDK. The 'external_commands' detections are markdown code fences, not shell execution. The 'network' detection is a placeholder URL template in documentation. The 'env_access' detections are documentation examples showing SDK configuration. No actual executable code or malicious patterns exist. This is a legitimate documentation skill for Microsoft's Azure Foundry SDK.
Pontuação de qualidade
O Que Você Pode Construir
Construir Agentes de IA no Microsoft Foundry
Crie agentes inteligentes que podem executar código Python, pesquisar arquivos e chamar APIs externas usando o Azure AI Projects SDK.
Configurar Ferramentas e Capacidades do Agente
Adicione capacidades como interpretação de código, pesquisa de arquivos, Bing grounding e chamada de funções personalizadas aos seus agentes.
Executar Avaliações nas Saídas do Agente
Use avaliadores integrados ou crie avaliadores personalizados para testar e medir a qualidade e conformidade dos agentes com os requisitos.
Tente Estes Prompts
Create an Azure AI Projects agent named 'my-agent' using the gpt-4o-mini model with the instruction 'You are a helpful assistant.' Use the AIProjectClient with DefaultAzureCredential.
Create an agent with CodeInterpreterTool and FileSearchTool enabled. The agent should be able to execute Python code and search through uploaded documents.
Show me how to create a thread, add a user message, create and process a run, and retrieve the assistant response using the Azure AI Projects SDK.
Create a versioned agent using PromptAgentDefinition with version label 'v1.0'. Include instructions for a customer support specialist and show how to deploy it.
Melhores Práticas
- Use gerenciadores de contexto (async with) para o AIProjectClient assíncrono para garantir limpeza adequada de recursos
- Crie agentes versionados com PromptAgentDefinition para implantações de produção para manter APIs estáveis
- Limpe agentes com client.agents.delete_agent(agent.id) quando não forem mais necessários para evitar vazamentos de recursos
Evitar
- Não codifique credenciais no código - sempre use DefaultAzureCredential ou variáveis de ambiente
- Não use o AgentsClient de baixo nível quando você precisar de recursos específicos do Foundry como conexões e implantações
- Evite criar muitos agentes sem limpeza - sempre exclua agentes quando terminar
Perguntas Frequentes
Qual é a diferença entre AIProjectClient e AgentsClient?
Como autentico no Azure AI Projects?
Posso usar a API OpenAI diretamente com este SDK?
Quais ferramentas posso adicionar aos meus agentes?
Como crio agentes versionados?
Isso suporta operações assíncronas?
Detalhes do Desenvolvedor
Autor
sickn33Licença
MIT
Repositório
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-ai-projects-pyReferência
main
Estrutura de arquivos
📄 SKILL.md