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
An object containing lists of entities of interest that are present in your input.
33
33
34
34
COMBINATION_INSTRUCTION: In your output, lists of strings (entities, topics, etc.) should each be the union of the corresponding fields in your input objects.
35
+
COMBINATION_INSTRUCTION: when combining multiple EntitiesObject objects, treat each field on it as a set of unique strings")
35
36
"""
37
+
model_config=ConfigDict(extra='forbid')
36
38
names_of_people: List[str] =Field(
37
-
default=[],
38
39
title="Unique names of people referred to in your input",
39
40
description="CLARIFICATION: only include people referred to in the conversation. Unless the speakers use each others' names or refer to each other somehow in an utterance, do not include the speakers."
40
41
)
41
-
places: List[str] =Field(default=[], title="Unique places referred to in your input")
42
-
companies: List[str] =Field(default=[], title="Unique names of companies, businesses, and/or institutions in your input")
43
-
body_parts: List[str] =Field(default=[], title="Unique parts of the human body named in your input")
44
-
emotions: List[str] =Field(default=[], title="Unique emotions, feelings, and/or sentiments referred to in your input")
42
+
places: List[str] =Field(title="Unique places referred to in your input")
43
+
companies: List[str] =Field(title="Unique names of companies, businesses, and/or institutions in your input")
44
+
body_parts: List[str] =Field(title="Unique parts of the human body named in your input")
45
+
emotions: List[str] =Field(title="Unique emotions, feelings, and/or sentiments referred to in your input")
45
46
46
47
classClassifier(BaseModel):
47
48
"""
48
49
One classifier object
49
50
50
51
COMBINATION_INSTRUCTION: You must combine classifiers with the same name, such that classifier names are unique in your output. Combine confidences and reasonings, with higher confidence inputs (and the corresponding reasonings) receiving precedence.
51
52
"""
53
+
model_config=ConfigDict(extra='forbid')
52
54
classifier: str=Field(title='name', description="the name of this classifier")
53
55
confidence: float=Field(title='confidence', description='How confident you are in the presence or absence of this classifier in the input you are summarizing', ge=0, le=1)
54
56
reasoning: str=Field(title='reasoning', description="INSTRUCTION: If the definition of this classifier included a 'Specific Items of Interest' appendage, please make sure to note the presence of any of those specific items of interest in this field, independent of their inclusion or exclusion in any entities category. COMBINATION INSTRUCTION: include the union of your inputs' items of interest in your output's reasoning.")
55
57
56
58
classStructuredResponse(BaseModel):
59
+
model_config=ConfigDict(extra='forbid')
57
60
summary: str=Field(title='summary of conversation', description="INSTRUCTION: summarize the conversation with one or more precise, declarative statements about the gestalt of the conversation. COMBINATION_INSTRUCTION: only combine the summaries of your input. Do not cross-contaminate your summary with any other pieces of your input objects.")
58
61
primary_topic: str=Field(title='The primary topic of conversation')
59
62
other_topics: List[str] =Field(title='Other topics of conversation', description="INSTRUCTION: do not include the primary_topic in this list")
60
63
classifiers: List[Classifier] =Field(title='A list of classifier results', description="INSTRUCTION: produce based on the Classifiers between <classifiers></classifiers>. Do not create or infer new classifier categories that are not specified below. Include all classifier categories in your response, even those that have very low confidence.")
61
-
entities: EntitiesObject=Field(title='Entities identified in your input', description="COMBINATION_INSTRUCTION: when combining multiple json objects, treat each field on the entities object as a set of unique strings")
0 commit comments