agents icon indicating copy to clipboard operation
agents copied to clipboard

Support for function calls that does not wait for the response

Open msaelices opened this issue 7 months ago • 2 comments

The proposal is to be able to define a function like this one:

import time
class TestFunctionContext(llm.FunctionContext):
    @llm.ai_callable(wait_for_response=False)
    def long_function(self):
        # simulate a long running task
        time.sleep(10)

msaelices avatar Mar 25 '25 13:03 msaelices