소스 정보
- 저장소
- Azure-Samples/art-voice-agent-accelerator
- 최근 소스 활동
- 2026년 1월 26일 18:43
- 감지된 SKILL.md 언어
- 영어
- 스타
- 73
- 포크
- 62
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Azure-Samples/art-voice-agent-accelerator --skill add-message-handler명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
Read-only — assemble the wider runtime picture of a deployed voice app from azd deployment artifacts and Azure Monitor (Application Insights / Log Analytics) via Azure MCP or az CLI, then render it as KQL, call timelines, latency waterfalls, and mermaid diagrams
Service catalog and guided onboarding for the azd deployment. USE WHEN the user wants to discover, install, set up, or be walked through the deployable components (Azure OpenAI/AI Foundry, Speech, ACS/telephony, Cosmos DB, Redis, Container Apps, Key Vault, App Config, CardAPI MCP), asks "what gets deployed", "what services does this use", "help me onboard", "set up the deployment", "guide me through azd up", "which components do I need", or wants to enable optional pieces (phone number, EasyAuth, data seeding). Acts as the entry point an agent hooks into to assess current state, present the catalog, and onboard each component. DO NOT USE FOR: deep azd hook/flow internals or model-availability checks (use deployment-guide); runtime failure diagnosis (use troubleshoot); telemetry/log analysis (use observability-insights).
Agent-first, read-only diagnosis of the voice pipeline (deploy, telephony, STT, LLM, TTS, state) — gather evidence via Azure MCP / azd artifacts / CLI, probe the user for missing details, and recommend fixes without changing anything
| name | add-message-handler |
| description | Add a handler for a new WebSocket message type |
Add handlers for new WebSocket message types in the frontend.
interface MessageEnvelope {
type: string; // Message type identifier
sender: string; // "Assistant" | "User" | "System"
payload: object; // Actual message content
ts: string; // ISO 8601 timestamp
session_id: string; // Session identifier
topic?: string; // Optional routing topic
}
Add to message handler switch in hooks/useWebSocket.js or App.jsx:
const handleMessage = useCallback((event) => {
const envelope = JSON.parse(event.data);
switch (envelope.type) {
// ... existing cases ...
case 'my_new_type':
handleMyNewType(envelope.payload);
break;
default:
console.log('Unknown message type:', envelope.type);
}
}, []);
const handleMyNewType = useCallback((payload) => {
// Extract data from payload
const { field1, field2 } = payload;
// Update state
setMyState(prev => ({
...prev,
field1,
field2,
}));
// Optional: trigger side effects
if (field1) {
onFieldUpdate?.(field1);
}
}, [onFieldUpdate]);
const [myState, setMyState] = useState({
field1: null,
field2: null,
});
| Type | Payload | Handler Action |
|---|---|---|
assistant_streaming | { content, streaming } | Append to message buffer |
assistant | { content } | Finalize message |
event | { event_type, event_data } | Route to event handler |
tool_start | { tool_name, tool_call_id } | Show tool indicator |
tool_end | { tool_name, result, error } | Hide indicator, log result |
audio_data | { data, sample_rate } | Send to AudioWorklet |
// State
const [activeTools, setActiveTools] = useState(new Map());
// Handler
const handleToolProgress = useCallback((envelope) => {
const { tool_name, tool_call_id, pct } = envelope.payload;
setActiveTools(prev => {
const next = new Map(prev);
if (envelope.type === 'tool_start') {
next.set(tool_call_id, { name: tool_name, progress: 0 });
} else if (envelope.type === 'tool_progress') {
const tool = next.get(tool_call_id);
if (tool) next.set(tool_call_id, { ...tool, progress: pct });
} else if (envelope.type === 'tool_end') {
next.delete(tool_call_id);
}
return next;
});
}, []);
// In switch
case 'tool_start':
case 'tool_progress':
case 'tool_end':
handleToolProgress(envelope);
break;
const handleEventMessage = useCallback((payload) => {
const { event_type, event_data } = payload;
switch (event_type) {
case 'agent_change':
setActiveAgent(event_data.active_agent_label);
break;
case 'session_updated':
setSession(prev => ({ ...prev, ...event_data }));
break;
case 'call_connected':
setCallStatus('connected');
break;
default:
console.log('Unhandled event:', event_type);
}
}, []);
// Text message envelope
const sendTextMessage = (text) => {
socket.send(JSON.stringify({
type: 'user_message',
sender: 'User',
payload: { text },
ts: new Date().toISOString(),
session_id: sessionId,
}));
};
// Binary audio data (no envelope)
const sendAudioData = (pcmSamples) => {
socket.send(pcmSamples.buffer);
};