agents
agents copied to clipboard
Support for function calls that does not wait for the response
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)