Fix agent knowledge query initialisation failure (#469)

* Back out agent change

* Fixed broken tests
This commit is contained in:
cybermaggedon 2025-08-26 19:41:04 +01:00 committed by GitHub
parent 6e9e2a11b1
commit e5b9b4976a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 13 deletions

View file

@ -269,13 +269,7 @@ class AgentManager:
logger.debug(f"TOOL>>> {act}")
# Instantiate the tool implementation with context and config
if action.config:
tool_instance = action.implementation(context, **action.config)
else:
tool_instance = action.implementation(context)
resp = await tool_instance.invoke(
resp = await action.implementation(context).invoke(
**act.arguments
)