By the end of this module, you will be able to:
The AI Toolkit for Visual Studio Code is Microsoft's flagship extension that transforms VS Code into a comprehensive AI development environment.
It bridges the gap between AI research and practical application development, making generative AI accessible to developers of all skill levels.
| Feature | Description | Use Case |
|---------|-------------|----------|
| 🗂️ Model Catalog | Access 100+ models from GitHub, ONNX, OpenAI, Anthropic, Google | Model discovery and selection |
| 🔌 BYOM Support | Integrate your own models (local/remote) | Custom model deployment |
| 🎮 Interactive Playground | Real-time model testing with chat interface | Rapid prototyping and testing |
| 📎 Multi-Modal Support | Handle text, images, and attachments | Complex AI applications |
| ⚡ Batch Processing | Run multiple prompts simultaneously | Efficient testing workflows |
| 📊 Model Evaluation | Built-in metrics (F1, relevance, similarity, coherence) | Performance assessment |
Step 1: Access Extensions Marketplace
1. Open Visual Studio Code
2.
Navigate to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X)
3. Search for "AI Toolkit"
Step 2: Choose Your Version
Step 3: Install and Activate
🎯 Objective: Master the Model Catalog and test your first AI model
The Model Catalog is your gateway to the AI ecosystem. It aggregates models from multiple providers, making it easy to discover and compare options.
🔍 Navigation Guide:
Click on MODELS - Catalog in the AI Toolkit sidebar
💡 Pro Tip: Look for models with specific capabilities that match your use case (e.g., code generation, creative writing, analysis).
⚠️ Note: GitHub-hosted models (i.e.
GitHub Models) are free to use but are subject to rate limits on requests and tokens.
If you want to access non-GitHub models (that is, external models hosted via Azure AI or other endpoints), you'll need to supply the appropriate API key or authentication.
Model Selection Strategy:
🔧 Configuration Process:
1. Select OpenAI GPT-4.1 from the catalog
2. Click Add to My Models - this registers the model for use
3. Choose Try in Playground to launch the testing environment
4. Wait for model initialization (first-time setup may take a moment)
⚙️ Understanding Model Parameters:
The Playground is your AI experimentation lab. Here's how to maximize its potential:
🎨 Prompt Engineering Best Practices:
1. Be Specific: Clear, detailed instructions yield better results
2. Provide Context: Include relevant background information
3. Use Examples: Show the model what you want with examples
4. Iterate: Refine prompts based on initial results
🧪 Testing Scenarios:
# Example 1: Code Generation
"Write a Python function that calculates the factorial of a number using recursion. Include error handling and docstrings."
# Example 2: Creative Writing
"Write a professional email to a client explaining a project delay, maintaining a positive tone while being transparent about challenges."
# Example 3: Data Analysis
"Analyze this sales data and provide insights: [paste your data]. Focus on trends, anomalies, and actionable recommendations."
🎯 Goal: Compare different models using identical prompts to understand their strengths
📋 Instructions:
1. Add Phi-4-mini to your workspace
2. Use the same prompt for both GPT-4.1 and Phi-4-mini
3. Compare response quality, speed, and accuracy
4. Document your findings in the results section
💡 Key Insights to Discover:
🎯 Objective: Create specialized AI agents tailored for specific tasks and workflows
Agent Builder is where AI Toolkit truly shines. It allows you to create purpose-built AI assistants that combine the power of large language models with custom instructions, specific parameters, and specialized knowledge.
🧠 Agent Architecture Components:
🎨 Creating Effective System Prompts:
# Template Structure:
## Role Definition
You are a [specific role] with expertise in [domain].
## Capabilities
- List specific abilities
- Define scope of knowledge
- Clarify limitations
## Behavior Guidelines
- Response style (formal, casual, technical)
- Output format preferences
- Error handling approach
## Examples
Provide 2-3 examples of ideal interactions
*Of course, you can also use Generate System Prompt to use AI to help you generate and optimize prompts*
🔧 Parameter Optimization:
| Parameter | Recommended Range | Use Case |
|-----------|------------------|----------|
| Temperature | 0.1-0.3 | Technical/factual responses |
| Temperature | 0.7-0.9 | Creative/brainstorming tasks |
| Max Tokens | 500-1000 | Concise responses |
| Max Tokens | 2000-4000 | Detailed explanations |
🎯 Mission: Create a specialized Python coding assistant
📋 Configuration Steps:
1. Model Selection: Choose Claude 3.5 Sonnet (excellent for code)
2. System Prompt Design:
# Python Programming Expert Agent
## Role
You are a senior Python developer with 10+ years of experience. You excel at writing clean, efficient, and well-documented Python code.
## Capabilities
- Write production-ready Python code
- Debug complex issues
- Explain code concepts clearly
- Suggest best practices and optimizations
- Provide complete working examples
## Response Format
- Always include docstrings
- Add inline comments for complex logic
- Suggest testing approaches
- Mention relevant libraries when applicable
## Code Quality Standards
- Follow PEP 8 style guidelines
- Use type hints where appropriate
- Handle exceptions gracefully
- Write readable, maintainable code
3. Parameter Configuration:
- Temperature: 0.2 (for consistent, reliable code)
- Max Tokens: 2000 (detailed explanations)
- Top-p: 0.9 (balanced creativity)
Test Scenarios:
1. Basic Function: "Create a function to find prime numbers"
2. Complex Algorithm: "Implement a binary search tree with insert, delete, and search methods"
3. Real-world Problem: "Build a web scraper that handles rate limiting and retries"
4. Debugging: "Fix this code [paste buggy code]"
🏆 Success Criteria:
Test your understanding:
🎉 Congratulations! You've mastered the fundamentals of AI Toolkit and are ready to build more advanced AI applications!
Ready for more advanced capabilities? Continue to Module 2: MCP with AI Toolkit Fundamentals where you'll learn how to:
이 모듈을 마치면 다음을 할 수 있습니다:
Visual Studio Code용 AI Toolkit은 마이크로소프트의 대표 확장 기능으로, VS Code를 종합적인 AI 개발 환경으로 바꿔줍니다. AI 연구와 실제 애플리케이션 개발 간의 간극을 메우며, 모든 수준의 개발자가 생성형 AI를 쉽게 활용할 수 있도록 돕습니다.
| 기능 | 설명 | 활용 사례 |
|---------|-------------|----------|
| 🗂️ 모델 카탈로그 | GitHub, ONNX, OpenAI, Anthropic, Google 등 100개 이상의 모델 접근 | 모델 탐색 및 선택 |
| 🔌 BYOM 지원 | 자체 모델(로컬/원격) 통합 | 맞춤형 모델 배포 |
| 🎮 인터랙티브 플레이그라운드 | 채팅 인터페이스를 통한 실시간 모델 테스트 | 빠른 프로토타이핑 및 테스트 |
| 📎 멀티모달 지원 | 텍스트, 이미지, 첨부파일 처리 | 복합 AI 애플리케이션 |
| ⚡ 배치 처리 | 여러 프롬프트 동시 실행 | 효율적인 테스트 워크플로우 |
| 📊 모델 평가 | 내장 지표(F1, 관련성, 유사성, 일관성) | 성능 평가 |
1단계: 확장 마켓플레이스 접속
1. Visual Studio Code 실행
2. 확장 뷰 열기 (Ctrl+Shift+X 또는 Cmd+Shift+X)
3. "AI Toolkit" 검색
2단계: 버전 선택
3단계: 설치 및 활성화
🎯 목표: 모델 카탈로그를 익히고 첫 AI 모델 테스트하기
모델 카탈로그는 AI 생태계로 가는 관문입니다. 여러 제공업체의 모델을 한데 모아 쉽게 탐색하고 비교할 수 있습니다.
🔍 탐색 가이드:
AI Toolkit 사이드바에서 MODELS - Catalog 클릭
💡 팁: 코드 생성, 창의적 글쓰기, 분석 등 사용 사례에 맞는 특정 기능을 가진 모델을 찾아보세요.
⚠️ 주의: GitHub에 호스팅된 모델(GitHub Models)은 무료로 사용할 수 있지만 요청 및 토큰에 제한이 있습니다. Azure AI나 다른 엔드포인트를 통해 호스팅된 비-GitHub 모델에 접근하려면 적절한 API 키나 인증이 필요합니다.
모델 선택 전략:
🔧 설정 절차:
1. 카탈로그에서 OpenAI GPT-4.1 선택
2. Add to My Models 클릭하여 모델 등록
3. Try in Playground 선택해 테스트 환경 실행
4. 모델 초기화 대기 (첫 실행 시 시간이 걸릴 수 있음)
⚙️ 모델 파라미터 이해하기:
플레이그라운드는 AI 실험실입니다. 최대한 활용하는 방법은 다음과 같습니다:
🎨 프롬프트 엔지니어링 모범 사례:
1. 구체적으로 작성: 명확하고 자세한 지시가 더 좋은 결과를 만듭니다
2. 맥락 제공: 관련 배경 정보를 포함하세요
3. 예시 사용: 원하는 바를 예시로 보여주세요
4. 반복 개선: 초기 결과를 바탕으로 프롬프트를 다듬으세요
🧪 테스트 시나리오:
# Example 1: Code Generation
"Write a Python function that calculates the factorial of a number using recursion. Include error handling and docstrings."
# Example 2: Creative Writing
"Write a professional email to a client explaining a project delay, maintaining a positive tone while being transparent about challenges."
# Example 3: Data Analysis
"Analyze this sales data and provide insights: [paste your data]. Focus on trends, anomalies, and actionable recommendations."
🎯 목표: 동일한 프롬프트로 여러 모델을 비교해 강점을 파악하기
📋 지침:
1. 작업 공간에 Phi-4-mini 추가
2. GPT-4.1과 Phi-4-mini에 동일한 프롬프트 사용
3. 응답 품질, 속도, 정확도 비교
4. 결과 섹션에 발견 내용 기록
💡 알아야 할 핵심 인사이트:
🎯 목표: 특정 작업과 워크플로우에 맞춘 전문 AI 에이전트 생성
Agent Builder는 AI Toolkit의 핵심 기능입니다. 대형 언어 모델의 힘을 맞춤형 지시, 특정 파라미터, 전문 지식과 결합해 목적에 맞는 AI 비서를 만들 수 있습니다.
🧠 에이전트 아키텍처 구성요소:
🎨 효과적인 시스템 프롬프트 작성:
# Template Structure:
## Role Definition
You are a [specific role] with expertise in [domain].
## Capabilities
- List specific abilities
- Define scope of knowledge
- Clarify limitations
## Behavior Guidelines
- Response style (formal, casual, technical)
- Output format preferences
- Error handling approach
## Examples
Provide 2-3 examples of ideal interactions
*물론 Generate System Prompt 기능을 사용해 AI가 프롬프트 생성과 최적화를 도와줄 수도 있습니다*
🔧 파라미터 최적화:
| 파라미터 | 권장 범위 | 활용 사례 |
|-----------|------------------|----------|
| Temperature | 0.1-0.3 | 기술적/사실적 응답 |
| Temperature | 0.7-0.9 | 창의적/브레인스토밍 작업 |
| Max Tokens | 500-1000 | 간결한 응답 |
| Max Tokens | 2000-4000 | 상세한 설명 |
🎯 미션: 전문적인 파이썬 코딩 어시스턴트 만들기
📋 설정 단계:
1. 모델 선택: Claude 3.5 Sonnet 선택 (코드 작업에 탁월)
2. 시스템 프롬프트 설계:
# Python Programming Expert Agent
## Role
You are a senior Python developer with 10+ years of experience. You excel at writing clean, efficient, and well-documented Python code.
## Capabilities
- Write production-ready Python code
- Debug complex issues
- Explain code concepts clearly
- Suggest best practices and optimizations
- Provide complete working examples
## Response Format
- Always include docstrings
- Add inline comments for complex logic
- Suggest testing approaches
- Mention relevant libraries when applicable
## Code Quality Standards
- Follow PEP 8 style guidelines
- Use type hints where appropriate
- Handle exceptions gracefully
- Write readable, maintainable code
3. 파라미터 설정:
- Temperature: 0.2 (일관되고 신뢰할 수 있는 코드)
- Max Tokens: 2000 (상세한 설명)
- Top-p: 0.9 (균형 잡힌 창의성)
테스트 시나리오:
1. 기본 기능: "소수 찾기 함수 작성"
2. 복잡한 알고리즘: "삽입, 삭제, 검색 메서드를 포함한 이진 탐색 트리 구현"
3. 실제 문제: "요청 제한과 재시도를 처리하는 웹 스크래퍼 만들기"
4. 디버깅: "이 코드를 수정해 주세요 [버그 있는 코드 붙여넣기]"
🏆 성공 기준:
이해도를 확인해 보세요:
🎉 축하합니다! AI Toolkit의 기본기를 마스터했으며, 더 고급 AI 애플리케이션을 만들 준비가 되었습니다!
더 고급 기능을 배우고 싶다면 모듈 2: MCP with AI Toolkit Fundamentals 로 이동하세요. 여기서 다음을 배우게 됩니다:
면책 조항:
이 문서는 AI 번역 서비스 Co-op Translator를 사용하여 번역되었습니다.
정확성을 위해 최선을 다하고 있으나, 자동 번역에는 오류나 부정확한 부분이 있을 수 있음을 유의하시기 바랍니다.
원문은 해당 언어의 원본 문서가 권위 있는 출처로 간주되어야 합니다.
중요한 정보의 경우 전문적인 인간 번역을 권장합니다.
본 번역 사용으로 인해 발생하는 오해나 잘못된 해석에 대해 당사는 책임을 지지 않습니다.