Automatic Function Calling
constructor(functions: List<CallableFunction>, maximumRemoteCalls: Int = 10, runFunctionsInParallel: Boolean = false)
Parameters
functions
a list of CallableFunctions the model may ask for. Names must be unique.
maximum Remote Calls
how many requests one turn may send before giving up. Your first message counts, so it takes at least two requests for AFC: your initial message, and the FunctionResponse message we send for you after executing your handler. When the limit is reached, handlers are no longer called and you get the model's FunctionCall back.
run Functions In Parallel
whether several functions asked for in one response may run at the same time. Off by default; turn it on only if your handlers are safe to overlap, which the SDK cannot check for you.