wip: add tools to agent control and improve tool class
This commit is contained in:
1 parent
6134c026a6
commit
9585008433
7 files changed
+144
-13
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user