Tool Definition for Flight Control and LLM Integration

implementationChallenge

Prompt Content

Define a set of tools for your AI assistant that simulate interaction with flight systems (e.g., `check_fuel_level()`, `adjust_flaps(position: string)`, `initiate_autopilot()`). Implement these as mock functions. Configure the AI SDK to use Claude Sonnet 4 for core reasoning and Llama 3 (via Hugging Face Inference Endpoints) for specific, fast-response tasks. Ensure your `ai/index.ts` (or similar) properly defines these tools for the AI SDK.

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