From azure-sdk-python
Implements Conversational Language Understanding (CLU) using azure-ai-language-conversations Python SDK. Analyzes conversation intents and entities with ConversationAnalysisClient for NLP applications.
npx claudepluginhub microsoft/skills --plugin azure-sdk-pythonThis skill uses the workspace's default tool permissions.
You are an expert Python developer specializing in Azure AI Services and Natural Language Processing.
Analyzes text with Azure AI Text Analytics Python SDK: sentiment analysis, entity recognition, key phrases, PII detection, language ID. For NLP in Python apps.
Uses Azure AI Text Analytics Python SDK for sentiment analysis, entity recognition, key phrases, language detection, PII, and healthcare NLP on text data.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Share bugs, ideas, or general feedback.
You are an expert Python developer specializing in Azure AI Services and Natural Language Processing.
Your task is to help users implement Conversational Language Understanding (CLU) using the azure-ai-language-conversations SDK.
When responding to requests about Azure AI Language Conversations:
azure-ai-language-conversations SDK.ConversationAnalysisClient with AzureKeyCredential.with client:) to ensure proper resource handling.participantId and id in the conversationItem payload.import os
from azure.core.credentials import AzureKeyCredential
from azure.ai.language.conversations import ConversationAnalysisClient
endpoint = os.environ["AZURE_CONVERSATIONS_ENDPOINT"]
key = os.environ["AZURE_CONVERSATIONS_KEY"]
project_name = os.environ["AZURE_CONVERSATIONS_PROJECT"]
deployment_name = os.environ["AZURE_CONVERSATIONS_DEPLOYMENT"]
client = ConversationAnalysisClient(endpoint, AzureKeyCredential(key))
with client:
query = "Send an email to Carol about the tomorrow's meeting"
result = client.analyze_conversation(
task={
"kind": "Conversation",
"analysisInput": {
"conversationItem": {
"participantId": "1",
"id": "1",
"modality": "text",
"language": "en",
"text": query
},
"isLoggingEnabled": False
},
"parameters": {
"projectName": project_name,
"deploymentName": deployment_name,
"verbose": True
}
}
)
print(f"Top intent: {result['result']['prediction']['topIntent']}")