claen up swarms

Former-commit-id: 2f361d62ad
huggingface 1.0.8
Kye 1 year ago
parent feced1a09b
commit e80dd5c1cb

@ -4,7 +4,7 @@ from setuptools import setup, find_packages
setup(
name = 'swarms',
packages = find_packages(exclude=[]),
version = '1.0.7',
version = '1.0.8',
license='MIT',
description = 'Swarms - Pytorch',
author = 'Kye Gomez',

@ -138,12 +138,12 @@ class Swarms:
todo_chain = LLMChain(llm=llm, prompt=todo_prompt)
#math tool
llm_math_chain = LLMMathChain.from_llm(llm=llm, verbose=True)
# llm_math_chain = LLMMathChain.from_llm(llm=llm, verbose=True)
tools = [
Tool(name="TODO", func=todo_chain.run, description="useful for when you need to come up with todo lists. Input: an objective to create a todo list for your objective. Note create a todo list then assign a ranking from 0.0 to 1.0 to each task, then sort the tasks based on the tasks most likely to achieve the objective. The Output: a todo list for that objective with rankings for each step from 0.1 Please be very clear what the objective is!"),
worker_node,
Tool(name="Calculator", func=llm_math_chain.run, description="useful for when you need to answer questions about math")
# Tool(name="Calculator", func=llm_math_chain.run, description="useful for when you need to answer questions about math")
]
suffix = """Question: {task}\n{agent_scratchpad}"""

Loading…
Cancel
Save