Fade0510 commited on
Commit
7350ff1
·
1 Parent(s): 0aa8e87

Add schemas.py

Browse files
Files changed (1) hide show
  1. src/agents/schemas.py +32 -0
src/agents/schemas.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import List
4
+
5
+ from pydantic import BaseModel, Field, conint
6
+
7
+
8
+ class CallSummary(BaseModel):
9
+ summary: str = Field(..., description="A concise call summary.")
10
+ key_points: List[str] = Field(
11
+ default_factory=list,
12
+ description="A short list of the most important takeaways from the call.",
13
+ )
14
+ tags: List[str] = Field(
15
+ default_factory=list,
16
+ description="Short topic tags (e.g., billing, outage, refund).",
17
+ )
18
+ highlights: List[str] = Field(
19
+ default_factory=list,
20
+ description="Notable highlights or quotes from the call.",
21
+ )
22
+
23
+
24
+ class QualityScores(BaseModel):
25
+ tone: conint(ge=0, le=10) = Field(..., description="Tone score from 0 to 10.")
26
+ professionalism: conint(ge=0, le=10) = Field(
27
+ ..., description="Professionalism score from 0 to 10."
28
+ )
29
+ structured_resolution: conint(ge=0, le=10) = Field(
30
+ ..., description="Structured resolution score from 0 to 10."
31
+ )
32
+ notes: str = Field(..., description="Brief rationale for the scores.")