How can we configure an agent to wait for an asynchronous job to complete and then return the result
Summary:
How to handle asynchronous job completion and return the final result within an agent workflow?
Content (please ensure you mask any confidential information):
In the initial user interaction, the user provides the username, role(s), and data access context. These parameters are passed to the tool, which triggers the runUserProvisioningAnalysis API. The API returns a Request ID, which initiates a background job in Oracle Fusion. The job typically runs for 5–6 minutes on average. The agent fetches the job status and returns it to the user, but the session terminates before the job completes.
Although the agent is prompted to check the status until completion, the user currently needs to manually re-query the agent multiple times to retrieve the final status.