Define Satellite Health Schemas

implementationChallenge

Prompt Content

Create a Pydantic model `SatelliteHealthPacket` that includes fields for `satellite_id`, `subsystem_statuses` (a dict), and `timestamp`. Use Pydantic AI's `Agent` class to create a health monitor that expects this model as input. Explain how `pydantic-ai` enforces the schema before the LLM even sees the data.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations