[CLEANUP][ToolAgent]

pull/343/head
Kye 1 year ago
parent 6dd8d98c97
commit 95967e311e

@ -98,7 +98,7 @@ json_schema = {
}
task = "Generate a person's information based on the following schema:"
agent = ToolAgent(model, tokenizer, json_schema)
agent = ToolAgent(model=model, tokenizer=tokenizer, json_schema=json_schema)
generated_data = agent.run(task)
print(generated_data)

@ -56,11 +56,10 @@ class ToolAgent(AbstractLLM):
}
task = "Generate a person's information based on the following schema:"
agent = ToolAgent(model, tokenizer, json_schema)
agent = ToolAgent(model=model, tokenizer=tokenizer, json_schema=json_schema)
generated_data = agent.run(task)
print(generated_data)
"""
def __init__(
self,

Loading…
Cancel
Save