wip: add tools to agent control and improve tool class

This commit is contained in:
Shivering Ocelot committed 2026-06-08 05:18:38 -05:00
1 parent 6134c026a6
commit 9585008433
7 files changed
+144 -13

No files matched your search

+6 -2
View File
@@ -16,12 +16,16 @@ class ExpertAgent(Agent):
AgentField('repetition_penalty', 'number', default=None),
]
def __init__(self, app, data):
Agent.__init__(self, app, data)
def __init__(self, *args):
Agent.__init__(self, *args)
async def run(self, run):
opts = {}
agent_tools = self.tools
print('agent tools ' + repr(agent_tools))
run.add_tools(agent_tools)
if self.config.get("temperature") is not None:
opts["temperature"] = self.config["temperature"]
if self.config.get("repetition_penalty") is not None: