mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 19:51:02 +02:00
Fix agent tools, now all tested
This commit is contained in:
parent
897a82c31f
commit
d5bfef33ca
2 changed files with 3 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ class AgentManager:
|
|||
"type": arg.type,
|
||||
"description": arg.description
|
||||
}
|
||||
for arg in tool.arguments.values()
|
||||
for arg in tool.arguments
|
||||
]
|
||||
}
|
||||
for tool in self.tools.values()
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class PromptImpl:
|
|||
async def invoke(self, **arguments):
|
||||
client = self.context("prompt-request")
|
||||
print(f"Prompt template invocation: {self.template_id}...", flush=True)
|
||||
return await client.template(
|
||||
template_id=self.template_id,
|
||||
return await client.prompt(
|
||||
id=self.template_id,
|
||||
variables=arguments
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue