mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-30 10:56:23 +02:00
Fix agent knowledge query initialisation failure (#469)
* Back out agent change * Fixed broken tests
This commit is contained in:
parent
6e9e2a11b1
commit
e5b9b4976a
2 changed files with 11 additions and 13 deletions
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue