File size: 661 Bytes
6fd495a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21f1bdf
6fd495a
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from pydantic import BaseModel, Field
from typing import Optional

class EmailMemory(BaseModel):
    """Memory entry representing a specific email interaction between users.""" 
    
    user_email_id: str = Field(
        ..., # Use ... to indicate it is required
        description="The users email_id"
    )
    
    receiver_email_id: str = Field(
        ..., 
        description="The email address of the person with whom user is communicating."
    )
    
    summary: str = Field(
        ..., 
        description="A concise summary of the key information, intent, and decisions found in the emails.The content should be stored using user name"
    )