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: README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,11 +105,11 @@ class FeedbackPoint(BaseModel):
105
105
# Model representing the structured analysis of the customer feedback call
106
106
classCallFeedbackOutput(BaseModel):
107
107
"""Structured analysis of the customer feedback call."""
108
-
positive_points: List[FeedbackPoint] = Field(
108
+
positive_points: list[FeedbackPoint] = Field(
109
109
default_factory=list,
110
110
description="List of positive feedback points, each with a supporting quote."
111
111
)
112
-
negative_points: List[FeedbackPoint] = Field(
112
+
negative_points: list[FeedbackPoint] = Field(
113
113
default_factory=list,
114
114
description="List of negative feedback points, each with a supporting quote."
115
115
)
@@ -267,7 +267,6 @@ async for chunk in analyze_call_feedback(feedback_input):
267
267
> For example, a function with the signature `async def foo() -> AsyncIterator[int]` may be called
268
268
> `async for c in await foo():...` in certain cases...
269
269
270
-
271
270
#### Streaming the run object
272
271
273
272
Use `AsyncIterator[Run[Output]]` to get the **run** object as it is generated, which allows you, for the **last chunk**, to access the cost and duration of the run.
@@ -331,7 +330,7 @@ class PDFQuestionInput(BaseModel):
331
330
332
331
classPDFAnswerOutput(BaseModel):
333
332
answer: str= Field(description="The answer to the question based on the PDF content")
334
-
quotes: List[str] = Field(description="Relevant quotes from the PDF that support the answer")
333
+
quotes: list[str] = Field(description="Relevant quotes from the PDF that support the answer")
0 commit comments