Skip to content

Agent Zero AI framework

Add util_model_call_after extension hook

TerminallyLazy592fa615ae0e
diff --git a/agent.py b/agent.py
index c037a8c24..f56647ceb 100644
--- a/agent.py
+++ b/agent.py
@@ -788,6 +788,10 @@ class Agent:
),
)
+ await extension.call_extensions_async(
+ "util_model_call_after", self, call_data=call_data, response=response
+ )
+
return response
@extension.extensible