Async Fusion Agent Invocation¶
Folder: async_invoke_fusion_agents/
A CLI and library for invoking Oracle Fusion AI Agent workflows asynchronously. Not token_factory-based — it authenticates with a direct IDCS OAuth2 client_credentials grant, a shared service identity rather than a propagated user identity.
Client → IDCS (client_credentials token) → Fusion /invokeAsync → jobId
│ poll
/status/{jobId} → COMPLETE / FAILED
The client:
- Fetches an OAuth 2.0 token via IDCS Client Credentials
- Calls
/invokeAsyncto submit the workflow - Polls
/status/{jobId}until a terminal state is reached
Key files:
src/ping_fusion_agents.py— token fetch,invokeAsync,statuspollingsrc/config/settings.py— environment-driven configuration
python -m src.agents.dispatch_assist_agent token
python -m src.agents.dispatch_assist_agent invoke --message 'Check RECORD_ID SIG-0000509' --poll
When to use: Any integration with Oracle Fusion AI Agents where fire-and-poll is preferable to a synchronous blocking call, and the caller is a backend service rather than an individual end user.