Build an Empathetic Public Health Agent with OpenAI Agents SDK & Guardrails AI
Public health communicators face severe challenges addressing vaccine hesitancy without escalating conflict. Build an empathetic public health agent using the OpenAI Agents SDK and Guardrails AI to parse citizen queries, filter misinformation, and generate empathetic, scientifically accurate responses with a compliance score exceeding 90%.
What you are building
The core problem, expected build, and operating context for this challenge.
Implement an OpenAI Agents SDK pipeline integrated with Guardrails AI safety rails to generate empathetic public health communication.
How work is evaluated
Evaluates response empathy, factual safety, and schema adherence using automated LLM-as-a-judge and rule guardrails.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
safety_guardrail_check
Ensures no medical misinformation is validated or outputted.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
empathy_score
NLP empathy classifier metric. • target: 0.85 • range: 0-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Implement OpenAI Agents SDK agent workflows for empathetic dialogue.
Integrate Guardrails AI validators to enforce medical accuracy and empathetic tone.
Evaluate response quality against public health communication guidelines.
Reference links and supporting material
Curated set of 100 vaccine hesitancy queries paired with clinical ground truth consensus statements.
Challenge setup
Evaluates response empathy, factual safety, and schema adherence using automated LLM-as-a-judge and rule guardrails.
Challenge input
JSON containing query and user persona
OpenAI Agents SDK
Agent orchestration framework specified in challenge prompt.
Guardrails AI
Used for validating structured responses and preventing misinformation.
Evaluated output
JSON with generated_response, empathy_score, and safety_pass boolean
- Ensures no medical misinformation is validated or outputted.
- NLP empathy classifier metric. • target: 0.85 • range: 0-1
- Benchmark: MedSafety-Bench
- Empathy Score target: 0.85
- 1 public reference case
- Python execution harness
- Python sandbox (unavailable on Versalist)
Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.
View technical recipe
Configured tools
- OpenAI · Required
- RAI · Optional
- Guardrails AI · Optional
- Guardrails AI · Optional
Evaluation contract
- safety_guardrail_check · Weight 1
- empathy_score · Weight 1
Metrics
- empathy_score · Target 0.85
Benchmarks
- MedSafety-Bench
- biotech
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON containing query and user persona
Output: JSON with generated_response, empathy_score, and safety_pass boolean
Execution harness: Python
Evaluation tools
- OpenAI Agents SDK · agent_framework
- Guardrails AI · guardrail_engine
Recipe freeze marker
No recipe freeze time is recorded.