Back to prompt library
Integrate Claude Sonnet 4 for Safety Validation and TensorRT-LLM Optimization
Linked challenge: High-Performance Operational Planning Agent
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Add Claude Sonnet 4 to your Mastra AI agent as a secondary model for safety validation. Route requests to Claude Sonnet 4 via Cohere Platform. Ensure that any GPT-5 generated dispatch plan is passed to a `validate_safety(plan: object, context: object)` tool, powered by Claude Sonnet 4, before final execution. Focus on configuring Cohere to leverage TensorRT-LLM for accelerated inference for both models.