1Z0-1157-26 practice question 1 of 10

You are designing a healthcare AI agent using the OpenAI Agents SDK that must handle patient inquiry routing. The agent should decide whether to…

Full set: 67 questions
You are designing a healthcare AI agent using the OpenAI Agents SDK that must handle patient inquiry routing. The agent should decide whether to handle inquiries directly or hand off to a specialized clinical advisor agent. It also needs to validate that patient IDs match expected patterns and that clinical recommendations comply with an approved treatment guideline list. You are selecting which SDK components to implement. Which OpenAI Agents SDK components should you use for these requirements? (Select all that apply)
Answer options
A: Tool definitions to enable the agent to look up treatment guidelines and access patient records Correct answer
B: Handoffs to route complex clinical inquiries to a specialized clinical advisor agent Correct answer
C: Guardrails to validate patient ID patterns and ensure recommendations comply with approved guidelines before returning them to the user Correct answer
D: Runner to execute the agent loop and manage the state transitions between the main agent and clinical advisor sub-agent Correct answer
E: Agent definition to initialize the primary agent with a system prompt but not to manage any tool execution logic
Correct Answer:
A. Tool definitions to enable the agent to look up treatment guidelines and access patient records; B. Handoffs to route complex clinical inquiries to a specialized clinical advisor agent; C. Guardrails to validate patient ID patterns and ensure recommendations comply with approved guidelines before returning them to the user; D. Runner to execute the agent loop and manage the state transitions between the main agent and clinical advisor sub-agent
Explanation

Building complex multi-agent workflows using the OpenAI Agents SDK requires combining its core functional primitives. Tool definitions allow the agent to execute specific external actions such as searching clinical databases or fetching patient records. Handoffs enable seamless delegation of conversation control and context from a primary agent to specialized sub-agents like a clinical advisor. Guardrails enforce safety and business rules by validating user inputs (e.g., patient ID formats) and screening model outputs before returning them. Finally, the Runner executes the multi-turn agent loop, coordinating message processing, tool execution, guardrail checks, and agent handoffs across the system.

Why Incorrect

E: While Agent definitions initialize prompts and configurations, they explicitly register tools and handoffs to manage tool execution logic, making the statement inaccurate.

References

1. OpenAI Agents SDK Documentation, "Building Safe and Scalable Multi-Agent Systems", Section 5: Handoffs, Guardrails, and Tools.

2. Oracle OCI Generative AI Agents Service Developer Guide, Section 3.3: Enterprise Multi-Agent Routing and Validation.

Scroll to Top