๐Ÿš€ Module 1: AI Toolkit Fundamentals

Module
AI Toolkit
Progress
25%

๐Ÿš€ Module 1: AI Toolkit Fundamentals

๐Ÿ“‹ Learning Objectives

By the end of this module, you will be able to:

  • โœ… Install and configure AI Toolkit for Visual Studio Code
  • โœ… Navigate the Model Catalog and understand different model sources
  • โœ… Use the Playground for model testing and experimentation
  • โœ… Create custom AI agents using Agent Builder
  • โœ… Compare model performance across different providers
  • โœ… Apply best practices for prompt engineering
  • ๐Ÿง  Introduction to AI Toolkit (AITK)

    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.

    ๐ŸŒŸ Key Capabilities

    | 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 |

    ๐ŸŽฏ Why AI Toolkit Matters

  • ๐Ÿš€ Accelerated Development: From idea to prototype in minutes
  • ๐Ÿ”„ Unified Workflow: One interface for multiple AI providers
  • ๐Ÿงช Easy Experimentation: Compare models without complex setup
  • ๐Ÿ“ˆ Production Ready: Seamless transition from prototype to deployment
  • ๐Ÿ› ๏ธ Prerequisites & Setup

    ๐Ÿ“ฆ Install AI Toolkit Extension

    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

  • ๐ŸŸข Release: Recommended for production use
  • ๐Ÿ”ถ Pre-release: Early access to cutting-edge features
  • Step 3: Install and Activate

    โœ… Verification Checklist

  • [ ] AI Toolkit icon appears in the VS Code sidebar
  • [ ] Extension is enabled and activated
  • [ ] No installation errors in the output panel
  • ๐Ÿงช Hands-on Exercise 1: Exploring GitHub Models

    ๐ŸŽฏ Objective: Master the Model Catalog and test your first AI model

    ๐Ÿ“Š Step 1: Navigate the Model Catalog

    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.

    ๐Ÿš€ Step 2: Add and Configure Your First Model

    Model Selection Strategy:

  • GPT-4.1: Best for complex reasoning and analysis
  • Phi-4-mini: Lightweight, fast responses for simple tasks
  • ๐Ÿ”ง 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:

  • Temperature: Controls creativity (0 = deterministic, 1 = creative)
  • Max Tokens: Maximum response length
  • Top-p: Nucleus sampling for response diversity
  • ๐ŸŽฏ Step 3: Master the Playground Interface

    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."
    
    

    ๐Ÿ† Challenge Exercise: Model Performance Comparison

    ๐ŸŽฏ 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:

  • When to use LLM vs SLM
  • Cost vs. performance trade-offs
  • Specialized capabilities of different models
  • ๐Ÿค– Hands-on Exercise 2: Building Custom Agents with Agent Builder

    ๐ŸŽฏ Objective: Create specialized AI agents tailored for specific tasks and workflows

    ๐Ÿ—๏ธ Step 1: Understanding Agent Builder

    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:

  • Core Model: The foundation LLM (GPT-4, Groks, Phi, etc.)
  • System Prompt: Defines agent personality and behavior
  • Parameters: Fine-tuned settings for optimal performance
  • Tools Integration: Connect to external APIs and MCP services
  • Memory: Conversation context and session persistence
  • โš™๏ธ Step 2: Agent Configuration Deep Dive

    ๐ŸŽจ 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 |

    ๐Ÿ Step 3: Practical Exercise - Python Programming Agent

    ๐ŸŽฏ 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)

    ๐Ÿงช Step 4: Testing Your Python Agent

    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:

  • โœ… Code runs without errors
  • โœ… Includes proper documentation
  • โœ… Follows Python best practices
  • โœ… Provides clear explanations
  • โœ… Suggests improvements
  • ๐ŸŽ“ Module 1 Wrap-Up & Next Steps

    ๐Ÿ“Š Knowledge Check

    Test your understanding:

  • [ ] Can you explain the difference between models in the catalog?
  • [ ] Have you successfully created and tested a custom agent?
  • [ ] Do you understand how to optimize parameters for different use cases?
  • [ ] Can you design effective system prompts?
  • ๐Ÿ“š Additional Resources

  • AI Toolkit Documentation: Official Microsoft Docs
  • Prompt Engineering Guide: Best Practices
  • Models in AI Toolkit: Models in Develpment
  • ๐ŸŽ‰ Congratulations! You've mastered the fundamentals of AI Toolkit and are ready to build more advanced AI applications!

    ๐Ÿ”œ Continue to Next Module

    Ready for more advanced capabilities? Continue to Module 2: MCP with AI Toolkit Fundamentals where you'll learn how to:

  • Connect your agents to external tools using Model Context Protocol (MCP)
  • Build browser automation agents with Playwright
  • Integrate MCP servers with your AI Toolkit agents
  • Supercharge your agents with external data and capabilities
  • ๐Ÿš€ ๋ชจ๋“ˆ 1: AI Toolkit ๊ธฐ์ดˆ

    ๐Ÿ“‹ ํ•™์Šต ๋ชฉํ‘œ

    ์ด ๋ชจ๋“ˆ์„ ๋งˆ์น˜๋ฉด ๋‹ค์Œ์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

  • โœ… Visual Studio Code์šฉ AI Toolkit ์„ค์น˜ ๋ฐ ์„ค์ •
  • โœ… ๋ชจ๋ธ ์นดํƒˆ๋กœ๊ทธ ํƒ์ƒ‰ ๋ฐ ๋‹ค์–‘ํ•œ ๋ชจ๋ธ ์†Œ์Šค ์ดํ•ด
  • โœ… Playground๋ฅผ ์‚ฌ์šฉํ•œ ๋ชจ๋ธ ํ…Œ์ŠคํŠธ ๋ฐ ์‹คํ—˜
  • โœ… Agent Builder๋ฅผ ์ด์šฉํ•œ ๋งž์ถคํ˜• AI ์—์ด์ „ํŠธ ์ƒ์„ฑ
  • โœ… ๋‹ค์–‘ํ•œ ์ œ๊ณต์—…์ฒด์˜ ๋ชจ๋ธ ์„ฑ๋Šฅ ๋น„๊ต
  • โœ… ํ”„๋กฌํ”„ํŠธ ์—”์ง€๋‹ˆ์–ด๋ง ๋ชจ๋ฒ” ์‚ฌ๋ก€ ์ ์šฉ
  • ๐Ÿง  AI Toolkit (AITK) ์†Œ๊ฐœ

    Visual Studio Code์šฉ AI Toolkit์€ ๋งˆ์ดํฌ๋กœ์†Œํ”„ํŠธ์˜ ๋Œ€ํ‘œ ํ™•์žฅ ๊ธฐ๋Šฅ์œผ๋กœ, VS Code๋ฅผ ์ข…ํ•ฉ์ ์ธ AI ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์œผ๋กœ ๋ฐ”๊ฟ”์ค๋‹ˆ๋‹ค. AI ์—ฐ๊ตฌ์™€ ์‹ค์ œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ ๊ฐ„์˜ ๊ฐ„๊ทน์„ ๋ฉ”์šฐ๋ฉฐ, ๋ชจ๋“  ์ˆ˜์ค€์˜ ๊ฐœ๋ฐœ์ž๊ฐ€ ์ƒ์„ฑํ˜• AI๋ฅผ ์‰ฝ๊ฒŒ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ๋•์Šต๋‹ˆ๋‹ค.

    ๐ŸŒŸ ์ฃผ์š” ๊ธฐ๋Šฅ

    | ๊ธฐ๋Šฅ | ์„ค๋ช… | ํ™œ์šฉ ์‚ฌ๋ก€ |

    |---------|-------------|----------|

    | ๐Ÿ—‚๏ธ ๋ชจ๋ธ ์นดํƒˆ๋กœ๊ทธ | GitHub, ONNX, OpenAI, Anthropic, Google ๋“ฑ 100๊ฐœ ์ด์ƒ์˜ ๋ชจ๋ธ ์ ‘๊ทผ | ๋ชจ๋ธ ํƒ์ƒ‰ ๋ฐ ์„ ํƒ |

    | ๐Ÿ”Œ BYOM ์ง€์› | ์ž์ฒด ๋ชจ๋ธ(๋กœ์ปฌ/์›๊ฒฉ) ํ†ตํ•ฉ | ๋งž์ถคํ˜• ๋ชจ๋ธ ๋ฐฐํฌ |

    | ๐ŸŽฎ ์ธํ„ฐ๋ž™ํ‹ฐ๋ธŒ ํ”Œ๋ ˆ์ด๊ทธ๋ผ์šด๋“œ | ์ฑ„ํŒ… ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ํ†ตํ•œ ์‹ค์‹œ๊ฐ„ ๋ชจ๋ธ ํ…Œ์ŠคํŠธ | ๋น ๋ฅธ ํ”„๋กœํ† ํƒ€์ดํ•‘ ๋ฐ ํ…Œ์ŠคํŠธ |

    | ๐Ÿ“Ž ๋ฉ€ํ‹ฐ๋ชจ๋‹ฌ ์ง€์› | ํ…์ŠคํŠธ, ์ด๋ฏธ์ง€, ์ฒจ๋ถ€ํŒŒ์ผ ์ฒ˜๋ฆฌ | ๋ณตํ•ฉ AI ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ |

    | โšก ๋ฐฐ์น˜ ์ฒ˜๋ฆฌ | ์—ฌ๋Ÿฌ ํ”„๋กฌํ”„ํŠธ ๋™์‹œ ์‹คํ–‰ | ํšจ์œจ์ ์ธ ํ…Œ์ŠคํŠธ ์›Œํฌํ”Œ๋กœ์šฐ |

    | ๐Ÿ“Š ๋ชจ๋ธ ํ‰๊ฐ€ | ๋‚ด์žฅ ์ง€ํ‘œ(F1, ๊ด€๋ จ์„ฑ, ์œ ์‚ฌ์„ฑ, ์ผ๊ด€์„ฑ) | ์„ฑ๋Šฅ ํ‰๊ฐ€ |

    ๐ŸŽฏ AI Toolkit์ด ์ค‘์š”ํ•œ ์ด์œ 

  • ๐Ÿš€ ๊ฐœ๋ฐœ ๊ฐ€์†ํ™”: ์•„์ด๋””์–ด์—์„œ ํ”„๋กœํ† ํƒ€์ž…๊นŒ์ง€ ๋ช‡ ๋ถ„ ๋งŒ์—
  • ๐Ÿ”„ ํ†ตํ•ฉ ์›Œํฌํ”Œ๋กœ์šฐ: ์—ฌ๋Ÿฌ AI ์ œ๊ณต์—…์ฒด๋ฅผ ํ•œ ์ธํ„ฐํŽ˜์ด์Šค์—์„œ
  • ๐Ÿงช ๊ฐ„ํŽธํ•œ ์‹คํ—˜: ๋ณต์žกํ•œ ์„ค์ • ์—†์ด ๋ชจ๋ธ ๋น„๊ต ๊ฐ€๋Šฅ
  • ๐Ÿ“ˆ ํ”„๋กœ๋•์…˜ ์ค€๋น„ ์™„๋ฃŒ: ํ”„๋กœํ† ํƒ€์ž…์—์„œ ๋ฐฐํฌ๊นŒ์ง€ ์›ํ™œํ•œ ์ „ํ™˜
  • ๐Ÿ› ๏ธ ์‚ฌ์ „ ์ค€๋น„ ๋ฐ ์„ค์ •

    ๐Ÿ“ฆ AI Toolkit ํ™•์žฅ ์„ค์น˜

    1๋‹จ๊ณ„: ํ™•์žฅ ๋งˆ์ผ“ํ”Œ๋ ˆ์ด์Šค ์ ‘์†

    1. Visual Studio Code ์‹คํ–‰

    2. ํ™•์žฅ ๋ทฐ ์—ด๊ธฐ (Ctrl+Shift+X ๋˜๋Š” Cmd+Shift+X)

    3. "AI Toolkit" ๊ฒ€์ƒ‰

    2๋‹จ๊ณ„: ๋ฒ„์ „ ์„ ํƒ

  • ๐ŸŸข ์ •์‹ ๋ฒ„์ „: ํ”„๋กœ๋•์…˜ ์‚ฌ์šฉ ๊ถŒ์žฅ
  • ๐Ÿ”ถ ํ”„๋ฆฌ๋ฆด๋ฆฌ์Šค: ์ตœ์‹  ๊ธฐ๋Šฅ ์กฐ๊ธฐ ์ฒดํ—˜ ๊ฐ€๋Šฅ
  • 3๋‹จ๊ณ„: ์„ค์น˜ ๋ฐ ํ™œ์„ฑํ™”

    โœ… ํ™•์ธ ์ฒดํฌ๋ฆฌ์ŠคํŠธ

  • [ ] VS Code ์‚ฌ์ด๋“œ๋ฐ”์— AI Toolkit ์•„์ด์ฝ˜ ํ‘œ์‹œ
  • [ ] ํ™•์žฅ ๊ธฐ๋Šฅ์ด ํ™œ์„ฑํ™”๋˜์–ด ์žˆ์Œ
  • [ ] ์ถœ๋ ฅ ํŒจ๋„์— ์„ค์น˜ ์˜ค๋ฅ˜ ์—†์Œ
  • ๐Ÿงช ์‹ค์Šต 1: GitHub ๋ชจ๋ธ ํƒ์ƒ‰

    ๐ŸŽฏ ๋ชฉํ‘œ: ๋ชจ๋ธ ์นดํƒˆ๋กœ๊ทธ๋ฅผ ์ตํžˆ๊ณ  ์ฒซ AI ๋ชจ๋ธ ํ…Œ์ŠคํŠธํ•˜๊ธฐ

    ๐Ÿ“Š 1๋‹จ๊ณ„: ๋ชจ๋ธ ์นดํƒˆ๋กœ๊ทธ ํƒ์ƒ‰

    ๋ชจ๋ธ ์นดํƒˆ๋กœ๊ทธ๋Š” AI ์ƒํƒœ๊ณ„๋กœ ๊ฐ€๋Š” ๊ด€๋ฌธ์ž…๋‹ˆ๋‹ค. ์—ฌ๋Ÿฌ ์ œ๊ณต์—…์ฒด์˜ ๋ชจ๋ธ์„ ํ•œ๋ฐ ๋ชจ์•„ ์‰ฝ๊ฒŒ ํƒ์ƒ‰ํ•˜๊ณ  ๋น„๊ตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

    ๐Ÿ” ํƒ์ƒ‰ ๊ฐ€์ด๋“œ:

    AI Toolkit ์‚ฌ์ด๋“œ๋ฐ”์—์„œ MODELS - Catalog ํด๋ฆญ

    ๐Ÿ’ก ํŒ: ์ฝ”๋“œ ์ƒ์„ฑ, ์ฐฝ์˜์  ๊ธ€์“ฐ๊ธฐ, ๋ถ„์„ ๋“ฑ ์‚ฌ์šฉ ์‚ฌ๋ก€์— ๋งž๋Š” ํŠน์ • ๊ธฐ๋Šฅ์„ ๊ฐ€์ง„ ๋ชจ๋ธ์„ ์ฐพ์•„๋ณด์„ธ์š”.

    โš ๏ธ ์ฃผ์˜: GitHub์— ํ˜ธ์ŠคํŒ…๋œ ๋ชจ๋ธ(GitHub Models)์€ ๋ฌด๋ฃŒ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์ง€๋งŒ ์š”์ฒญ ๋ฐ ํ† ํฐ์— ์ œํ•œ์ด ์žˆ์Šต๋‹ˆ๋‹ค. Azure AI๋‚˜ ๋‹ค๋ฅธ ์—”๋“œํฌ์ธํŠธ๋ฅผ ํ†ตํ•ด ํ˜ธ์ŠคํŒ…๋œ ๋น„-GitHub ๋ชจ๋ธ์— ์ ‘๊ทผํ•˜๋ ค๋ฉด ์ ์ ˆํ•œ API ํ‚ค๋‚˜ ์ธ์ฆ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

    ๐Ÿš€ 2๋‹จ๊ณ„: ์ฒซ ๋ชจ๋ธ ์ถ”๊ฐ€ ๋ฐ ์„ค์ •

    ๋ชจ๋ธ ์„ ํƒ ์ „๋žต:

  • GPT-4.1: ๋ณต์žกํ•œ ์ถ”๋ก ๊ณผ ๋ถ„์„์— ์ตœ์ 
  • Phi-4-mini: ๊ฐ€๋ฒผ์šฐ๋ฉฐ ๊ฐ„๋‹จํ•œ ์ž‘์—…์— ๋น ๋ฅธ ์‘๋‹ต ์ œ๊ณต
  • ๐Ÿ”ง ์„ค์ • ์ ˆ์ฐจ:

    1. ์นดํƒˆ๋กœ๊ทธ์—์„œ OpenAI GPT-4.1 ์„ ํƒ

    2. Add to My Models ํด๋ฆญํ•˜์—ฌ ๋ชจ๋ธ ๋“ฑ๋ก

    3. Try in Playground ์„ ํƒํ•ด ํ…Œ์ŠคํŠธ ํ™˜๊ฒฝ ์‹คํ–‰

    4. ๋ชจ๋ธ ์ดˆ๊ธฐํ™” ๋Œ€๊ธฐ (์ฒซ ์‹คํ–‰ ์‹œ ์‹œ๊ฐ„์ด ๊ฑธ๋ฆด ์ˆ˜ ์žˆ์Œ)

    โš™๏ธ ๋ชจ๋ธ ํŒŒ๋ผ๋ฏธํ„ฐ ์ดํ•ดํ•˜๊ธฐ:

  • Temperature: ์ฐฝ์˜์„ฑ ์กฐ์ ˆ (0 = ๊ฒฐ์ •์ , 1 = ์ฐฝ์˜์ )
  • Max Tokens: ์ตœ๋Œ€ ์‘๋‹ต ๊ธธ์ด
  • Top-p: ์‘๋‹ต ๋‹ค์–‘์„ฑ์„ ์œ„ํ•œ ํ•ต์‹ฌ ์ƒ˜ํ”Œ๋ง
  • ๐ŸŽฏ 3๋‹จ๊ณ„: ํ”Œ๋ ˆ์ด๊ทธ๋ผ์šด๋“œ ์ธํ„ฐํŽ˜์ด์Šค ๋งˆ์Šคํ„ฐํ•˜๊ธฐ

    ํ”Œ๋ ˆ์ด๊ทธ๋ผ์šด๋“œ๋Š” 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. ๊ฒฐ๊ณผ ์„น์…˜์— ๋ฐœ๊ฒฌ ๋‚ด์šฉ ๊ธฐ๋ก

    ๐Ÿ’ก ์•Œ์•„์•ผ ํ•  ํ•ต์‹ฌ ์ธ์‚ฌ์ดํŠธ:

  • LLM๊ณผ SLM ์‚ฌ์šฉ ์‹œ๊ธฐ
  • ๋น„์šฉ๊ณผ ์„ฑ๋Šฅ ๊ฐ„ ๊ท ํ˜•
  • ๋ชจ๋ธ๋ณ„ ํŠนํ™” ๊ธฐ๋Šฅ
  • ๐Ÿค– ์‹ค์Šต 2: Agent Builder๋กœ ๋งž์ถคํ˜• ์—์ด์ „ํŠธ ๋งŒ๋“ค๊ธฐ

    ๐ŸŽฏ ๋ชฉํ‘œ: ํŠน์ • ์ž‘์—…๊ณผ ์›Œํฌํ”Œ๋กœ์šฐ์— ๋งž์ถ˜ ์ „๋ฌธ AI ์—์ด์ „ํŠธ ์ƒ์„ฑ

    ๐Ÿ—๏ธ 1๋‹จ๊ณ„: Agent Builder ์ดํ•ดํ•˜๊ธฐ

    Agent Builder๋Š” AI Toolkit์˜ ํ•ต์‹ฌ ๊ธฐ๋Šฅ์ž…๋‹ˆ๋‹ค. ๋Œ€ํ˜• ์–ธ์–ด ๋ชจ๋ธ์˜ ํž˜์„ ๋งž์ถคํ˜• ์ง€์‹œ, ํŠน์ • ํŒŒ๋ผ๋ฏธํ„ฐ, ์ „๋ฌธ ์ง€์‹๊ณผ ๊ฒฐํ•ฉํ•ด ๋ชฉ์ ์— ๋งž๋Š” AI ๋น„์„œ๋ฅผ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

    ๐Ÿง  ์—์ด์ „ํŠธ ์•„ํ‚คํ…์ฒ˜ ๊ตฌ์„ฑ์š”์†Œ:

  • Core Model: ๊ธฐ๋ณธ LLM (GPT-4, Groks, Phi ๋“ฑ)
  • System Prompt: ์—์ด์ „ํŠธ ์„ฑ๊ฒฉ๊ณผ ํ–‰๋™ ์ •์˜
  • Parameters: ์ตœ์  ์„ฑ๋Šฅ์„ ์œ„ํ•œ ์„ธ๋ถ€ ์„ค์ •
  • Tools Integration: ์™ธ๋ถ€ API ๋ฐ MCP ์„œ๋น„์Šค ์—ฐ๊ฒฐ
  • Memory: ๋Œ€ํ™” ๋งฅ๋ฝ๊ณผ ์„ธ์…˜ ์œ ์ง€
  • โš™๏ธ 2๋‹จ๊ณ„: ์—์ด์ „ํŠธ ์„ค์ • ์‹ฌํ™”

    ๐ŸŽจ ํšจ๊ณผ์ ์ธ ์‹œ์Šคํ…œ ํ”„๋กฌํ”„ํŠธ ์ž‘์„ฑ:

    
    # 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 | ์ƒ์„ธํ•œ ์„ค๋ช… |

    ๐Ÿ 3๋‹จ๊ณ„: ์‹ค์Šต - ํŒŒ์ด์ฌ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—์ด์ „ํŠธ

    ๐ŸŽฏ ๋ฏธ์…˜: ์ „๋ฌธ์ ์ธ ํŒŒ์ด์ฌ ์ฝ”๋”ฉ ์–ด์‹œ์Šคํ„ดํŠธ ๋งŒ๋“ค๊ธฐ

    ๐Ÿ“‹ ์„ค์ • ๋‹จ๊ณ„:

    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 (๊ท ํ˜• ์žกํžŒ ์ฐฝ์˜์„ฑ)

    ๐Ÿงช 4๋‹จ๊ณ„: ํŒŒ์ด์ฌ ์—์ด์ „ํŠธ ํ…Œ์ŠคํŠธ

    ํ…Œ์ŠคํŠธ ์‹œ๋‚˜๋ฆฌ์˜ค:

    1. ๊ธฐ๋ณธ ๊ธฐ๋Šฅ: "์†Œ์ˆ˜ ์ฐพ๊ธฐ ํ•จ์ˆ˜ ์ž‘์„ฑ"

    2. ๋ณต์žกํ•œ ์•Œ๊ณ ๋ฆฌ์ฆ˜: "์‚ฝ์ž…, ์‚ญ์ œ, ๊ฒ€์ƒ‰ ๋ฉ”์„œ๋“œ๋ฅผ ํฌํ•จํ•œ ์ด์ง„ ํƒ์ƒ‰ ํŠธ๋ฆฌ ๊ตฌํ˜„"

    3. ์‹ค์ œ ๋ฌธ์ œ: "์š”์ฒญ ์ œํ•œ๊ณผ ์žฌ์‹œ๋„๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” ์›น ์Šคํฌ๋ž˜ํผ ๋งŒ๋“ค๊ธฐ"

    4. ๋””๋ฒ„๊น…: "์ด ์ฝ”๋“œ๋ฅผ ์ˆ˜์ •ํ•ด ์ฃผ์„ธ์š” [๋ฒ„๊ทธ ์žˆ๋Š” ์ฝ”๋“œ ๋ถ™์—ฌ๋„ฃ๊ธฐ]"

    ๐Ÿ† ์„ฑ๊ณต ๊ธฐ์ค€:

  • โœ… ์˜ค๋ฅ˜ ์—†์ด ์ฝ”๋“œ ์‹คํ–‰
  • โœ… ์ ์ ˆํ•œ ๋ฌธ์„œํ™” ํฌํ•จ
  • โœ… ํŒŒ์ด์ฌ ๋ชจ๋ฒ” ์‚ฌ๋ก€ ์ค€์ˆ˜
  • โœ… ๋ช…ํ™•ํ•œ ์„ค๋ช… ์ œ๊ณต
  • โœ… ๊ฐœ์„  ์‚ฌํ•ญ ์ œ์•ˆ
  • ๐ŸŽ“ ๋ชจ๋“ˆ 1 ์ •๋ฆฌ ๋ฐ ๋‹ค์Œ ๋‹จ๊ณ„

    ๐Ÿ“Š ์ง€์‹ ์ ๊ฒ€

    ์ดํ•ด๋„๋ฅผ ํ™•์ธํ•ด ๋ณด์„ธ์š”:

  • [ ] ์นดํƒˆ๋กœ๊ทธ ๋‚ด ๋ชจ๋ธ ๊ฐ„ ์ฐจ์ด๋ฅผ ์„ค๋ช…ํ•  ์ˆ˜ ์žˆ๋‚˜์š”?
  • [ ] ๋งž์ถคํ˜• ์—์ด์ „ํŠธ๋ฅผ ์„ฑ๊ณต์ ์œผ๋กœ ์ƒ์„ฑํ•˜๊ณ  ํ…Œ์ŠคํŠธํ–ˆ๋‚˜์š”?
  • [ ] ๋‹ค์–‘ํ•œ ์‚ฌ์šฉ ์‚ฌ๋ก€์— ๋งž๊ฒŒ ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ์ตœ์ ํ™”ํ•  ์ˆ˜ ์žˆ๋‚˜์š”?
  • [ ] ํšจ๊ณผ์ ์ธ ์‹œ์Šคํ…œ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์„ค๊ณ„ํ•  ์ˆ˜ ์žˆ๋‚˜์š”?
  • ๐Ÿ“š ์ถ”๊ฐ€ ์ž๋ฃŒ

  • AI Toolkit ๋ฌธ์„œ: ๊ณต์‹ Microsoft Docs
  • ํ”„๋กฌํ”„ํŠธ ์—”์ง€๋‹ˆ์–ด๋ง ๊ฐ€์ด๋“œ: ๋ชจ๋ฒ” ์‚ฌ๋ก€
  • AI Toolkit ๋‚ด ๋ชจ๋ธ: ๊ฐœ๋ฐœ ์ค‘์ธ ๋ชจ๋ธ
  • ๐ŸŽ‰ ์ถ•ํ•˜ํ•ฉ๋‹ˆ๋‹ค! AI Toolkit์˜ ๊ธฐ๋ณธ๊ธฐ๋ฅผ ๋งˆ์Šคํ„ฐํ–ˆ์œผ๋ฉฐ, ๋” ๊ณ ๊ธ‰ AI ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋งŒ๋“ค ์ค€๋น„๊ฐ€ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค!

    ๐Ÿ”œ ๋‹ค์Œ ๋ชจ๋“ˆ๋กœ ๊ณ„์†ํ•˜๊ธฐ

    ๋” ๊ณ ๊ธ‰ ๊ธฐ๋Šฅ์„ ๋ฐฐ์šฐ๊ณ  ์‹ถ๋‹ค๋ฉด ๋ชจ๋“ˆ 2: MCP with AI Toolkit Fundamentals ๋กœ ์ด๋™ํ•˜์„ธ์š”. ์—ฌ๊ธฐ์„œ ๋‹ค์Œ์„ ๋ฐฐ์šฐ๊ฒŒ ๋ฉ๋‹ˆ๋‹ค:

  • Model Context Protocol (MCP)์„ ์‚ฌ์šฉํ•ด ์—์ด์ „ํŠธ๋ฅผ ์™ธ๋ถ€ ๋„๊ตฌ์— ์—ฐ๊ฒฐํ•˜๋Š” ๋ฐฉ๋ฒ•
  • Playwright๋กœ ๋ธŒ๋ผ์šฐ์ € ์ž๋™ํ™” ์—์ด์ „ํŠธ ๊ตฌ์ถ•
  • AI Toolkit ์—์ด์ „ํŠธ์™€ MCP ์„œ๋ฒ„ ํ†ตํ•ฉ
  • ์™ธ๋ถ€ ๋ฐ์ดํ„ฐ์™€ ๊ธฐ๋Šฅ์œผ๋กœ ์—์ด์ „ํŠธ ๊ฐ•ํ™”ํ•˜๊ธฐ
  • ๋ฉด์ฑ… ์กฐํ•ญ:

    ์ด ๋ฌธ์„œ๋Š” AI ๋ฒˆ์—ญ ์„œ๋น„์Šค Co-op Translator๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฒˆ์—ญ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

    ์ •ํ™•์„ฑ์„ ์œ„ํ•ด ์ตœ์„ ์„ ๋‹คํ•˜๊ณ  ์žˆ์œผ๋‚˜, ์ž๋™ ๋ฒˆ์—ญ์—๋Š” ์˜ค๋ฅ˜๋‚˜ ๋ถ€์ •ํ™•ํ•œ ๋ถ€๋ถ„์ด ์žˆ์„ ์ˆ˜ ์žˆ์Œ์„ ์œ ์˜ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

    ์›๋ฌธ์€ ํ•ด๋‹น ์–ธ์–ด์˜ ์›๋ณธ ๋ฌธ์„œ๊ฐ€ ๊ถŒ์œ„ ์žˆ๋Š” ์ถœ์ฒ˜๋กœ ๊ฐ„์ฃผ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

    ์ค‘์š”ํ•œ ์ •๋ณด์˜ ๊ฒฝ์šฐ ์ „๋ฌธ์ ์ธ ์ธ๊ฐ„ ๋ฒˆ์—ญ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.

    ๋ณธ ๋ฒˆ์—ญ ์‚ฌ์šฉ์œผ๋กœ ์ธํ•ด ๋ฐœ์ƒํ•˜๋Š” ์˜คํ•ด๋‚˜ ์ž˜๋ชป๋œ ํ•ด์„์— ๋Œ€ํ•ด ๋‹น์‚ฌ๋Š” ์ฑ…์ž„์„ ์ง€์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

    MCP Academy — microsoft/mcp-for-beginners