Agent call using callback function