Skip to content

Why do it need the loadTools function? #156

@liujunao

Description

@liujunao

What if the tool contains multiple different LLMS?

python code example:

llm_math_chain = LLMMathChain(llm=llm, verbose=True)

tools.append(
    Tool.from_function(
        func=llm_math_chain.run,
        name="Calculator",
        description="useful for when you need to answer questions about math",
        args_schema=CalculatorInput
        # coroutine= ... <- you can specify an async method if desired as well
    )
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions