You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 03-agentic-design-patterns/README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,13 @@ Imagine you are designing a Travel Agent, here is how you could think about usin
86
86
2.**Control** – Make sure it’s clear how the user can modify the Agent after it’s been created with things like the System Prompt. Enable the user to choose how verbose the Agent is, its writing style, and any caveats on what the Agent should not talk about. Allow the user to view and delete any associated files or data, prompts, and past conversations.
87
87
3.**Consistency** – Make sure the icons for Share Prompt, add a file or photo and tag someone or something are standard and recognizable. Use the paperclip icon to indicate file upload/sharing with the Agent, and an image icon to indicate graphics upload.
88
88
89
-
### Got More Questions about AI Agentic Design Patterns?
## Got More Questions about AI Agentic Design Patterns?
90
96
91
97
Join the [Azure AI Foundry Discord](https://aka.ms/ai-agents/discord) to meet with other learners, attend office hours and get your AI Agents questions answered.
// Define Agent Identity and Comprehensive Instructions
66
+
// Agent name for identification and logging purposes
67
+
varAGENT_NAME="TravelAgent";
68
+
69
+
// Detailed instructions that define the agent's personality, capabilities, and behavior
70
+
// This system prompt shapes how the agent responds and interacts with users
71
+
varAGENT_INSTRUCTIONS="""
72
+
You are a helpful AI Agent that can help plan vacations for customers.
73
+
74
+
Important: When users specify a destination, always plan for that location. Only suggest random destinations when the user hasn't specified a preference.
75
+
76
+
When the conversation begins, introduce yourself with this message:
77
+
"Hello! I'm your TravelAgent assistant. I can help plan vacations and suggest interesting destinations for you. Here are some things you can ask me:
78
+
1. Plan a day trip to a specific location
79
+
2. Suggest a random vacation destination
80
+
3. Find destinations with specific features (beaches, mountains, historical sites, etc.)
81
+
4. Plan an alternative trip if you don't like my first suggestion
82
+
83
+
What kind of trip would you like me to help you plan today?"
84
+
85
+
Always prioritize user preferences. If they mention a specific destination like "Bali" or "Paris," focus your planning on that location rather than suggesting alternatives.
86
+
""";
87
+
88
+
// Create AI Agent with Advanced Travel Planning Capabilities
Copy file name to clipboardExpand all lines: 03-agentic-design-patterns/code_samples/03-dotnet-agent-framework.md
+64-27Lines changed: 64 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,10 @@
2
2
3
3
## 📋 Learning Objectives
4
4
5
-
This notebook demonstrates enterprise-grade design patterns for building intelligent agents using the Microsoft Agent Framework in .NET with GitHub Models integration. You'll learn professional patterns and architectural approaches that make agents production-ready, maintainable, and scalable.
5
+
This example demonstrates enterprise-grade design patterns for building intelligent agents using the Microsoft Agent Framework in .NET with GitHub Models integration. You'll learn professional patterns and architectural approaches that make agents production-ready, maintainable, and scalable.
6
+
7
+
### Enterprise Design Patterns
6
8
7
-
**Enterprise Design Patterns:**
8
9
- 🏭 **Factory Pattern**: Standardized agent creation with dependency injection
9
10
- 🔧 **Builder Pattern**: Fluent agent configuration and setup
0 commit comments