File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
typescript-sdk/integrations/adk-middleware/examples/shared_state Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -233,13 +233,10 @@ def simple_after_model_modifier(
233
233
if llm_response .content .role == 'model' and llm_response .content .parts [0 ].text :
234
234
original_text = llm_response .content .parts [0 ].text
235
235
callback_context ._invocation_context .end_invocation = True
236
- print (f"-----hard stopping the agent execution'" )
237
236
238
237
elif llm_response .error_message :
239
- print (f"[Callback] Inspected response: Contains error '{ llm_response .error_message } '. No modification." )
240
238
return None
241
239
else :
242
- print ("[Callback] Inspected response: Empty LlmResponse." )
243
240
return None # Nothing to modify
244
241
return None
245
242
@@ -270,5 +267,4 @@ def simple_after_model_modifier(
270
267
before_agent_callback = on_before_agent ,
271
268
before_model_callback = before_model_modifier ,
272
269
after_model_callback = simple_after_model_modifier
273
- )
274
-
270
+ )
You can’t perform that action at this time.
0 commit comments