Added
A healthcare operations group is building an agent that reviews a referral, checks eligibility through a payer API, and drafts a recommendation for a clinician. The eligibility API is intermittently unavailable, and the agent must not present an unverified eligibility result as fact. The team wants to preserve a clear audit trail and avoid duplicating payer-specific logic across several agent workflows. Which design is BEST?
A dedicated tool boundary centralizes payer-specific integration, makes outputs and failures explicit, and supports consistent auditing across workflows. The agent can then report an unavailable check without inventing an eligibility determination. Direct model credentials in A blur authorization and failure handling. Duplicating API logic in prompts, as in C, is difficult to govern and maintain. Unbounded retries in D can delay the workflow and still do not provide a safe result when the service remains unavailable.