(args, model_name)
| 30 | |
| 31 | |
| 32 | def generate_tools(args, model_name): |
| 33 | llm_math_chain = get_model( |
| 34 | model_type=args.model_type, |
| 35 | model_name=model_name, |
| 36 | vllm_port=args.vllm_port, |
| 37 | stream=False, |
| 38 | temperature=0, |
| 39 | ) |
| 40 | llm_math_chain = LLMMathChain.from_llm(llm=llm_math_chain, verbose=True) |
| 41 | return [ |
| 42 | Tool( |
| 43 | name="Search", |
| 44 | func=docstore.search, |
| 45 | description="", # not used |
| 46 | ), |
| 47 | Tool( |
| 48 | name="Calculate", |
| 49 | func=run_llm_math_chain_factory(llm_math_chain), |
| 50 | description="", # not used |
| 51 | ), |
| 52 | ] |
nothing calls this directly
no test coverage detected