azure-ai-projects-py
Audited by Runlayer on Feb 22, 2026
Malicious tool definition detected
Tool: SKILL.md Description: --- name: azure-ai-projects-py description: Build AI applications using the Azure AI Projects Python SDK (azure-ai-projects).
Malicious tool definition detected
Tool: references/acceptance-criteria.md [1/5] Description: # Azure AI Projects SDK Acceptance Criteria **SDK**: `azure-ai-projects` **Repository**: https://github.com/Azure/azure-sdk-for-python **Purpose**: Skill testing acceptance criteria for validating generated code correctness --- ## 1.
Tool: references/acceptance-criteria.md [2/5] Description: print(f"Content: {content.text.value}") ``` ### 4.6 ✅ CORRECT: Create and Process Run ```python run = project_client.agents.runs.create_and_process( thread_id=thread.id, agent_id=agent.id, ) print(f"Run finished with status: {run.status}") if run.status == "failed": print(f"Run failed: {run.last_error}") ``` ### 4.7 ✅ CORRECT: Create and Process Run with ToolSet ```python from azure.ai.agents.models import FunctionTool, ToolSet def get_w
Tool: references/acceptance-criteria.md [3/5] Description: and call `evals.create()` on that client instead.
Tool: references/acceptance-criteria.md [4/5] Description: process run run = await client.agents.runs.create_and_process( thread_id=thread.id, agent_id=agent.id, ) # Get messages if run.status == "completed": messages = await client.agents.messages.list(thread_id=thread.id) async for msg in messages: if msg.role == "assistant": print(f"Response: {msg.content[0].text.value}") # Clean up await client.agents.delete_agent(agent.id) asyncio.run(async_conversation()) ``` ### 9.3 ✅ CORRECT: Async Itera
Tool: references/acceptance-criteria.md [5/5]
Malicious tool definition detected
Tool: references/agents.md Description: # Agent Operations Reference ## Agent Types and Kinds ```python from azure.ai.projects.models import AgentKind # Agent kinds # - "prompt": Standard prompt-based agents # - "hosted": Hosted agents # - "container_app": Container App agents # - "workflow": Workflow agents # Filter agents by kind agents = project_client.agents.list(kind=AgentKind.PROMPT) ``` ## Basic Agent Creation ```python agent = project_client.agents.create_agent( model=os.environ["AZURE_A
Malicious tool definition detected
Tool: references/api-reference.md [1/3] Description: # Azure AI Projects SDK - Complete API Reference **Package**: `azure-ai-projects` v2.0.0b4 **Repository**: [Azure/azure-sdk-for-python](https://github.com/Azure/azure-sdk-for-python) **Path**: `sdk/ai/azure-ai-projects/` **Commit**: `7e86ab0076297173aae290c11fa14660bed2b125` --- ## Table of Contents 1.
Tool: references/api-reference.md [2/3] Description: CosmosDBIndex( connection_id="cosmos_connection_id", database_name="my-db", container_name="my-container", ) ``` ### IndexType Enum ```python IndexType.AZURE_AI_SEARCH # "azure_ai_search" IndexType.MANAGED_AZURE_AI_SEARCH # "managed_azure_ai_search" IndexType.COSMOS_DB # "cosmos_db" ``` --- ## 7.
Tool: references/api-reference.md [3/3] Description: WEEKLY, MONTHLY DayOfWeek # MONDAY through SUNDAY ScheduleTaskType # EVALUATION, INSIGHT ScheduleProvisioningStatus # PROVISIONING, PROVISIONED, FAILED ``` ### Credential Enums ```python CredentialType # API_KEY, ENTRA_ID, SAS, NO_AUTH, AGENTIC_IDENTITY, CUSTOM ``` ### Connection Enums ```python ConnectionType # AZURE_OPEN_AI, AZURE_AI_SEARCH, AZURE_BLOB, etc.
Malicious tool definition detected
Tool: references/async-patterns.md Description: # Async Patterns Reference ## Async Client Setup ```python import os import asyncio from azure.ai.projects.aio import AIProjectClient from azure.identity.aio import DefaultAzureCredential # Requires: pip install aiohttp async def main(): async with ( DefaultAzureCredential() as credential, AIProjectClient( endpoint=os.environ["AZURE_AI_PROJECT_ENDPOINT"], credential=credential, ) as client, ): # Use async operations pass asyncio.run(main()) ``` ##
Malicious tool definition detected
Tool: references/built-in-evaluators.md Description: # Built-in Evaluators Reference Complete reference for Microsoft Foundry's built-in evaluators using the `azure-ai-projects` SDK.
Malicious tool definition detected
Tool: references/connections.md Description: # Connections Operations Reference ## Overview Connections provide access to external Azure services like Azure OpenAI, Azure AI Search, Bing, and more.
Malicious tool definition detected
Tool: references/custom-evaluators.md [1/2] Description: # Custom Evaluators Reference Create custom evaluators when built-in evaluators don't meet your needs using the `azure-ai-projects` SDK.
Tool: references/custom-evaluators.md [2/2] Description: print(f"Data Schema: {evaluator.definition.data_schema}") print(f"Metrics: {evaluator.definition.metrics}") ``` ### Update Evaluator ```python updated = project_client.evaluators.update_version( name="word_count_evaluator", version="1", evaluator_version={ "description": "Updated description", "display_name": "Word Count v2", } ) ``` ### Delete Evaluator ```python project_client.evaluators.delete_version( name="word_count_evaluator", versi
Malicious tool definition detected
Tool: references/datasets-indexes.md Description: # Datasets and Indexes Reference ## Datasets ### Upload File ```python from azure.ai.projects.models import DatasetVersion dataset = project_client.datasets.upload_file( name="my-dataset", version="1.0", file_path="./data/training_data.csv", connection_name="my-storage-connection", ) print(f"Dataset uploaded: {dataset.name} v{dataset.version}") ``` ### Upload Folder ```python import re from azure.ai.projects.models import DatasetVersion dataset =
Malicious tool definition detected
Tool: references/deployments.md Description: # Deployments Operations Reference ## Overview Deployments represent AI model deployments in your Azure AI Foundry project.
Malicious tool definition detected
Tool: references/evaluation.md Description: # Evaluation Operations Reference Evaluate AI agents and models using Microsoft Foundry's cloud evaluation service.
Malicious tool definition detected
Tool: references/tools.md Description: # Agent Tools Reference ## Tool Import Patterns ```python # From azure.ai.agents.models (low-level tools) from azure.ai.agents.models import ( CodeInterpreterTool, FileSearchTool, FunctionTool, BingGroundingTool, OpenApiTool, OpenApiAnonymousAuthDetails, FilePurpose, MessageAttachment, ToolSet, SharepointTool, FabricTool, ConnectedAgentTool, McpTool, ) # From azure.ai.projects.models (project-level tools) from azure.ai.projects.models import ( AzureAISearch
Malicious tool definition detected
Tool: scripts/run_batch_evaluation.py Description: #!/usr/bin/env python3 """ Batch Evaluation CLI Tool Run batch evaluations on test datasets using Azure AI Projects SDK.