-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo_airis.py
More file actions
48 lines (39 loc) · 1.73 KB
/
demo_airis.py
File metadata and controls
48 lines (39 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from src.agents.fashion_advisor import AIris
import os
from dotenv import load_dotenv
def main():
# Load environment variables
load_dotenv()
# Initialize AIris
airis = AIris()
print("Welcome to AIris - Your Agentic Fashion Advisor!")
print("Demonstrating AIris's capabilities...\n")
# Test 1: Basic Style Advice
print("Test 1: Basic Style Advice")
print("Query: What should I wear to a casual beach party?")
response = airis.get_outfit_advice("What should I wear to a casual beach party?")
print(f"Response: {response}\n")
# Test 2: Context-Aware Advice
print("Test 2: Context-Aware Advice")
print("Query: I love bohemian style and earth tones.")
response = airis.get_outfit_advice("I love bohemian style and earth tones")
print(f"Response: {response}\n")
print("Now asking about a specific occasion...")
print("Query: What should I wear to a summer wedding?")
response = airis.get_outfit_advice("What should I wear to a summer wedding?")
print(f"Response: {response}\n")
# Test 3: Style Analysis
print("Test 3: Style Analysis")
print("Query: I need a professional wardrobe that works for both office and client meetings")
response = airis.get_outfit_advice("I need a professional wardrobe that works for both office and client meetings")
print(f"Response: {response}\n")
# Display Memory
print("AIris's Memory State:")
memory = airis.get_memory()
print("Learned Preferences:", memory["preferences"])
print("\nConversation History:")
for interaction in memory["history"]:
print(f"User: {interaction['prompt']}")
print(f"AIris: {interaction['response']}\n")
if __name__ == "__main__":
main()