File tree 1 file changed +3
-3
lines changed
templates/types/streaming/fastapi/app/api/routers
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,8 @@ def _create_stream(
143
143
self ,
144
144
request : Request ,
145
145
chat_data : ChatData ,
146
- event_handler : "AgentRunResult" | AsyncGenerator ,
147
- events : AsyncGenerator ["AgentRunEvent" , None ],
146
+ event_handler : "AgentRunResult" | AsyncGenerator , # noqa: F821
147
+ events : AsyncGenerator ["AgentRunEvent" , None ], # noqa: F821
148
148
verbose : bool = True ,
149
149
):
150
150
# Yield the text response
@@ -184,7 +184,7 @@ async def _event_generator():
184
184
return combine
185
185
186
186
@staticmethod
187
- def _event_to_response (event : "AgentRunEvent" ) -> dict :
187
+ def _event_to_response (event : "AgentRunEvent" ) -> dict : # noqa: F821
188
188
return {
189
189
"type" : "agent" ,
190
190
"data" : {"agent" : event .name , "text" : event .msg },
You can’t perform that action at this time.
0 commit comments