Skip to content

Async models should be able to execute tools #992

@simonw

Description

@simonw

This is not quite the same thing as:

This issue is about making it so you can use llm.get_async_model() and then await model.chain("do something", tools=[...]) - whether or not those tools= are sync or async functions.

(There's nothing wrong with a sync tool function if it runs fast enough not to block the event loop. I'm going to leave it to users to wrap their long-running functions in an async threadpool and pass them in as async def callables there if they need to.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions