Skip to main content
Loading navigation
Back to prompt library

End-to-End Testing and Compliance Reporting

Linked challenge: Multimodal Content Generator for Brand Safety

Prompt source

testing12 lines3 sectionsNo variables1 code block
Perform end-to-end testing of your ADK agent via the Voiceflow interface (or simulated API calls). Ensure that generated content concepts are creative, relevant, and consistently adhere to brand safety and platform policies. The final output should include a clear 'compliance_report' and an 'agent_reasoning_trace' demonstrating the self-correction process.

```python
# Simulate an API call from Voiceflow
input_data = {
    "topic": "The Future of Space Travel",
    "target_audience": "Science enthusiasts, all ages",
    "brand_safety_rules": ["factual accuracy", "inspire wonder", "avoid speculation as fact"],
    "platform_policies_url": "https://example.com/youtube-policies-simulated"
}

# ... call your ADK agent's endpoint ...
# Ensure the returned JSON matches the output_format for evaluation.
```