Fix agent tools, now all tested

This commit is contained in:
Cyber MacGeddon 2025-07-16 22:01:23 +01:00
parent 897a82c31f
commit d5bfef33ca
2 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ class AgentManager:
"type": arg.type, "type": arg.type,
"description": arg.description "description": arg.description
} }
for arg in tool.arguments.values() for arg in tool.arguments
] ]
} }
for tool in self.tools.values() for tool in self.tools.values()

View file

@ -95,7 +95,7 @@ class PromptImpl:
async def invoke(self, **arguments): async def invoke(self, **arguments):
client = self.context("prompt-request") client = self.context("prompt-request")
print(f"Prompt template invocation: {self.template_id}...", flush=True) print(f"Prompt template invocation: {self.template_id}...", flush=True)
return await client.template( return await client.prompt(
template_id=self.template_id, id=self.template_id,
variables=arguments variables=arguments
) )